Index & Match formula on cells containing formula's

pulsecoding

New Member
Joined
May 26, 2011
Messages
31
Hi all,
I have formula INDEX($G$2:G5,MATCH(REPT("z",255),$G$2:G5)) which check the range g5 to g2 for string and returns it.
Earlier I didnt had formulas in the range g2 to g5 so this formula was giving me correct result.
now As I have formulas in the range g2 to g5 it is not returning the correct result.

the range contains formula IF(U5=0,"",VLOOKUP(U5,$IO$2:$IP$377,2,FALSE))

so when cell g2 contains a string and g3 to g5 contains blank returned from their individual formulas this index formula does not return string from g2 cell.

this index formula should return g2 cell string.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi all,
I have formula INDEX($G$2:G5,MATCH(REPT("z",255),$G$2:G5)) which check the range g5 to g2 for string and returns it.
Earlier I didnt had formulas in the range g2 to g5 so this formula was giving me correct result.
now As I have formulas in the range g2 to g5 it is not returning the correct result.

the range contains formula IF(U5=0,"",VLOOKUP(U5,$IO$2:$IP$377,2,FALSE))

so when cell g2 contains a string and g3 to g5 contains blank returned from their individual formulas this index formula does not return string from g2 cell.

this index formula should return g2 cell string.
That formula would indeed return the text value (a blank created with a formula) if that's the last value in G2:G5. If you want to ignore formula blanks, try:

=LOOKUP(9.99999999999999E+307,SEARCH("?*",G2:G5),G2:G5)
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,270
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top