SUM and CHOOSE formula question

sea_captain

New Member
Joined
Jan 10, 2017
Messages
15
I work with P&L's a lot and do a lot of current month/YTD variances to current year / prior year and budget.

I've consolidated a large file from ~50MB to 20MB by reorganizing a mapping table
In this file i have a Flash report for Revenue and EBITDA by divisions / service lines and Acquisitions.
One of these acquisitions uses proforma data from Jan-Oct 2023 with Actuals in Nov and Dec23.

i use "CHOOSE" to pull the Current Month (2024 and 2023 actual and 24 budget) and use "SUM/CHOOSE" for YTD data (reading across 12 months ('24A/'23A/'24B)

I need to show "As Reported" data for one of the acquisitions (less proforma data / Jan-Oct23)
For the Current Month(s), if i use this formula: (A1 = the number of the month, i.e, "8" = Aug / B1 = Jan23, C1=Feb23 etc.)
=CHOOSE($A$1,B1,C1,D1,E1,F1,G1,H1,I1,J1,K1,L1,M1) - this will give me the number of the column (month)

Since i need to pull AS REPORTED data, actuals starting in Nov23, i changed the formula to:
=CHOOSE($A$1,0,0,0,0,0,0,0,0,0,0,L1,M1), this will give me only numbers in Nov and Dec (L1 and M1) - this works.

The problem i'm having is the YTD formula, which looks like this
=SUM(B1:CHOOSE($A$1,B1,C1,D1,E1,F1,G1,H1,I1,J1,K1,L1,M1))

If i change it to =SUM(0:CHOOSE($A$1,0,0,0,0,0,0,0,0,0,0,L1,M1)) i get a #VALUE error.
I've played with the formula for a good bit with no luck. Anyone know a work around for this?
I can put a note somewhere to remind myself to pull the data come Nov/Dec but would rather automate if possible.

Thanks
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I don't understand how your second CHOOSE formula could work since it would only pick one of those values not 2, but not sure why you're using CHOOSE in the first place.

If you're trying to sum the values from the first month to M1. Then I would do this:
=SUM(INDEX(B1:M1,A1):M1)
 
Upvote 0
1725468107068.png

may be this picture helps. the formula you provided didn't bring back the number i was looking for.
every month i change cell C1 (i.e. from 11 to 12) and that will give December amount and YTD amount. I just need to figure out how to add the YTD formula, but exclude the months between Jan and Oct like it's done for the CM formula.
 
Upvote 0
How about
Excel Formula:
=SUM(L4:INDEX(B4:M4,C1))
 
Upvote 0
Ok, how about
Excel Formula:
=if(c1<11,0,SUM(L4:INDEX(B4:M4,C1)))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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