Lookup with 3 conditions

Salamullah

Board Regular
Joined
Mar 28, 2011
Messages
215
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
 

Bo_Ry

Board Regular
Joined
Oct 27, 2018
Messages
65
Office Version
365
Platform
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
215
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
65
Office Version
365
Platform
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,))
 

Forum statistics

Threads
1,082,305
Messages
5,364,400
Members
400,800
Latest member
germanpbv

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top