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
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
The below sample shows the January - May
 

Attachments

  • Capture.PNG
    Capture.PNG
    58.7 KB · Views: 7
Upvote 0
Thank you for the sample. Do you want to sum just the Actuals? Or are you wanting to see the difference etc? Can you tell me which results you'd like summed up?
 
Upvote 0
I would like to sum the budget columns that are equal to or less than the date in cell A3, if the date is 03/31/24 it would add the budget numbers for Jan-Mar in column AY. I would also be using the formula to add the actuals that met the criteria in column AZ

Thank you
 
Upvote 0
I'm assuming your dates are written as 1/1/2024, 2/1/2024 etc. formatted to show January, February, etc. If that's the case you can use this formula on column AY to get your sum. Drag the formula down for the other account numbers.

VBA Code:
=SUM(FILTER(C9:AU9,(C9:AU9<>"")*(C$7:AU$7=$C$7)*($C$8:$AU$8<=$A$3)))
 
Upvote 0
I am using the last day of each month, the formula brought in both the budget and the actual in column AY. I need it to only add the columns were there is the word Budget in row 6 if the date row 7 is equal or less than the date in cell A3

I am not sure how to write a formula that skips columns.
 
Upvote 0
I posted it into row 8 and updated any ref to row 9 to row 8. When I changed the date in cell a3 to 02/29/24 it sums columns C and D instead of columns C and G
 
Upvote 0
Hmmm, that is interesting. Can you post your formula? The formula I provided is looking for the word "Budget" on cell C7. The formula should not be summing column D as the contains the work "Actuals" not "Budget".
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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