mbsalim

New Member
Joined
Jan 20, 2015
Messages
16
Hi,

I've got a workbook for budget variance but need the total budgeted hours to reflect only up to the week beginning of todays date as opposed to the whole year so trying the following formula;

=SUMIF(C5:AH5,IF(A3>=C5:AH5,1,0),C9:AH9)

where C5:AH5 = week begin dates
A3= =TODAY()-WEEKDAY(TODAY())+2 ... (monday of every week) - this would match the dates in C5:AH5
C9:AH9 the budgeted hours that need to be summed

but the formula seems to be failing as it is giving me a zero as opposed to the actual figure

thanks!!!!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
IF(A3>=C5:AH5,1,0) delivers 1 and/or 0's, not dates which can serve as criteria for C5:AH5 = week begin dates.
 
Upvote 0

Forum statistics

Threads
1,214,886
Messages
6,122,093
Members
449,064
Latest member
Danger_SF

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