Sumif month is aug

rae30

Board Regular
Joined
May 27, 2002
Messages
147
column b has a date, column e has the amount.

I would like to know my total for August (data only has 2018 dates)
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Try this:
Code:
=SUMPRODUCT(--(MONTH(B:B)=8),E:E)
 
Last edited:
Upvote 0
How about
=SUMPRODUCT(--(MONTH($B$2:$B$100)=8),($E$2:$E$100))
 
Upvote 0
result = #VALUE !

Invoice 12-Jul-17 597 Babypoint Lounge 1,256.62
Invoice 1-Jul-17 589 Babypoint Lounge 1,286.44
Invoice 9-Aug-17 574 Babypoint Lounge 1,290.24
Invoice 25-Aug-17 582 Babypoint Lounge 1,348.50
Invoice 23-Aug-17 630 Babypoint Lounge 1,348.50
Invoice 2-Aug-17 572 Babypoint Lounge 1,358.88
Invoice 17-Aug-17 575 Babypoint Lounge 1,742.57
Invoice 16-May-17 561 Element Lounge and Restaurant 196.82
Invoice 29-Apr-17 560 Element Lounge and Restaurant 388.10
Invoice 8-Apr-17 515 Element Lounge and Restaurant 448.00
Invoice 7-Mar-17 505 Element Lounge and Restaurant 460.90
Invoice 25-Mar-17 524 Element Lounge and Restaurant 504.48
Invoice 13-Feb-17 491 Element Lounge and Restaurant 523.61
Invoice 23-Mar-17 525 Element Lounge and Restaurant 787.72
 
Upvote 0
Sorry should have stated column B is a actual date, I need to know all of august...Aug 1 to 31
 
Upvote 0
It sounds like the values in column B are not valid dates
- or -
the entries in column E are not numeric, but numbers entered as text.

This is easy to confirm with the ISNUMBER function (dates are actually stored as numbers in Excel), i.e.
=ISNUMBER(B2)
=ISNUMBER(E2)

Do both of those return TRUE?
If not, the one that returns FALSE is not entered correctly.

And what is the EXACT range of your data, minus any headers?
 
Last edited:
Upvote 0
genius...the numbers are text. Fixed it by adding 0 in a new formatted column.

Thanks
 
Upvote 0
I would like to know my total for August (data only has 2018 dates)

result = #VALUE !

Invoice 12-Jul-17 597 Babypoint Lounge 1,256.62
Invoice 1-Jul-17 589 Babypoint Lounge 1,286.44
Invoice 9-Aug-17 574 Babypoint Lounge 1,290.24
Invoice 25-Aug-17 582 Babypoint Lounge 1,348.50
Invoice 23-Aug-17 630 Babypoint Lounge 1,348.50
Invoice 2-Aug-17 572 Babypoint Lounge 1,358.88
Invoice 17-Aug-17 575 Babypoint Lounge 1,742.57
Invoice 16-May-17 561 Element Lounge and Restaurant 196.82
Invoice 29-Apr-17 560 Element Lounge and Restaurant 388.10
Invoice 8-Apr-17 515 Element Lounge and Restaurant 448.00
Invoice 7-Mar-17 505 Element Lounge and Restaurant 460.90
Invoice 25-Mar-17 524 Element Lounge and Restaurant 504.48
Invoice 13-Feb-17 491 Element Lounge and Restaurant 523.61
Invoice 23-Mar-17 525 Element Lounge and Restaurant 787.72

Hi,

You might also want to Clarify if the YEAR is a factor.
 
Upvote 0
You are welcome.

genius...the numbers are text. Fixed it by adding 0 in a new formatted column.
Note that you can also fix it in place by doing the following (no need for helper columns):
1. Highlight the column
2. Change the format to any numeric format
3. Select "Text to Columns" from the Data menu
4. Click "Finish"
 
Upvote 0
You are welcome.


Note that you can also fix it in place by doing the following (no need for helper columns):
1. Highlight the column
2. Change the format to any numeric format
3. Select "Text to Columns" from the Data menu
4. Click "Finish"

You can also select data then use ALT+D,E,F to quickly change text numbers to number numbers
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,130
Members
453,021
Latest member
Justyna P

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