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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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