Conditional sum

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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,223,627
Messages
6,173,417
Members
452,514
Latest member
cjkelly15

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