VLOOKUP with Condition

anelem

New Member
Joined
Jul 18, 2020
Messages
7
Office Version
  1. 2016
Platform
  1. Windows
Hi
Sheet 1 :
Col A Col B Col C
Row1 Joe Green 45100
Row2 Joe Red 30000
Row3 Joe Blue 15000
Row4 Sag Green 2077
Row5 Sag Red 31001
Row6 Sag Blue 45000

Sheet 2 :
Col A Col B Col C
Row1 Joe Green ?
Row2 Joe Red ?
Row3 Sag Blue ?
Row4 Sag Green ?

Looking to get answer in Sheet 2 Col C
So Sheet 2 Col A must match to Sheet 1 Col A
When found, Lookup Sheet 2 B1 on Sheet 1 Col B
When found, return contents in Col C

Hope I have explained this well.
If anyone can please assist will make my job easier for me.
Thanking you in advance
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
If you want to use a lookup / array method then why not use one that doesn't need a delimiter to prevent false matches?

=LOOKUP(2,1/(Sheet1!A$2:A$8=A2)/(Sheet1!B$2:B$8,B2),Sheet1!C$2:C$8)

Although, as I mentioned earlier, sumifs should work fine based on the example provided, eliminating the need for any arrays entirely.
 
Upvote 0
I agree that with sample the OP provided sumifs would be a better option, as for the index/match approach, I just prefer it.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,954
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