# sumif date range

#### IME410

##### New Member
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
Hi IME410

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

HTH
PGC

#### awalle

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

AWalle.

Thanks! Perfect.

Replies
3
Views
134
Replies
0
Views
194
Replies
8
Views
304
Replies
13
Views
269
Replies
13
Views
326

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.

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