Multiple Months (in columns) Repayments calculated in a single row

Ecell

New Member
Joined
Feb 9, 2018
Messages
2
Hi,

I have a schedule with many rows (rows are products) against which users input sales by month in columns. These sale amounts are then spread over a period (eg 12 months). See below 1,200 would be spread 100 per month for 12 months from Aug. The problem I am having is in trying to add to the 100 from another 50 per month for 12 months from Nov. I can do this in multiple rows and reconsolidate but I am trying to achieve a result on the same row against which the sales are entered.

12 month RepayJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOct
Sales012000060000000000000
RePMT0100100100150150150150150150150150150505050

<tbody>
</tbody>
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Oh that wont work at the far end.... hold on that may be more difficult
 
Upvote 0
This in C2 should work:

=SUM(INDEX(2:2,MAX(2,COLUMN(B1)-11)):INDEX(2:2,COLUMN(B1)))/12
 
Upvote 0
Thanks for the response, much appreciated - it works great if on its own in a blank sheet but I break it when trying to modify the array to be a fixed area (the original sales data sits in the first 60+ columns to the left) because I don't quite understand it and how the column references should operate. I am a novice with index'ing but I do use simple Index and matching to return the intersect of a row and col value.

First point of confusion, why are the column references in the "Row" part of the index (Index(Array,ROW,[Col] etc I would have thought you would be shifting the columns. Secondly, what's the purpose of max'ing it at 2 ?
 
Upvote 0
We are trying to create a moving range of 12 cells so any information before a year is ignored. However for the first 11 months it's obviously not possible to use 12 months. We simply dont have 12 months of data yet. So thats the reason for the max. It stops the formula erroring essentially. This formula is position dependant ie it needs to be altered depending on where it is placed in the spreadsheet.
 
Upvote 0

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

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