IF ERROR INDEX MATCH - need assistance in how to get rid of N/A to produce two other options

jwoo89

New Member
Joined
Jan 5, 2021
Messages
32
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am trying to figure out how to get the formula to below return something if it errors out.

Right now i have the number 15 being produced if there is an error.

but i am trying to figure out if i can have two formulas in the iferror.

i.e. If D2="eqty" to produce 15 or if D2="opt" to produce 25 when it says N/A if not found on the table.


=IFERROR(INDEX('fee'!D:D,MATCH(1,(Sheet3!C2='fee'!B:B)*(Sheet3!D2='fee'!C:C),0)),15)
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
How about
Excel Formula:
=IFERROR(INDEX(fee!D:D,MATCH(1,(Sheet3!C2=fee!B:B)*(Sheet3!D2=fee!C:C),0)),IF(D2="eqty",15,20))
 
Upvote 0
thank you so much! what if it was three options, say if D2=opt should be 25, D2=eqty = 15, D2 = wire, 30?
 
Upvote 0
Try
Excel Formula:
=IFERROR(INDEX(fee!D:D,MATCH(1,(Sheet3!C2=fee!B:B)*(Sheet3!D2=fee!C:C),0)),IF(D2="eqty",15,if(d2="opt",25,30)))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,025
Members
452,542
Latest member
Bricklin

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