SUMIFS displaying date as a number

corte

New Member
Joined
Oct 7, 2009
Messages
5
I'm trying to create a SUMIFS statement for a date range.

My formula is: =SUMIFS(N:N,M:M,">="&Q5,M:M,"<="&Q6)

Sum_range (N:N)
Criteria_range1 (M:M)
Criteria1 ">="&Q5
Criteria_range2 (M:M)
Criteria2 ">="&Q6

Q5 = 10/1/2010
Q6 = 09/31/2011

The problem is on Criteria1. It returns ">=40452" as a result. However, Criteria2 correctly returns "<=09/31/2011".

Any ideas on what I am doing wrong?

Thanks!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Yes. Cells Q5 and Q6 are formatted as a Date in the '3/14/2001' format.

09/31/2011 in Q6 is not a date. Try:

=ISNUMBER(Q6)

for September counts 30 days.

Q5 on the other hand is a number (a date).

Hence the difference you observe.
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,551
Members
452,927
Latest member
rows and columns

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