cumulative summing of rows until a certain value is reached and returning the number of rows counted

travelmeister2

New Member
Joined
Dec 18, 2012
Messages
3
Dear all

My apologies for a confusing title ! I'm coming on here again as I had such a great/ quick answer last time for a different problem

I work in healthcare and having to predict my waiting list for the service I work in based on the referrals that come in each week

In the table below I have
- the week of year A
- the number of new referrals coming B in I would enter this manually
- the volume waiting C- this is for cell D3 is =D2+C3-E6
- available appointments D- I type this in manually

What i would like to do is formula for or calculate the waiting time in E

this would be for row 3 : counting down the the number of rows d3, d4 d5... etc down until the sum of available appointments equals that waiting in C3. In this case add 12 and then add 20 which gives 32. which is 2 rows IE a 2 week wait. ideally where the numbers dont add up exactly I'd like it to represent the portion of the week ie 2.6 2.9 etc rather than just be an integer count of rows if that makes sense?

I can reword this if need be it took me some time to work out how to put it down into words! Can anybody help. I'm hoping this is quite simple!

Many thanks

Andy



ABCDE
1WeekNew Referralsvolume waitingAvailable AppointmentsWaiting Time (weels)
223 206
324203412 :confused: = 2
425204220
526204235
627202754
7 20-730
8 20-1730

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>







<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>


 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,215,159
Messages
6,123,348
Members
449,097
Latest member
thnirmitha

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