SUMIF formula help needed

stitcho

New Member
Joined
Jun 8, 2011
Messages
3
Hi
I have a SUMIF formula that sums a column between a date range in another colunm which I can get to work fine but once I copy it to another cell and change the date range it breaks. This is the formula:

=SUMIF(STYDate,"=>"&DATE(2011,6,6),STYDuration)+SUMIF(STYDate,"<="&DATE(2011,6,10),STYDuration)

I then copied this to another cell and changed it to this:

=SUMIF(STYDate,"=>"&DATE(2011,6,13),STYDuration)+SUMIF(STYDate,"<="&DATE(2011,6,19),STYDuration)

The first formula works fine but for some reason the 2nd formula ignores the date range and sums the entire contents of the STYDuration column.

Anyone got any ideas? Excel 2003 BTW
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
If it helps at all I would like to get rid of the &DATE as the date range is specified in the sheet. So for example D3 has the start date and D4 has the end date. I would like to use these instead if possible as my date range as it makes managing the sheet easier

Edit: Ignore this one I have figured it out, still got same problem with the other formulas not working though
 
Last edited:
Upvote 0
Have changed the fomulas to this now:

=SUMIF(STYDate,"=>"&D3,STYDuration)--SUMIF(STYDate,"<="&D4,STYDuration)

AND

=SUMIF(STYDate,"=>"&E3,STYDuration)--SUMIF(STYDate,"<="&E4,STYDuration)

but still no luck :(
need this pretty urgently as well for reporting. Have made sure all the cells are the correct format, and trimmed off any spaces that might have popped up but still nothing
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,753
Members
452,940
Latest member
rootytrip

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