excel: "looping" through columns without VBA? -


i have following:

a b c ... l n m al 1 0 1 ... 0 1 1 0  1  1 0 1 0 ... 1 0 0 0  0  0 

is there formula loop through each column , compare value columns l n m above tabe (al = , l, = , n, = , m, bl, bn, bm , on)?

edit: table

basically in l2, if a2 = 1 , i2 = 1 l2 = 1 otherwise 0. same goes m2 (a2 = 1 , j2 = 2) , n2. repeats o2 (o2 = b2 , i2) , on. trying use offset function , filling rest of columns problem i'm not sure how "loop" each of column value checks against column j k seen in screenshot. i'm @ novice stage of learning excel , appreciated!!

you can try array formula @ l2 (enter press ctrlshiftenter) , copy/paste in cells want calculate (see yellow zone in attached picture):

=--or((l$1=$a$1:$h$1&"_"&transpose($i$1:$k$1))*($a2:$h2*transpose($i2:$k2))) 

ctrlshiftenter <--------

enter image description here


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -