sumif formula not working

johngio

Board Regular
Joined
Jan 28, 2005
Messages
174
hi all,

another possibly simple problem:

My formula has evolved to this:

=SUMIF('Target 04'!B23:M23, "<"&DATE(YEAR(F$8),MONTH(F$8),DAY(1)), 'Target 04'!B56:M56)

the info from B23:M23 =
Jan-04 Feb-04 Mar-04 Apr-04 May-04 Jun-04 Jul-04 Aug-04 Sep-04 Oct-04 Nov-04 Dec-04

the info from b56:m56 =

40.6 41.2 42.8 40.6 42.8 42.9 42.8 42.8 42.9 42.8 42.9 42.8


however, when i set the date in f$8 to 1/11/04, i get an answer of 25. In fact, whatever i set the date to, i get answers of between 9 to 25.

Any ideas what I'm 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
The logic in you formula states that you are adding all the values that fall before the first day of the month that is inputed. So 1/11/04 would be changed to 1/1/04 and should return a value of 0 with your sumif as is. I checked the logic in you statement and it works for me. Make sure your ranges are correct in reference to your data table. Maybe you can give a couple of examples of what someone would input and what they should get in return.
 
Upvote 0

Forum statistics

Threads
1,203,081
Messages
6,053,416
Members
444,662
Latest member
AaronPMH

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