INDEX MATCH MATCH Lookup

Graemea

Board Regular
Joined
Oct 30, 2015
Messages
119
Office Version
  1. 365
Platform
  1. Windows
Hi,


I have data in the range A1:E1000, with the following fields:


A2:E2 - Headings for columns, respectively Product, Date, Colour, Sales and Sales


The Sales columns above can be distinguished from one another by the text "Country1" in cell D1 and "Country2" in cell E1.


From the above data I would like to use an INDEX-MATCH-MATCH formula to extract the Sales for a given Product, Date, Colour and for Country2.


So, for example, it would answer the question what were the sales in country 2 of product AAA in red on 31/08/2017.


Can someone please suggest a solution?


Thanks!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Control+shif+enter, not just enter:

=INDEX($D$3:$E$100,MATCH(1,IF($A$3:$A$100="AAA",IF($B$3:$B$100="31/08/2017"+0,IF($C$3:$C$100="red",1))),0),MATCH("country2",$D$1:$E$1,0))
 
Upvote 0
Try SUMIFS

Something like
=SUMIFS(E$3:E$100,A$3:A$100,"AAA",B$3:B$100,DATE(2017,8,31),C$3:C$100,"red")

or to get the country column
=SUMIFS(INDEX(D$3:E$100,0,MATCH("Country2",D$1:E$1,0)),A$3:A$100,"AAA",B$3:B$100,DATE(2017,8,31),C$3:C$100,"red")

Of course you can use cell references instead of hard code the criteria.

M.
 
Upvote 0

Forum statistics

Threads
1,224,833
Messages
6,181,242
Members
453,026
Latest member
cknader

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