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
574
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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
The below sample shows the January - May
 

Attachments

  • Capture.PNG
    Capture.PNG
    58.7 KB · Views: 9
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,223,956
Messages
6,175,607
Members
452,660
Latest member
Zatman

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