I am running into an issue with a formula working perfectly when I put in the cell reference as text, but not when I am using the COLUMN() formula within it to signify the row I want INDIRECT to point to.
This is my formula:
=IFERROR(TRIM(MID(SUBSTITUTE( INDIRECT("$C$"&COLUMN(B1)), " ", REPT(" ",100)),AGGREGATE(14,6,SEARCH(F2,SUBSTITUTE( INDIRECT("$C$"& "2"), " ", REPT(" ",100)),ROW(INDIRECT("1:"&LEN(SUBSTITUTE( INDIRECT("$C$"&COLUMN(B1)), " ", REPT(" ",100)))))),1)-101, 100)),"")
You can see I have 3 instances of INDIRECT hoping to reference the cell C2. In the first and third spot I can use COLUMN(B1) to get the value of 2 for my indirect formula. (I want to do this because when I slide the formula over to my next column, I want that column to reference C3, hence the columns)
But when I change the second instance in the formula from INDIRECT("$C$" & "2") to INDIRECT("$C$" & COLUMN(B1)) I do not get the result I am looking for.
Is this because the columns formula cannot be used inside SEARCH or AGGREGATE? I do not know why simply changing "2" to a formula that results in 2 as an answer doesn't work.
Can anyone help?
edited: Attached sample file for reference.
Bookmarks