vlookup first value based on two criteria without changing column order

jwolf16

New Member
Joined
Feb 13, 2018
Messages
2
Hi There,

I'm having some real trouble with what is the best way to do this:

In column J I want to return the value in column C based upon criteria in B and D.

This is the formula I have been using in J1:

Code:
=(IF(D:D = "filling",VLOOKUP(I4,B:D,2,0),""))


[TABLE="width: 576"]
<colgroup><col width="64" span="9" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]B[/TD]
[TD="class: xl65, width: 64"]C[/TD]
[TD="class: xl65, width: 64"]D[/TD]
[TD="class: xl65, width: 64"]E[/TD]
[TD="class: xl65, width: 64"]F[/TD]
[TD="class: xl65, width: 64"]G[/TD]
[TD="class: xl65, width: 64"]H[/TD]
[TD="class: xl65, width: 64"]I[/TD]
[TD="class: xl65, width: 64"]J[/TD]
[/TR]
[TR]
[TD]b100[/TD]
[TD]50[/TD]
[TD]filling[/TD]
[TD][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl67, width: 64"]filling[/TD]
[TD][/TD]
[TD]b100[/TD]
[TD="class: xl66, align: right"]50[/TD]
[/TR]
[TR]
[TD]b100[/TD]
[TD]100[/TD]
[TD]filling[/TD]
[TD][/TD]
[TD="class: xl66"][/TD]
[TD][/TD]
[TD][/TD]
[TD]b100[/TD]
[TD="class: xl66, align: right"]50[/TD]
[/TR]
[TR]
[TD]b101[/TD]
[TD]50[/TD]
[TD]pre comp[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]b101[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD]b101[/TD]
[TD]100[/TD]
[TD]filling[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]b102[/TD]
[TD="class: xl66, align: right"]50[/TD]
[/TR]
[TR]
[TD]b102[/TD]
[TD]50[/TD]
[TD]filling[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]b103[/TD]
[TD="class: xl66, align: right"]50[/TD]
[/TR]
[TR]
[TD]b102[/TD]
[TD]100[/TD]
[TD]filling[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]b104[/TD]
[TD="class: xl66, align: right"]50[/TD]
[/TR]
[TR]
[TD]b103[/TD]
[TD]50[/TD]
[TD]pre comp[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]b105[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD]b103[/TD]
[TD]100[/TD]
[TD]filling[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]b106[/TD]
[TD="class: xl66, align: right"]50[/TD]
[/TR]
</tbody>[/TABLE]

I have tried using index/match and sumproduct but cannot quite nail it. :( Any help would be much appreciated.

Thanks,
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
See if this works:

=INDEX($C$1:$C$8,MATCH(1,INDEX(($D$1:$D$8=$G$1)*($B$1:$B$8=I1),0),0))
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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