+ Reply to Thread
Results 1 to 7 of 7

Calculate Defined Weekly Demand Based on Current Date

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2016 (PC) & 2011 (mac)
    Posts
    33

    Calculate Defined Weekly Demand Based on Current Date

    I have a spreadsheet that I use for forecasting future inventory based on current inventory levels, predefined weekly usage quantities, and shipping quantities. I typically update this sheet weekly and manually adjust the demand based on how many weeks are left in the month.

    For example, Columns E, H, and K represent the monthly demand for the respective months. Currently, I take the Average Weekly Usage (AWU) in Column C and multiply by 4 to show the demand for a whole month. As there are only two weeks left in June, I changed the formula in Column E (June Demand) to multiply by 2.

    This is only a portion of a fairly complex sheet and I'm trying to train others on taking over this task. There is a lot to remember in the process and if one forgets to adjust the current month's demand, the whole thing goes to heck.

    How can I get the sheet to automatically adjust the demand based on some sort of date based equation?

    If you can figure this out, you win the internet.

    ETA-This is for Excel 2010 on a PC.
    Attached Files Attached Files
    Last edited by d_striker; 06-14-2013 at 11:04 AM.

  2. #2
    Registered User
    Join Date
    08-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2016 (PC) & 2011 (mac)
    Posts
    33

    Re: Calculate Defined Weekly Demand Based on Current Date

    52 views and no nibbles.

    Have I finally presented a challenge that EF can't answer?

  3. #3
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Calculate Defined Weekly Demand Based on Current Date

    Hi -

    Try the attached. It Compares the week number of today's date versus the 28th day of whatever month you have written in the header row (Row 1). I used 28 because February only has 28 days, all the rest have at least 28 days. If today's date is more than 4 weeks out from the end of the month, then the formula just multiplies by 4. If it's less than 4 weeks until the end of that month, it uses whatever is left (1,2, or 3 weeks. I suppose you could add something to check if today's date is after the current month, to avoid negative results, but it sounds like you update this frequently anyway.

    So, going forward, all you have to do is change the first three letters of the month in the header and Excel will update the demand calculation.

    Hope this helps.
    Attached Files Attached Files
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  4. #4
    Registered User
    Join Date
    08-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2016 (PC) & 2011 (mac)
    Posts
    33

    Re: Calculate Defined Weekly Demand Based on Current Date

    Quote Originally Posted by loginjmor View Post
    Hi -

    Try the attached. It Compares the week number of today's date versus the 28th day of whatever month you have written in the header row (Row 1). I used 28 because February only has 28 days, all the rest have at least 28 days. If today's date is more than 4 weeks out from the end of the month, then the formula just multiplies by 4. If it's less than 4 weeks until the end of that month, it uses whatever is left (1,2, or 3 weeks. I suppose you could add something to check if today's date is after the current month, to avoid negative results, but it sounds like you update this frequently anyway.

    So, going forward, all you have to do is change the first three letters of the month in the header and Excel will update the demand calculation.

    Hope this helps.
    Thanks! Sorry about the long delay but I've been out of the office.

    Your formula works great except for previous months. The actual spreadsheet that I use has all 12 months on it. Your formula shows a negative number for previous months which yields incorrect data.

    I tried adding another and/if statement to it but I can't figure it out. What can I do to treat any negative number as 0?

  5. #5
    Registered User
    Join Date
    08-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2016 (PC) & 2011 (mac)
    Posts
    33

    Re: Calculate Defined Weekly Demand Based on Current Date

    Bumpity bump.

  6. #6
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Calculate Defined Weekly Demand Based on Current Date

    Sorry -

    I haven't been back to this site for about a week - Day job gets in the way sometimes.

    Try the attached. I modified the formula to check if today's week is after whatever month is in the header cell above. If so, it simply returns a zero. If not, it checks to see how many weeks are left after today and returns the appropriate multiplier (4 or less).

    Hope this helps.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2016 (PC) & 2011 (mac)
    Posts
    33

    Re: Calculate Defined Weekly Demand Based on Current Date

    Quote Originally Posted by loginjmor View Post
    Sorry -

    I haven't been back to this site for about a week - Day job gets in the way sometimes.

    Try the attached. I modified the formula to check if today's week is after whatever month is in the header cell above. If so, it simply returns a zero. If not, it checks to see how many weeks are left after today and returns the appropriate multiplier (4 or less).

    Hope this helps.

    No apologies necessary. I completely understand.

    Thank you VERY MUCH for solving this out. I was going crazy trying to figure it out. Just when I think I'm getting more competent within Excel, people like you school me. This was one of the most complex formulas that I've posted on here and you killed it.

    Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1