Looping through a set of values in google sheets
问题 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