Sumif question

bionicle

Board Regular
Joined
Apr 23, 2009
Messages
186
Office Version
  1. 365
Platform
  1. Windows
Hi All,

have a question for you, if I have a list of dates in the format of 05/01/2016 but want to return a sum value against all the dates listed as January how do I do it?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi All,

have a question for you, if I have a list of dates in the format of 05/01/2016 but want to return a sum value against all the dates listed as January how do I do it?
Hi bionicle,

Assuming that your dates and in column A and the values are in column B you could try this:

=SUMIFS(B1:B100,A1:A100,">="&DATE(2016,1,1),A1:A100,"<="&DATE(2016,1,31))


Alternatively, assuming your dates are in row 1 going across and your values are in row 2 then you could try this:

=SUMIFS(A2:CV2,A1:CV1,">="&DATE(2016,1,1),A1:CV1,"<="&DATE(2016,1,31))
 
Upvote 0
Hi All,

have a question for you, if I have a list of dates in the format of 05/01/2016 but want to return a sum value against all the dates listed as January how do I do it?

=SUMIFS(B:B,A:A,">="&(1&E1),A:A,"<="&EOMONTH(1&E1,0))

where column B is the reference to sum, column A houses dates, and E1 the month name january.
 
Upvote 0
Something like this:

=SUMIFS(A:A,B:B,">="&"01/01/2016",B:B,"<"&"01/02/2016")

The dates can be replaced for cell references if you want.
 
Upvote 0
Hi bionicle,

Assuming that your dates and in column A and the values are in column B you could try this:

=SUMIFS(B1:B100,A1:A100,">="&DATE(2016,1,1),A1:A100,"<="&DATE(2016,1,31))


Alternatively, assuming your dates are in row 1 going across and your values are in row 2 then you could try this:

=SUMIFS(A2:CV2,A1:CV1,">="&DATE(2016,1,1),A1:CV1,"<="&DATE(2016,1,31))


works a treat, thank you
 
Upvote 0
Just noticed something, on my spread sheet I have multiple years; what if I only want to look at the month rather than specific years i.e all dates say within January rather than just 2016?

also how would I get it to look at a third column (Q) so it only summed against the word WON
 
Upvote 0
Just noticed something, on my spread sheet I have multiple years; what if I only want to look at the month rather than specific years i.e all dates say within January rather than just 2016?

also how would I get it to look at a third column (Q) so it only summed against the word WON
You'd probably want to change this to a SUMPRODUCT as follows:

=SUMPRODUCT((MONTH(A1:A100)=1)*((Q1:Q100)="WON")*B1:B100)

The above checks that the month in column A is 1 regardless of the year, it looks at column Q for the value "WON", then sums the values from column B of the corresponding rows.
 
Upvote 0

Forum statistics

Threads
1,214,714
Messages
6,121,048
Members
449,007
Latest member
cloamp

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