I have 2 sets of data. One is tank names
Tank Name
A1
A2
B1
B2
and the next is ON/OFF Data
ON/OFF
0
0
1
1
0
1
0
1
1
0
1
0
1
Now the result I am looking is, when the ON/OFF is 1 then the first tank is to be mentioned: when it's 0, no tank to be mentioned. Once all the tanks are mentioned,then it should again start from the first tank ie A1..like this
Result expected
0
0
1 A1
1 A2
0
1 B1
0
1 B2
1 A1
0
1 A2
0
1 B1
You can check the google sheet here : https://docs.google.com/spreadsheets/d/1SP2SfA-bzzhHgfrvpyUIkeQfUykata0oHxyD-x69yxE/edit?usp=sharing
Hope to get some help to get this solved. Thanks
You can use this formula entered in (say) D2 and pulled down:
or if you prefer, can go for an array formula entered in E2 instead: