Nested IF-MATCH

arfabe16

New Member
Joined
Oct 18, 2017
Messages
2
Hello, I'm trying to create a single column that populates cells based on a unique identifier that can be matched to either column A or column B in a different sheet, but I can't get it to work.

When I create my formula for just column A or column B, they work:
=IF(MATCH(F2,'Hot Alert IDs'!$A:$A,0),"Dissatisfied",) works independently
=IF(MATCH(F2,'Hot Alert IDs'!$B:$B,0),"No Contact",) also works independently

But when I try to combine them, I can't get it to work; the column only populates for the first IF-MATCH function. This is what I have:
=IF(MATCH(F2,'Hot Alert IDs'!$A:$A,0),"Dissatisfied",IF(MATCH(F2,'Hot Alert IDs'!$B:$B,0),"No Contact",))

What am I doing wrong? Any help would be greatly appreciated!!!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try

=IFERROR(IF(MATCH(F2,'Hot Alert IDs'!$A:$A,0),"Dissatisfied",),IF(MATCH(F2,'Hot Alert IDs'!$B:$B,0),"No Contact",))

The challenge is if the first MATCH fails it is not false, but an error.
 
Last edited:
Upvote 0
You may even want a second IFERROR if no MATCH is found in either column.

=IFERROR(IFERROR(IF(MATCH(F2,'Hot Alert IDs'!$A:$A,0),"Dissatisfied",),IF(MATCH(F2,'Hot Alert IDs'!$B:$B,0),"No Contact",)),"")
 
Upvote 0
You may even want a second IFERROR if no MATCH is found in either column.

=IFERROR(IFERROR(IF(MATCH(F2,'Hot Alert IDs'!$A:$A,0),"Dissatisfied",),IF(MATCH(F2,'Hot Alert IDs'!$B:$B,0),"No Contact",)),"")

That did it. Thanks!

So, I'm assuming my issue is that, when Excel encounters an error, it essentially stops running my formula -- correct?
 
Upvote 0

Forum statistics

Threads
1,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

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