Formula HELP to Sum Cells with Multiple Criteria

Wanda13

New Member
Joined
Jan 4, 2013
Messages
29
In sheet 2 I have a list of product sales by region for 260 days of 2012. In sheet 1 I want to summarize the total of the product on a specific day. The formula I am using does not work.
I want to create a formula in Sheet1 to get total sales for Product1 on Day 1, Product2 on Day 1, etc. This is the formula I have but it is not working:
=SUM(IF('Sheet2'!$B$3:$B$10='Sheet1'!A2&$B$1,IF('Sheet2'!$C$1:$C$260='Sheet1'!A2&$B$1,'2012 Sales'!$C$3:$JC$113)))

<colgroup><col style="width: 46pt; mso-width-source: userset; mso-width-alt: 2230;" width="61"> <tbody>
</tbody>

SHEET1Day #1Daily SalesMTD SalesYTD Sales
Product125
Product219
Product318
Etc

<tbody>
</tbody>
SHEET2Date1/2/20121/3/20121/4/20121/5/20121/6/20121/7/20121/8/20121/9/2012
12345678
Region1Product12010151010101010
Region1Product21315151515151515
Region1Product3105555555
Region2Product151111111
Region2Product266666666
Region2Product3812121212121212
EtcEtc
EtcEtc

<tbody>
</tbody>

Any help is much appreciated! :)
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi

I would probably use a Pivottable for that task.
Your formula is also referencing a sheet called "2012 Sales". What's on that sheet?
 
Upvote 0
What version of Excel are you using? The SUMIFS function will do just that.

SHEET1Day #1Day #2Day #3
Product1251116
Product2192121
Product3181717

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>

This is the table I have, with SHEET1 in cell A10. Use the formula

=SUMIFS(Sheet2!C:C,Sheet2!$B:$B,$A11)

in cell B11, and then copy/paste it across the range and it should pull the sums you need.
 
Upvote 0
Thanks Vidar. '2012 Sales' should be 'Sheet2' I missed that one when I tried to make the formular simple.

I found a formula that is finally generating numbers but the numbers are not correct:
=SUMPRODUCT(('Sheet2'!$D$4:$JC$113)*('Sheet2'!$C$4:$C$113='Sheet1'!$C6)*('Sheet2'!$D$3:$JC$3='Sheet1'!$R$4))

D4:JC113 is the sales data in sheet 2
C4:C113 is the Product list in sheet 2
C6 in Sheet1 is the Product to be totalled
R4 is Day #
 
Upvote 0
Hi Inzuri. I have Excel 2010. I tried that formula and came up with an error.

I am trying to get a formula like: Look in Sheet2 for Product1 on Day #1 and total all Product1 in that column. There are 5 different regions that sell Product 1. If I change the date (Day#) the formula looks for the total on sheet of Product1, Product2, etc.
On Sheet2 below the daily sales data I have calculation for month-to-date and year-to date totals. So if I can get the Daily Sales totals to work I will be able to change the data range for MTD and YTD totals in Sheet 1.
I hope I did not make this more confusing :(
But thanks for any suggestions you may have.
 
Upvote 0
Yes, I have more formulas to calculate variance.
Wish I could send you my spreadsheet lol
 
Upvote 0

Forum statistics

Threads
1,215,331
Messages
6,124,311
Members
449,152
Latest member
PressEscape

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