sumif date range

IME410

New Member
Joined
Feb 11, 2003
Messages
18
I am trying to do a simple sumif, but the formula always gives me zero.

I need to sum numbers in column F if the dates in column A are within a certain range. I would like this range to come from dates in cells on another worksheet. If I hand type the dates, the numbers populate correctly, but if I select the cell with the dates in my formula if will not calculate and gives zero for the answer. It seems to be from the >,< signs because if I am going for an exact match it will calculate.

In the formula A2 is my low date and A3 is the high date for the range.

=SUMIF('GFRC Schedule'!A3:A136,">A2",'GFRC Schedule'!F3:F218)-SUMIF('GFRC Schedule'!A3:A136,">=A3",'GFRC Schedule'!F3:F218)
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
Hi IME410

Instead of ">A2" use ">"&A2, the same for ">=A3" -> ">="&A3

HTH
PGC
 

awalle

Board Regular
Joined
Jul 12, 2006
Messages
56
Try taking out of the quotation mark and use concatenate symbol "&".

The formula will change to this:

=SUMIF('GFRC Schedule'!A3:A136,">" & A2,'GFRC Schedule'!F3:F218)-SUMIF('GFRC Schedule'!A3:A136,">=" & A3,'GFRC Schedule'!F3:F218)

This should work.

Hope this can help you.
AWalle.
 

Forum statistics

Threads
1,141,596
Messages
5,707,303
Members
421,502
Latest member
PULBAG

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
Top