#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Weeks on hand

Excel 2003

Hello, I am trying to calculate weeks on hand.

I have a forecast for an item by week (A=week1, B=week2, etc) I also have
the total quantity on hand. I need a formula that will calculate how many
cells (weeks) = the total quantity on hand. Example:
A1=99; B1=105; C1=89; D1=102 (forecasted quantities)
A2=312 (quantity on hand)
A3=3.2 (weeks on hand- rounded to tenths)- this is where I need the
formula.

Thanks in advance for any help given.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Weeks on hand

Hi,

I'm confused by this question, why does A2=312?

Also, if you can describe how you got to 3.2 in A3 then I'm sure someone
will provide you with a formula.


Mike

"Theawilla" wrote:

Excel 2003

Hello, I am trying to calculate weeks on hand.

I have a forecast for an item by week (A=week1, B=week2, etc) I also have
the total quantity on hand. I need a formula that will calculate how many
cells (weeks) = the total quantity on hand. Example:
A1=99; B1=105; C1=89; D1=102 (forecasted quantities)
A2=312 (quantity on hand)
A3=3.2 (weeks on hand- rounded to tenths)- this is where I need the
formula.

Thanks in advance for any help given.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Weeks on hand

A simple approach would be to divide 312 with the average consumption
per week, hence in A3:

=A2/AVERAGE(A1:D1)

With your numbers as input the formula returns: 3.159493671

Does this help?
Kostis Vezerides

On May 20, 7:18 pm, Theawilla
wrote:
Excel 2003

Hello, I am trying to calculate weeks on hand.

I have a forecast for an item by week (A=week1, B=week2, etc) I also have
the total quantity on hand. I need a formula that will calculate how many
cells (weeks) = the total quantity on hand. Example:
A1=99; B1=105; C1=89; D1=102 (forecasted quantities)
A2=312 (quantity on hand)
A3=3.2 (weeks on hand- rounded to tenths)- this is where I need the
formula.

Thanks in advance for any help given.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Weeks on hand

Your example layout is somewhat confusing. I'm not 100% sure, but I think
you may be looking for this formula...

=ROUND(A2/A1,1)

Rick


"Theawilla" wrote in message
...
Excel 2003

Hello, I am trying to calculate weeks on hand.

I have a forecast for an item by week (A=week1, B=week2, etc) I also have
the total quantity on hand. I need a formula that will calculate how many
cells (weeks) = the total quantity on hand. Example:
A1=99; B1=105; C1=89; D1=102 (forecasted quantities)
A2=312 (quantity on hand)
A3=3.2 (weeks on hand- rounded to tenths)- this is where I need the
formula.

Thanks in advance for any help given.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Weeks on hand

This is really close but is there some way to do it without averaging? I
have 52 weeks of forecast data and this would work if the weeks were all
pretty even, but doesn't account for huge spikes during
Thanksgiving/Christmas.

This would work if I just counted one week past my total on hands and only
used those weeks but I would have to do that for every week instead of just
copying the formula.

Thanks so much for your post.

"vezerid" wrote:

A simple approach would be to divide 312 with the average consumption
per week, hence in A3:

=A2/AVERAGE(A1:D1)

With your numbers as input the formula returns: 3.159493671

Does this help?
Kostis Vezerides

On May 20, 7:18 pm, Theawilla
wrote:
Excel 2003

Hello, I am trying to calculate weeks on hand.

I have a forecast for an item by week (A=week1, B=week2, etc) I also have
the total quantity on hand. I need a formula that will calculate how many
cells (weeks) = the total quantity on hand. Example:
A1=99; B1=105; C1=89; D1=102 (forecasted quantities)
A2=312 (quantity on hand)
A3=3.2 (weeks on hand- rounded to tenths)- this is where I need the
formula.

Thanks in advance for any help given.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Weeks on hand

I understand your point and thought as much in the first post, only
wondered whether a simpler approach would do.

The new approach basically searches until we get to a month where
inventory will not be enough. Then it divides the remainder by the
inventory amount. To do this I modify the layout somewhat. A1:D1 still
contain forecasts. Now in A2:

=SUM($A$1:A1)

Copy to the right to produce cumulative consumption. Now it is cell A3
that contains the inventory. The following formula, for your data,
returns 3.078431373

=IF(ISNUMBER(MATCH(A3,A2:D2,0)),MATCH(A3,A2:D2,0), MATCH(A3,A2:D2)+(A3-
INDEX(A2:D2,MATCH(A3,A2:D2)))/INDEX(A1:D1,MATCH(A3,A2:D2)+1))

Philosophy: If it so happens that the inventory is consumed exactly at
the end of a month then the formula returns exactly the number of
months. Otherwise the formula finds the last month that inventory was
not exceeded. Then it adds the ratio of unconsumed divided by the
forecast of the next month.

Does this help?
Kostis

On May 20, 8:26 pm, Theawilla
wrote:
This is really close but is there some way to do it without averaging? I
have 52 weeks of forecast data and this would work if the weeks were all
pretty even, but doesn't account for huge spikes during
Thanksgiving/Christmas.

This would work if I just counted one week past my total on hands and only
used those weeks but I would have to do that for every week instead of just
copying the formula.

Thanks so much for your post.

"vezerid" wrote:
A simple approach would be to divide 312 with the average consumption
per week, hence in A3:


=A2/AVERAGE(A1:D1)


With your numbers as input the formula returns: 3.159493671


Does this help?
Kostis Vezerides


On May 20, 7:18 pm, Theawilla
wrote:
Excel 2003


Hello, I am trying to calculate weeks on hand.


I have a forecast for an item by week (A=week1, B=week2, etc) I also have
the total quantity on hand. I need a formula that will calculate how many
cells (weeks) = the total quantity on hand. Example:
A1=99; B1=105; C1=89; D1=102 (forecasted quantities)
A2=312 (quantity on hand)
A3=3.2 (weeks on hand- rounded to tenths)- this is where I need the
formula.


Thanks in advance for any help given.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Weeks on hand

Wow what a formula, I've been trying to work with this but while it works for
the first calculation when I copy it to the next week it is too low (I added
cells E1 and F1 at 100 each and changed the formula to compensate). My
answer comes out to 1.03 when it should be 2.09 for the B cell calculation.

"vezerid" wrote:

I understand your point and thought as much in the first post, only
wondered whether a simpler approach would do.

The new approach basically searches until we get to a month where
inventory will not be enough. Then it divides the remainder by the
inventory amount. To do this I modify the layout somewhat. A1:D1 still
contain forecasts. Now in A2:

=SUM($A$1:A1)

Copy to the right to produce cumulative consumption. Now it is cell A3
that contains the inventory. The following formula, for your data,
returns 3.078431373

=IF(ISNUMBER(MATCH(A3,A2:D2,0)),MATCH(A3,A2:D2,0), MATCH(A3,A2:D2)+(A3-
INDEX(A2:D2,MATCH(A3,A2:D2)))/INDEX(A1:D1,MATCH(A3,A2:D2)+1))

Philosophy: If it so happens that the inventory is consumed exactly at
the end of a month then the formula returns exactly the number of
months. Otherwise the formula finds the last month that inventory was
not exceeded. Then it adds the ratio of unconsumed divided by the
forecast of the next month.

Does this help?
Kostis

On May 20, 8:26 pm, Theawilla
wrote:
This is really close but is there some way to do it without averaging? I
have 52 weeks of forecast data and this would work if the weeks were all
pretty even, but doesn't account for huge spikes during
Thanksgiving/Christmas.

This would work if I just counted one week past my total on hands and only
used those weeks but I would have to do that for every week instead of just
copying the formula.

Thanks so much for your post.

"vezerid" wrote:
A simple approach would be to divide 312 with the average consumption
per week, hence in A3:


=A2/AVERAGE(A1:D1)


With your numbers as input the formula returns: 3.159493671


Does this help?
Kostis Vezerides


On May 20, 7:18 pm, Theawilla
wrote:
Excel 2003


Hello, I am trying to calculate weeks on hand.


I have a forecast for an item by week (A=week1, B=week2, etc) I also have
the total quantity on hand. I need a formula that will calculate how many
cells (weeks) = the total quantity on hand. Example:
A1=99; B1=105; C1=89; D1=102 (forecasted quantities)
A2=312 (quantity on hand)
A3=3.2 (weeks on hand- rounded to tenths)- this is where I need the
formula.


Thanks in advance for any help given.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Weeks on hand

Hi, I just saw your reply. Do you care to send me your data and point
out where the formula is not giving you the expected result? You can
email me at
vezerid at act dot edu

Regards,
Kostis

On May 27, 9:27 pm, Theawilla
wrote:
Wow what a formula, I've been trying to work with this but while it works for
the first calculation when I copy it to the next week it is too low (I added
cells E1 and F1 at 100 each and changed the formula to compensate). My
answer comes out to 1.03 when it should be 2.09 for the B cell calculation.

"vezerid" wrote:
I understand your point and thought as much in the first post, only
wondered whether a simpler approach would do.


The new approach basically searches until we get to a month where
inventory will not be enough. Then it divides the remainder by the
inventory amount. To do this I modify the layout somewhat. A1:D1 still
contain forecasts. Now in A2:


=SUM($A$1:A1)


Copy to the right to produce cumulative consumption. Now it is cell A3
that contains the inventory. The following formula, for your data,
returns 3.078431373


=IF(ISNUMBER(MATCH(A3,A2:D2,0)),MATCH(A3,A2:D2,0), MATCH(A3,A2:D2)+(A3-
INDEX(A2:D2,MATCH(A3,A2:D2)))/INDEX(A1:D1,MATCH(A3,A2:D2)+1))


Philosophy: If it so happens that the inventory is consumed exactly at
the end of a month then the formula returns exactly the number of
months. Otherwise the formula finds the last month that inventory was
not exceeded. Then it adds the ratio of unconsumed divided by the
forecast of the next month.


Does this help?
Kostis


On May 20, 8:26 pm, Theawilla
wrote:
This is really close but is there some way to do it without averaging? I
have 52 weeks of forecast data and this would work if the weeks were all
pretty even, but doesn't account for huge spikes during
Thanksgiving/Christmas.


This would work if I just counted one week past my total on hands and only
used those weeks but I would have to do that for every week instead of just
copying the formula.


Thanks so much for your post.


"vezerid" wrote:
A simple approach would be to divide 312 with the average consumption
per week, hence in A3:


=A2/AVERAGE(A1:D1)


With your numbers as input the formula returns: 3.159493671


Does this help?
Kostis Vezerides


On May 20, 7:18 pm, Theawilla
wrote:
Excel 2003


Hello, I am trying to calculate weeks on hand.


I have a forecast for an item by week (A=week1, B=week2, etc) I also have
the total quantity on hand. I need a formula that will calculate how many
cells (weeks) = the total quantity on hand. Example:
A1=99; B1=105; C1=89; D1=102 (forecasted quantities)
A2=312 (quantity on hand)
A3=3.2 (weeks on hand- rounded to tenths)- this is where I need the
formula.


Thanks in advance for any help given.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF, AND, BUT and ON-THE-OTHER-HAND formula :) JockW Excel Worksheet Functions 18 August 21st 07 09:58 PM
Impact of negative sales on inventory weeks on hand DHallgren Excel Discussion (Misc queries) 4 February 15th 07 02:57 PM
y-axis moves from the left hand side to the right hand side JP Excel Discussion (Misc queries) 1 March 13th 05 04:43 PM
y-axis moves from the left hand side to the right hand side! JP Charts and Charting in Excel 1 March 11th 05 12:29 AM
calculate weeks from a start date ( not yr weeks) Todd F. Excel Worksheet Functions 6 November 27th 04 05:53 PM


All times are GMT +1. The time now is 01:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"