Lookup a value from two columns

springran

Board Regular
Joined
Mar 18, 2014
Messages
56
Office Version
  1. 365
Platform
  1. Windows
Hi please help me

I would like a formula in column B.

Notes: I want to search value in column A from column D & E. if match and return vulue in column F.

1717561335290.png


1717561352026.png
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
like this ?

Excel Formula:
=XLOOKUP(A2,$D$2:$D$7,$F$2:$F$7,XLOOKUP(A2,$E$2:$E$7,$F$2:$F$7))

1717562747925.png
 
Last edited:
Upvote 0
One option.
Book1
ABCDEF
1
211A1111A
355C999B
422C5555C
533#N/A888888A
655C6666B
78888A2222222C
Sheet1
Cell Formulas
RangeFormula
B2:B7B2=XLOOKUP(TRUE,(A2=$D$2:$D$7)+(A2=$E$2:$E$7)>0,$F$2:$F$7)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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