Is there a Excel formula range to automatically move month on month?

smooth90

New Member
Joined
Aug 15, 2019
Messages
1
I am currently trying to use a formula range to automatically move along a column every month based on values up until the current month.
When a new month begins the formula should extend its range to the next new month and extend the sum. Each month ranges up to 4 years worth.

the error seems to be the lookup part not bringing through the values.

=SUM(AY26:FS26,INDEX(R26:FS26,MATCH(CHOOSE(MONTH(K21),DATERANGE),DATERANGE,0)))-SUM(R26:FS26)

Anyone know of a better method?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Welcome to the Forum!

The first problem with your formula is that you are using the CHOOSE function incorrectly. If you are looking for a value in a range you'll need MATCH.

The better method may be a SUMIF or SUMIFS, but first you'll have to give us a bit more detail about what you intend your formula to do?
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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