Averaging Total across variable # of cells, repeatedly

yousifH

New Member
Joined
Nov 18, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hey everyone!

Trying to figure out this calculation and got a bit stuck. Please see the image below.

1668795176081.png

So basically, we received that $500K on 11/4/22 after 4 (see the count below the dollars) days of no pay. I need to average out the cost (500k / 4 days = 125k per day), and display the result across each of the 4 days. For example, 11/1/22, 11/2/22, 11/3/22, and 11/4/22 should all have 125k under each. Similarly, we received 250k on 11/7/22 and we need that averaged (250k/3 days) and spread across 11/5, 11/6 and 11/7. Hopefully this makes sense, let me know if you have any questions. Thanks!
 

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.
Making some pretty big assumptions in your file to work with this Formula. Assume a 1 will always follow a day of payments in row 3. Assume you will continue the timeline horizontally - e.g. Dec 1 either starts a new row with a 1 or would be in column AE.

You can lock the bolded sections in the formula but only after the :

Formula starting in cell A4 =IFERROR(SUM(OFFSET(A2,0,0,1,MATCH(1,B3:Y3,0)))/MAX(OFFSET(A3,0,0,1,MATCH(1,B3:Y3,0))),0)

A5 is the formula text from cell A4. Good luck hope this helps!

1668802080139.png
 
Upvote 0
Solution

Forum statistics

Threads
1,215,518
Messages
6,125,291
Members
449,218
Latest member
Excel Master

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