Switching Date into full year not working?

Ronderbecke

Board Regular
Joined
Oct 4, 2017
Messages
73
Hey There,

Currently I am using this formula:

=SUMPRODUCT(IF(MOD(ROW(C12:C)-ROW(C12),12)=0,IF(ISNUMBER(C12:C),IF(C12:C-DAY(C12:C)+1=DATE(2017,8,1),C4:C))))

Which works great; however, when I try to get all the data from the whole year and switch to:

=SUMPRODUCT(IF(MOD(ROW(C12:C)-ROW(C12),12)=0,IF(ISNUMBER(C12:C),IF(C12:C-DAY(C12:C)+1=Year(2017),C4:C))))

It doesn't work at all? Am I doing something wrong here?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
C12:C isn't a valid reference (at least in the Excel version I use). As for the rest:

=SUMPRODUCT(IF(MOD(ROW(C12:C)-ROW(C12),12)=0,IF(ISNUMBER(C12:C),IF(year(C12:C-DAY(C12:C)+1)=2017,C4:C))))

may be one way to expand for the year.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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