i am trying to merge excel columns into one column like this…
List1 List2 List3 List4 List5
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
into this…
List
0
1
2
3
4
If there is a 1 in List1 the merged column will have value 0
if List2 is a 1 the merged column will have value 1
and so on…
If your data start in top-left corner, then for the cells in the result range you could write array formulas like
Another idea is to write a single array formula for the whole result range