Total cells within a Column using IF, DATERANGE & TEXT

msi56

New Member
Joined
Mar 14, 2016
Messages
2
Hello,

I am working on a records document that will be added to over time and will need to generate automatic reports.

I've simplified the format for what questions I need answered, but see below the basic information 'category', 'units' & 'date':



What I need to report is the total units by month, per category. So for example I would like one cell to total all 'mens' 'units' within the month of July.

As this will be added to over time, the formula will need to pick up new data being added within all subsequent rows.

Total value is irrelevant at this stage, once I figure how to total these values I can apply this to other cells.

Appreciate your help.

Mitch
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi,

It would be better to show a sample table rather than a screenshot, so potential helpers wouldn't need to replicate your table.

This might be what you're after; however, looking at your screenshot, your C or "Date" column may not be formatted as a date, so the formula may need to be tweaked (and also, you said July, but your table shows "Aug-16", so that's what I used), but try:


Excel 2010
ABCDEFGH
1CategoryUnitsDateAug-16GenderUnitsTotal Value
2MENS2,7755/07/2016MENS0
3MENS3,0155/07/2016LADIES2415
4MENS2,2205/07/2016KIDS2835
5MENS8885/04/2016
6MENS6605/04/2016
7MENS8045/04/2016
8LADIES1,45515/05/2016
9LADIES1,24515/08/2016
10LADIES1,17015/08/2016
11KIDS1,48515/08/2016
12KIDS1,35015/08/2016
13KIDS1,39515/05/2016
14
15Assumes this column is formatted as Date, d/mm/yyyyAssumes the Header is formatted as mmm-yy
Sheet1
Cell Formulas
RangeFormula
G2=SUMPRODUCT(--(A$2:A$13=F2)*(MONTH(C$2:C$13)=MONTH(E$1)),B$2:B$13)


G2 formula copied down.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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