If statement with INDEX MATCH

jpsimmon

New Member
Joined
Apr 9, 2015
Messages
28
Trying to incorporate ="NA","", in this formula, having no luck. I want it so when the match-index retrieves a text "NA" it leaves the cell blank. But still wanting to leave the ERROR.TYPE function in there for future values to be #N/A.

=IF(Key!$C$10>=$G1158,(INDEX(page!$1:$1048576, MATCH($G1158,page!$A:$A,0), MATCH(X$1155,page!$1:$1,0))), ERROR.TYPE(7))
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Your formula will first check Key!$C$10> =$G1158 and if this is not true will evaluate ERROR.TYPE(7) which is always going to be #N/A
When the IF condition evaluate to TRUE you will always get the result of the INDEX/Match
You might try IFERROR function, but that will apply to errors in addition to #N/A
=IFERROR(INDEX(page!$1:$1048576, MATCH($G1158,page!$A:$A,0), MATCH(X$1155,page!$1:$1,0),"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,287
Members
449,149
Latest member
mwdbActuary

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