# Sumif question

#### bionicle

##### Board Regular
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,

Do you mean a count (eg the number of dates in jan)? if so you need to use countif

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))

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.

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.

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

Thanks all, most appreciated.

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

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.

Replies
3
Views
138
Replies
11
Views
579
Replies
1
Views
171
Replies
9
Views
165
Replies
7
Views
313

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.

### Which adblocker are you using?

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

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