Sum Columns A, D, F, H based on date in A3 do this for each row

Mldeuser

Well-known Member
Joined
Dec 27, 2008
Messages
573
Office Version
  1. 365
Platform
  1. Windows
Hello

I have a spreadsheet that compares the budget to the actuals for each month. I would like to have a formula that can sum the months that are equal to or less than the date in cell A3.

If the date in A3 is 02/29/24 it would add columns C and G in column AY.

Budget columns are C, G, K, O, S, W, AA, AE, AI, AM, AQ, AU

Thank you
 
=SUM(FILTER(C8:AU8,(C8:AU8<>"")*(C$7:AU$7=$C$7)*($C$8:$AU$8<=$A$3)))
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Your formula should be:

VBA Code:
SUM(FILTER(C9:AU9,(C9:AU9<>"")*(C$7:AU$7=$C$7)*($C$8:$AU$8<=$A$3)))

The formula you posted is looking at row 8 which contains the dates. The formula should be looking at row 9. Copy and paste this formula on cell AY9.
 
Upvote 0
=SUM(FILTER(C9:AU9,(C9:AU9<>"")*(C$6:AU$6=$C$6)*($C$7:$AU$7<=$A$3)))

This is what I have in AY9 I updated the formula to look at row 6 which contains the word Budget and row 7 which contains the month and it works

Thank you
 
Upvote 0
Solution
=SUM(FILTER(C9:AU9,(C9:AU9<>"")*(C$6:AU$6=$C$6)*($C$7:$AU$7<=$A$3)))

This is what I have in AY9 I updated the formula to look at row 6 which contains the word Budget and row 7 which contains the month and it works

Thank you
You are right! I overlooked the row numbers. Budget is listed on row 6 and dates on row 7 per your example. Glad you were able to figure it out.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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