I have an Excel table with a column containing distinct IDs
and then some boolean columns with 1s and 0s
. For each row (ID), I'm looking for a formula to find the last boolean column with a value of 1
and then pull the corresponding column header. I've added a screenshot of the input (blue columns) and the desired output (yellow column). I think I can use the offset
formula for pulling the column headers but can't figure out how to determine the last boolean column with a 1
.
Thanks
LOOKUP()
orXLOOKUP()
depending on your version of Excel. What have you tried? – JvdVxlookup
as=XLOOKUP(1, <cell range of 1s and 0s to search>, <cell range of column headers>)
but this always gives meDay 1
for every row – Chipmunk_da