IF-INDEX-MATCH: Multiple IF functions with multiple matches returning various results

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
871
Office Version
  1. 365
Platform
  1. Windows
URGENT: I am having a problem with the below formula and seem to be having an off day and can't figure this out. The formula will match the first criteria but not the second and 3rd IF functions. It will just return "False" for the other 2. Any idea what I am missing?

=IF(C14="SPM",(INDEX(Sheet2!C:C,MATCH(D23,Sheet2!A:A,FALSE),IF(C14="Metco",(INDEX(Sheet2!E:E,MATCH(D23,Sheet2!A:A,FALSE)),IF(C14="Honeywell",(INDEX(Sheet2!G:G,MATCH(D23,Sheet2!A:A,FALSE)))))))))

If I type in SPM in C14 it will return the value in C:C that corresponds with A:A however I get a "FALSE" for the remaining 2.

Thank you for your help

Carla
 
Basically if cells C14 and D23 are not filled out the cell containing the formula will remain blank instead of displaying "FALSE"
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
So I suppose that wouldnt be an IFERROR but displaying a blank instead of "FALSE".

Thank you for all of your help

Carla
 
Upvote 0
After this I think I will be good. Thank you
 
Last edited:
Upvote 0
Try
=IFERROR(IF(C14="SPM",INDEX(Sheet2!C:C,MATCH(D23,Sheet2!A:A,FALSE)),IF(C14="Metco",INDEX(Sheet2!E:E,MATCH(D23,Sheet2!A:A,FALSE)),IF(C14="Honeywell",INDEX(Sheet2!G:G,MATCH(D23,Sheet2!A:A,FALSE)),""))),"")
 
Upvote 0
I apologize, I have been given a different specification. If C14 matches the text in another cell on Sheet 2 instead of C14-"SPM". For example:
=IFERROR(IF(C14=Sheet2!B1,INDEX(Sheet2!C:C,MATCH(D23,Sheet2!A:A,FALSE)),IF(C14=Sheet2!D1,INDEX(Sheet2!E:E,MATCH(D23,Sheet2!A:A,FALSE)),IF(C14=Sheet2!F1,INDEX(Sheet2!G:G,MATCH(D23,Sheet2!A:A,FALSE)),""))),"")

Of course this does not work.
 
Upvote 0
Is this space in the sheet name, actually in your formula?
D23,Shee t2!A:A,FALSE
 
Upvote 0
No there is no space. This is my formula:

=IFERROR(IF(C14=Sheet2!B1,INDEX(Sheet2!C:C,MATCH(D23,Sheet2!A:A,FALSE)),IF(C14=Sheet2!D1,INDEX(Sheet2!E:E,MATCH(D23,Sheet2!A:A,FALSE)),IF(C14=Sheet2!F1,INDEX(Sheet2!G:G,MATCH(D23,Sheet2!A:A,FALSE)),""))),"")
 
Upvote 0
I do not know why it is showing a space when I paste it in the forum. I have checked it numerous times and there is no space.
 
Upvote 0
I retyped this section just to make sure and there is no space but still the formula doesnt work
 
Last edited:
Upvote 0
Removed
Seen post#18
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,522
Messages
6,114,112
Members
448,549
Latest member
brianhfield

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