sum ifs + index match

Pripri

New Member
Joined
Aug 18, 2019
Messages
24
Hi, I'm trying to accomplish the following results:

















Pear
6
10
2
Mango
-
1
3
Banana
4
5
7

<tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=8cb5df]#8cb5df[/URL] "]
January
[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=8cb5df]#8cb5df[/URL] , colspan: 3"]
Publix
[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=8cb5df]#8cb5df[/URL] "]
2019
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=8cb5df]#8cb5df[/URL] "]
2018
[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=8cb5df]#8cb5df[/URL] "]
2017
[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=8cb5df]#8cb5df[/URL] "] Fruits
[/TD]

</tbody>


Year
Fruit
Store
January
February
March


2018
Pear
Publix
10
5
3


2018
Mango
Publix
1
20
2


2019
Banana
Whole Foods
10
20
30


2019
Pear
Fresh Market
1
2
3


2019
Pear
Publix
2
1
1


2019
Pear
Publix
2
1
1


2019
Pear
Publix
2
1
1


2017
Mango
Whole Foods
1
10
2


2018
Banana
Publix
5
5
10


2017
Pear
Publix
2
3
4


2017
Mango
Publix
3
3
4


2017
Banana
Publix
4
3
4


2017
Banana
Publix
2
1
1


2019
Banana
Publix
2
1
1


2019
Banana
Publix
2
1
1



<tbody>
</tbody>

which combination of formulas do I need?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Here is one way with SUMPRODUCT. Copy formula down and across as needed.
You may also want to look at a pivot table.
Excel Workbook
ABCDEF
1January
2Publix
3201920182017
4Fruits
5Pear6102
6Mango013
7Banana456
8
9
10
11YearFruitStoreJanuaryFebruaryMarch
122018PearPublix1053
132018MangoPublix1202
142019BananaWhole Foods102030
152019PearFresh Market123
162019PearPublix211
172019PearPublix211
182019PearPublix211
192017MangoWhole Foods1102
202018BananaPublix5510
212017PearPublix234
222017MangoPublix334
232017BananaPublix434
242017BananaPublix211
252019BananaPublix211
262019BananaPublix211
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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