T
The Shaffer s
I'm having a problem with an array formula. A portion of it returns the
last non-blank column on a row. Instead of hardcoding the row, I want it in
the formula, relative to the current row.
For example, the ROW()-1 part, if replaced with a real row, works fine. When
the ROW()-1 is in, I get #VALUE!
This fails:
=MAX(COLUMN(1:256)*(OFFSET(INDIRECT("A"&ROW()-1),0,0,1,256)<>""))
This works:
=MAX(COLUMN(1:256)*(OFFSET(INDIRECT("A1"),0,0,1,256)<>""))
Any help greatly appreciated.
Ken Shaffer
last non-blank column on a row. Instead of hardcoding the row, I want it in
the formula, relative to the current row.
For example, the ROW()-1 part, if replaced with a real row, works fine. When
the ROW()-1 is in, I get #VALUE!
This fails:
=MAX(COLUMN(1:256)*(OFFSET(INDIRECT("A"&ROW()-1),0,0,1,256)<>""))
This works:
=MAX(COLUMN(1:256)*(OFFSET(INDIRECT("A1"),0,0,1,256)<>""))
Any help greatly appreciated.
Ken Shaffer