+ Reply to Thread
Results 1 to 13 of 13

Forecast + Offset Formula Needed

  1. #1
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Forecast + Offset Formula Needed

    Hello,
    Can anyone help me with making some changes to a FORECAST formula?

    I need a Forecast formula that includes the values of price every four hours over the last five instances and the current price. Below are formulas I've been working with.

    I'm thinking adding an Offset might be the best way to go because it'll allow me to skip between the prices and only factor in the prices I want.

    That's the gist of what I'm trying to do, be able to include any combination of numbers in a Forecast formula without the numbers having to be in continuous order.

    Basic Forecast Formula:
    Please Login or Register  to view this content.
    An Offset Version:
    Please Login or Register  to view this content.
    Please see attached spreadsheet for a better understanding. Thanking you for taking the time to read this post and for any and all help you can provide.
    Attached Files Attached Files
    Last edited by artiststevens; 02-21-2011 at 05:57 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Forecast + Offset Formula Needed

    I confess I'm struggling to follow the required logic... and the pseudo forecast formula is slightly odd given the offsets applied are on width rather than height.

    Could you post a revised sample with a number of expected results ? (calculated manually of course)

    The more expected results in the sample the easier it is to "cross the t's and dot the i's" from a logic perspective.

  3. #3
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Forecast + Offset Formula Needed

    DoneyOte,
    Thank you for the help. I really appreciate it, attached is another spreadsheet better explaining what I'm looking for. Thank you again and any and all help you can offer will be greatly appreciated.
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Forecast + Offset Formula Needed

    Can you outline how you arrive at 1.3616 for #18 ?

    If the Forecast is to include #5, #9, #13, #17 & #18 I would expect 1.36181

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Forecast + Offset Formula Needed

    DonkeyOte,
    Thank you again for all of the help. I attached an updated version of the spreadsheet with by hand calculation for each time sequence, so you can see how I arrived at each result.

    The values of each can be found at the top of the spreadsheet, with the corresponding times. I also, entered the array you provided, with the by hand values next to it. I'm sure I entered it correctly with CTRL + SHIFT + ENTER but I'm getting a different value.

    Hopefully you can help me figure out a solution to this problem. Thanks again, the help is greatly appreciated.
    Attached Files Attached Files

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Forecast + Offset Formula Needed

    First, I assumed that in your "real" version the hours 13:00 etc do not exist - only every 4th hour is listed.

    The differences stem from your use of "known x's".

    Using the example of forecast 2 (#18) you are using:

    Please Login or Register  to view this content.
    whereas my suggestion (condensed - removed Boolean Falses) evaluates to:

    Please Login or Register  to view this content.
    ie the same values for y but the known x's are different

    This difference in approach will cause a variance where the step between known x's is inconsistent as will be the case for #18-20, #22-24 etc...

    If you want to use 5, 1 to 5 for x & known x's then let us know but that approach to me would appear to be inconsistent (ie consistent step assumed despite reality)

    To reiterate my suggestion assumes that only 1,5,9,13,17,21 etc have time values in Col B.
    Last edited by DonkeyOte; 02-21-2011 at 04:12 AM. Reason: typo in narrative

  7. #7
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Forecast + Offset Formula Needed

    DonkeyOte,
    Thank you for helping me to see the error in my calculation. I updated the spreadsheet, so you could see how price and time are going to actually play out, also it better shows how the "X"'s should be calculated. I now understand why there are differences in the forecast. The "X's" in one is counting sequentially and the "X's" in the other is non-sequential.

    Your suggestion is correct in assuming that 1,5,9,13,17,21 etc are the only ones that have time values.

    2-4,6-8,10-12 etc are simply price points along the way to the final price point at 1,5,9,13,17,21, with the values for 1 not shown, I want to get the forecast values for those points but the disregard then after another final price point is revealed and keep that final price point (1,5,9,13,17,21) as price moves forward, only to have them fall off as a fifth one is reached.

    I hope my new spreadsheet better explains this. Thank you again for all of the help.
    Attached Files Attached Files

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Forecast + Offset Formula Needed

    Quote Originally Posted by artiststevens
    Your suggestion is correct in assuming that 1,5,9,13,17,21 etc are the only ones that have time values.
    In which case remove the other values as these directly affect the results of the formula I gave you.

    The results will be identical at that point.

  9. #9
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Forecast + Offset Formula Needed

    I not completely understanding, which values? Did you get a chance to review my updated spreadsheet?

  10. #10
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Forecast + Offset Formula Needed

    My understanding is/was that there would be no "hour" values in the non-yellow cells in Column B yet in your samples they continue to persist.

    You must remove them as they directly affect the formula I gave you - once removed the results of the Array match your "manual" calculations.

  11. #11
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Forecast + Offset Formula Needed

    Ah Ha! It worked! Thank you very much DonkeyOte you've truly been a great help! You're time and effort are much appreciated! This forum is a godsend! Just one more quick question.

    If I wanted to expand the forecast for example to say 6 or more price/time instances, instead of 5, how would I go about doing that?

  12. #12
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Forecast + Offset Formula Needed

    It all depends on where you would put the first formula.

    In the example given we have assumed first formula is located at point of first valid result (ie where you have at least 17 transactions)

    If we apply the same logic for 6 instances then first formula would be located in row 23 and you would adapt the precedent range to be B3:B23 etc as opposed to B7:B23 as would be the case for 5 instances.

  13. #13
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Forecast + Offset Formula Needed

    I was able to change the the number of instances with ease. Thank you again DoneyOte! I tried to rep you again but they site won't let me, but know I really appreciate it.
    Last edited by artiststevens; 02-21-2011 at 05:57 AM.

+ 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