IF 3 conditions & results

copyboy007

Board Regular
Joined
May 17, 2005
Messages
64
Office Version
  1. 2016
Platform
  1. Windows
A B C D E F

12345 _____ 11111 aaaaa 55555 zzzzz
67890 _____ 22222 bbbbb 66666 yyyyy
11111 _____ 33333 cccccc 12345 xxxxx
22222 _____ 44444 ddddd 77777 wwwww

In an inserted column, I'm attempting to display the cell address of the text entry that is next to the matching number.

Two formulas work, separately, but not together to be the same cell that can be copied -- neither when nesting the IF statements nor using OR.

=IF(MATCH(a1,c1:c4,1),ADDRESS(MATCH(a1,c1:c4,0),COLUMN(c1:c4)+1))
=IF(MATCH(a1,e1:e4,1),ADDRESS(MATCH(a1,e1:e4,0),COLUMN(e1:e4)+1))
Also, if a number in column A is in neither of columns C or E, then I'd want the result to be a blank

Any advice on how to put these three conditions for two pairs of columns work in the same formula?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Book1
ABCDEF
112345$F$311111aaaaa55555zzzzz
26789022222bbbbb66666yyyyy
311111$D$133333ccccc12345xxxxx
422222$D$244444ddddd77777wwwww
Sheet1
Cell Formulas
RangeFormula
B1=IFERROR(CELL("address",INDEX($D$1:$D$4,MATCH($A1,$C$1:$C$4,0))),IFERROR(CELL("address",INDEX($F$1:$F$4,MATCH($A1,$E$1:$E$4,0))),""))


WBD
 
Upvote 0
It worked perfectly. This kept me up for hours. Thank you so much.
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,852
Members
449,096
Latest member
Erald

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