VLOOKUP with multiple critiera

Memar

Board Regular
Joined
Sep 2, 2011
Messages
76
[FONT=&quot]I want to use VLookup or another formula to get a desired data in red. I couln't get the result that I need using this formula=VLOOKUP(val1&val2,data,col_index,0)
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]
Column A


Column B


Column C


Column D











Product Item NO

















D24162


D34162


D44162








JAN


Cell B3 DESIRED RESULT 15


10











FEB


Cell B4 DESIRED RESULT 20


20











MAR


Cell B5 DESIRED RESULT 50


5












<tbody class="SCXW170678635" style="margin: 0px; padding: 0px; user-select: text; -webkit-user-drag: none; -webkit-tap-highlight-color: transparent;">
</tbody>

[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]



D24162




D34162




D44162




JAN


15


10





FEB


20


20





MAR


50


5





APR


30


6






<tbody class="SCXW170678635" style="margin: 0px; padding: 0px; user-select: text; -webkit-user-drag: none; -webkit-tap-highlight-color: transparent;">
</tbody>

[/FONT]

[FONT=&quot]
[/FONT]

Thank you for your help and time
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
using this example...
This structure is in A1:D5
Product Item NO
D24162D34162D44162
JAN
FEB
MAR

<tbody>
</tbody>
and this data set in A7:D11
D24162D34162D44162
JAN1510
FEB2020
MAR505
APR306

<tbody>
</tbody>

This regular formula, copied across and down, returns the monthly totals for the matching ref nums:
Code:
B3: =SUMPRODUCT(($A$8:$A$11=$A3)*($B$7:$D$7=B$2)*$B$8:$D$11)
Is that something you can work with?
 
Upvote 0
Thank you for the quick response. it gives me value error. The number in Cell B8 and D11 is a result from SUMIF formula.
 
Upvote 0
Using VLOOKUP, we would get...

Row\Col
A​
B​
C​
D​
E​
F​
G​
H​
I​
1​
Product​
D24162D34162D44162
2​
D24162D34162D44162JAN
15​
10​
3​
JAN
15​
10​
0​
FEB
20​
20​
4​
FEB
20​
20​
0​
MAR
50​
5​
5​
MAR
50​
5​
0​
APR
30​
6​

<tbody>
</tbody>


B3, copied across to D3 and down:

=VLOOKUP($A3,$F:$I,MATCH(B$2,INDEX($F:$I,1,0),0),0)
 
Upvote 0

Forum statistics

Threads
1,215,583
Messages
6,125,665
Members
449,247
Latest member
wingedshoes

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