Lookup with 3 conditions

Salamullah

Board Regular
Joined
Mar 28, 2011
Messages
221
Hi Experts.

I have data in sheet1

AREASKUJANFebMar..
A1001
105010
B1001204020
C1002303030
A1004402040
B1003501050

<tbody>
</tbody>










Sheet 2 Summary
AREAMONTHSKUVALUE
AJan100110

<tbody>
</tbody>

I need formula in cell D1 for SKU 1001 from Sheet 1 keeping in view of the selection of Area in A1 and B1.

For example currently in summary the value is 10 if I change Feb in B1 the value should come 50
 

Some videos you may like

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Bo_Ry

Board Regular
Joined
Oct 27, 2018
Messages
140
Office Version
  1. 365
Platform
  1. Windows
Please try at Sheet 2 D2
=SUMPRODUCT(Sheet1!$C$2:$F$9,(Sheet1!$A$2:$A$9=A2)*(Sheet1!$B$2:$B$9=C2)*(Sheet1!$C$1:$F$1=B2))
 

Salamullah

Board Regular
Joined
Mar 28, 2011
Messages
221
Hi many thanks, its working but its adding because we are using sum, if I need only single value instead of sum what to do ?
 

Bo_Ry

Board Regular
Joined
Oct 27, 2018
Messages
140
Office Version
  1. 365
Platform
  1. Windows
Please try at D2

=LOOKUP(2,1/(A2=Sheet1!$A$2:$A$9)/(C2=Sheet1!$B$2:$B$9),INDEX(Sheet1!$C$2:$F$7,,MATCH(B2,Sheet1!$C$1:$F$1,)))
or
=INDEX(Sheet1!$C$2:$F$7,MATCH(1,INDEX((A2=Sheet1!$A$2:$A$9)*(C2=Sheet1!$B$2:$B$9),),),MATCH(B2,Sheet1!$C$1:$F$1,))
 

Watch MrExcel Video

Forum statistics

Threads
1,122,228
Messages
5,594,939
Members
413,953
Latest member
Arthur1471

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
Top