Not sure Excel can handle that without coding?What if 5 is in the first cell in the column?
I want to extract them into a new columnWhat do you want to do with them after you "extract" them?
Book2 | ||||
---|---|---|---|---|
A | B | |||
1 | Header1 | SomethingEndsWith5 | ||
2 | SomethingEndsWith5 | |||
Sheet4 |
Let me rephrase my question. I don't know the layout of your data. There are 2 cases.
Case 1 (col A below): Your first data entry is in A2, and that cell ends with "5". Do you want to return the header (one cell above)?
Case 2 (col B below): Your first data entry is in A1, and that cell ends with "5" but there's no cell above. What do you want to return?
Book2
A B 1 Header1 SomethingEndsWith5 2 SomethingEndsWith5 Sheet4
I get no result at all. I think I might be doing something wrong.Re: but it doesn't seem to work.
Meaning what? What do you get as a result?
Excel Formula:=IF(RIGHT(RC[-1], 1) = "5", R[-1]C[-1], "Nothing")