could help to suggest how to use JSL formula to generate one new column "ID", and fill in sequence number from 001-00N.
if cell value is in list {aim_lio, yeah_hoo, CC_act}, new "ID" column auto fill in 001-00N.
if cell value is in list {bb_yoon, lzh_hao, Ke_oh, he_low}, new "ID" column auto fill, and restart from 001, 001-00N'.
if cell value is in list {ge_green, Ye_kio}, new "ID" column auto fill, and restart from 001, 001-00N''. thanks a lot.
| Item | ID |
| aim_lio | 001 |
| aim_lio | 002 |
| aim_lio | 003 |
| aim_lio | 004 |
| aim_lio | 005 |
| aim_lio | 006 |
| aim_lio | 007 |
| aim_lio | 008 |
| aim_lio | 009 |
| aim_lio | 010 |
| aim_lio | 011 |
| yeah_hoo | 012 |
| yeah_hoo | 013 |
| yeah_hoo | 014 |
| yeah_hoo | 015 |
| yeah_hoo | 016 |
| yeah_hoo | 017 |
| yeah_hoo | 018 |
| yeah_hoo | 019 |
| CC_act | 020 |
| CC_act | 021 |
| CC_act | 022 |
| CC_act | 023 |
| CC_act | 024 |
| CC_act | 025 |
| CC_act | 026 |
| CC_act | 027 |
| bb_yoon | 001 |
| bb_yoon | 002 |
| bb_yoon | 003 |
| bb_yoon | 004 |
| bb_yoon | 005 |
| bb_yoon | 006 |
| bb_yoon | 007 |
| bb_yoon | 008 |
| bb_yoon | 009 |
| bb_yoon | 010 |
| bb_yoon | 011 |
| bb_yoon | 012 |
| bb_yoon | 013 |
| bb_yoon | 014 |
| lzh_hao | 015 |
| lzh_hao | 016 |
| lzh_hao | 017 |
| lzh_hao | 018 |
| Ke_oh | 019 |
| Ke_oh | 020 |
| Ke_oh | 021 |
| Ke_oh | 022 |
| Ke_oh | 023 |
| Ke_oh | 024 |
| he_low | 025 |
| he_low | 026 |
| he_low | 027 |
| ge_green | 001 |
| ge_green | 002 |
| ge_green | 003 |
| ge_green | 004 |
| Ye_kio | 005 |
| Ye_kio | 006 |