Age of Queue each day based on 1 assumption

Michaelm1122

New Member
Joined
Aug 12, 2014
Messages
12
I am trying to figure out how to automate or simplify a manual report. I was to track the age of queue of items from one day to the next based on an assumption of how many items we can get through. So for example I have 100 items currently at 58, and then 350 at day 57 and so forth. The assumption is that I can close 50 items a day, but I need to figure out based on a varying inventory from day to day and an assumption of what can be completed each day of what the age will be in the future. The goal is to show the age in a chart so that I see what the age of my queue will be in one month.
 
Sorry I thought you had enough info is there anyway I can send you my worksheet? I Can't figure out how to attach on this website
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Michael, Thanks for sending a copy of your file. Here's a screen shot of part of your worksheet for the benefit of others that find this thread...


Excel 2013
ABCDEFGH
5Monday - January 11th
6Age83828178777675
7Row Labels
8Queue64258279237563536304
9
10Production275(day 82)
11
12Tueday - January 12th
13Age8382797877
14Row Labels
15Queue47279237563536
16
17Production275(day 82)
Sheet1


Your worksheet has about 30 of these sets of data showing the forecasted queue for each day.

If your objective is to create a chart that shows the forecasted age of the queue for each of the next 30 days, it would seem that the minimum inputs needed are:

1. The make up of the queue today (Rows 5:8)
2. The daily production or items to be cleared each day (B10, B17...)

Note that since your daily production is not constant (you have variations from 275 farther down the sheet), this calls for a slightly different approach than if you assumed a constant 50 items/ day.

Do you have control over the way this data is organized, and would you be open to changing that if it made the process faster and easier to maintain?

Are the other 29 sets of data needed for your use for other purposes, or are they only being used as a means for you to make the 30 day forecast?
 
Last edited:
Upvote 0
Jerry yes I have control over the way the data is organized. The age of the queue is essentially the oldest item in the queue minus todays date. The method that you see here is the inefficient way you are helping me solve for. The production per day is set a week at a time based on the amount of resources available to work the queue in a given week that is why you see a change in the production number. You are correct to assume we are only interested in the tail of the data each day essentially what day are we working the queue at each day in the future. The forecast is updated once a week with the current inventory numbers for each day, and the updated assumption of what will get closed each week. The challenge is that on any given day we may be able to get through that days worth of inventory and move to the next day and possible three day ahead, or if they volume is high it may take two or three days to work through that days batch of inventory.
 
Upvote 0
Ideally it would be great if I could take this all the way in to the future and use as sort of a goal seek to see what our production needs to be to drive down the age of the queue. So the inventory fluctuates each day and we have new inventorycome in every day. However the part we have control over is the production, if I add resources, gain efficiencies, the volume drops and can drive the age of the queue down. So for example if I can get production to 1000 a day I can drive the age down. This is the part that is forecasted potentially making all inventory dates in the future relevant
 
Upvote 0
Michael, Here's a simpler process for you to consider.

List inventory by inventory create date as shown here. For dates, don't use text strings like "Monday - January 11th", but rather: 1/11/2016. This allows you use the dates to make calculation. You can use number formatting to customize the way the date values are displayed.


Excel 2013
ABCDEFG
1As of Start of Day
2Monday - January 1110/2010/2110/2210/2510/2610/27
3Queue64258279237563536
4Queue Running Total6432260183814011937
Sheet1
Cell Formulas
RangeFormula
B4=N(A4)+B3

Then use a table like this to enter your assumptions about daily production and calculate the age of the queue based on those assumptions.


Excel 2013
ABCDEFG
7ForecastRunningMatchQueueAge ofRemaining
8Production DayProductionProductionColumnDateQueueItems
9Monday - January 11275275110/218247
10Tuesday - January 12275550210/228251
11Wednesday - January 13275825310/258013
12Thursday - January 142751,100410/2680301
13Friday - January 152751,375410/268126
14Monday - January 181001,475510/2783462
15Tuesday - January 193001,775510/2784162
16Wednesday - January 203002,075610/2884166
17Thursday - January 213002,375710/2984118
18Friday - January 223002,675810/3183118
19Monday - January 253002,9751111/48263
20Tuesday - January 263003,2751211/582106
21Wednesday - January 273003,5751311/88078
22Thursday - January 283003,8751411/980393
23Friday - January 293004,1751411/98193
24Monday - February 013254,5001511/1083412
25Tuesday - February 023254,8251511/108487
26Wednesday - February 033255,1501611/1184113
27Thursday - February 043255,4751711/128470
28Friday - February 053255,8001811/158274
29Monday - February 083506,1501911/1684531
30Tuesday - February 093506,5001911/1685181
31Wednesday - February 103506,8502011/1785666
32Thursday - February 113507,2002011/1786316
33Friday - February 123507,5502111/1886304
Sheet1
Cell Formulas
RangeFormula
A9=A2
A10=A9+IF(WEEKDAY(A9)=6,3,1)
C9=B9+N(C8)
D9=MATCH(C9,$B$4:$BN$4,1)
E9=INDEX($B$2:$BN$2,1,D9+1)
F9=A9-E9
G9=INDEX($B$4:$BN$4,1,D9+1)-C9
 
Last edited:
Upvote 0
It is working pretty well, for some reason however it is giving me #N/A errors just on the D9,E9,F9, and G9? All of the rest of the rows have data filled in.
 
Upvote 0
Michael, That's my bad :p Match will a match_type parameter "less than" will error if the lookup value is less than the first value in the lookup.

I hadn't anticipated the scenario of the first day production not clearing the first day of inventory.

Just change the formula in D9 this and copy down:

=IFERROR(MATCH(C9,$B$4:$BN$4,1),0)
 
Upvote 0
Can you give me a brief explanation of how the formulas work to accomplish this task? Thanks

Here's an explanation based on the screen shot in Post #15 (with corrected formula in Post #17):

Code:
[B]B4: =N(A4)+B3  [/B]
Calculates running total of queue items. 
The N() function avoids an error if non-numeric value is in referenced cell.

[B]A9:=A2 [/B]
Carries down start date to ensure production table starts on same date as the inventory in Rows 2:4

[B]A10: =A9+IF(WEEKDAY(A9)=6,3,1) [/B]
Lists dates and skips weekends. If previous date was a Friday, returns 
next Monday's date, otherwise returns the next date.

[B]C9: =B9+N(C8) [/B]
Calculates running total of forecasted production. The N() function avoids an error 
if a non-numeric value is in referenced cell.

[B]D9: =IFERROR(MATCH(C9,$B$4:$BN$4,1),0) [/B]
Finds the largest value in the Queue Running Total (Row 4) that is less than or equal 
to the lookup value (the Running Production Total for that date). Returns the 
Column number for that matched item. The IFERROR part handles the scenario 
that no values in the Queue Running Total are less than the lookup value.

[B]E9: =INDEX($B$2:$BN$2,1,D9+1) [/B]
Returns Queue Date by looking in the Inventory Dates (Row 2). The Queue Date 
will be one Column to the right of the Column found by the Match formula in D9.

[B]F9: =A9-E9 [/B]
Calculates Age of Queue by subtracting Queue Date (10/21/2015) 
from Production Date (1/11/2016)

[B]G9 =INDEX($B$4:$BN$4,1,D9+1)-C9 [/B]
Calculates how many items will be remaining from the Queue Date's inventory. 
Subtracts the Running Production Total from the Queue Running Total for 
the Queue Date and returns the difference.

Just ask if you'd like me to elaborate further on any of these.
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,955
Latest member
BatCoder

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