Index Match Formula

gymwrecker

Active Member
Joined
Apr 24, 2002
Messages
396
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Need help with the following formula:

=INDEX($U$3:$U$10,MATCH(B3,$T$3:$T$10,0))

When there's not entry in U3 it returns an error (#N/A). Is there a way to fix this?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
=INDEX($U$3:$U$10,MATCH(B3,$T$3:$T$10,0)) would only return a #N/A error if B3 does not match a value in T3:T10 or if the returned value from U3:U10 is #N/A itself. It would not return a #N/A error because U3 is blank.

That said, consider wrapping your formula with the ISNA function, as in something like this:

Code:
=IFNA(INDEX($U$3:$U$10,MATCH(B3,$T$3:$T$10,0)),"")
 
Upvote 0
Hi
I’m making the assumption you mean B3 is empty (not U3)

You can wrap your formula in IFERROR( --------- ,0)

Code:
 =IFERROR(INDEX($U$3:$U$10,MATCH(B3,$T$3:$T$10,0)),"")

or

Code:
 =IFERROR(INDEX($U$3:$U$10,MATCH(B3,$T$3:$T$10,0)),"B3 is Blank")
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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