Hi Guys,
I am looking to sum some data based on criteria in two columns and a row header. Example of data layout as below.
This is the result I am looking for:
This is the index/ match formula I currently have which only returns 200 rather than suming 100+200:
{=INDEX(Table1[[Product 1]:[Product 4]],MATCH(B15,IF(Table1[Customer]=B16,Table1[Date]),1),MATCH(B17,Table1[[#Headers],[Product 1]:[Product 4]],0))}
Thanks in advance.
I am looking to sum some data based on criteria in two columns and a row header. Example of data layout as below.
Date | Customer | Product 1 | Product 2 | Product 3 | Product 4 |
01/01/2020 | A | 100 | 1000 | 2000 | 3000 |
01/01/2021 | A | 100 | 1000 | 2000 | 3000 |
01/01/2022 | A | 100 | 1000 | 2000 | 3000 |
01/01/2022 | A | 200 | 1000 | 2000 | 3000 |
01/01/2020 | B | 100 | 1000 | 2000 | 3000 |
01/01/2021 | B | 100 | 1000 | 2000 | 3000 |
01/01/2022 | B | 100 | 1000 | 2000 | 3000 |
01/01/2020 | C | 100 | 1000 | 2000 | 3000 |
01/01/2021 | C | 100 | 1000 | 2000 | 3000 |
01/01/2022 | C | 100 | 1000 | 2000 | 3000 |
This is the result I am looking for:
Date: | 01/01/2022 |
Customer: | A |
Product: | Product 1 |
Result | 300 |
This is the index/ match formula I currently have which only returns 200 rather than suming 100+200:
{=INDEX(Table1[[Product 1]:[Product 4]],MATCH(B15,IF(Table1[Customer]=B16,Table1[Date]),1),MATCH(B17,Table1[[#Headers],[Product 1]:[Product 4]],0))}
Thanks in advance.