+ Reply to Thread
Results 1 to 8 of 8

Create a dynamic named range or formula to change the range in the forecast formula

  1. #1
    Registered User
    Join Date
    02-17-2022
    Location
    South Australia
    MS-Off Ver
    365
    Posts
    5

    Create a dynamic named range or formula to change the range in the forecast formula

    Hi Guys, just wondering if any of you excel gurus can help?

    I have a worksheet that forecasts spend, as can be seen in the screenshot:
    Column D populates Months from another worksheet "=EDATE(B6, SEQUENCE(D3,1,0))"

    Column E populates Spend from another worksheet "=IF(D9="","",SUMIFS(TRACK_InvValue,TRACK_InvDate,">="&D9,TRACK_InvDate,"<="&EOMONTH(D9,0)))"

    Column G generates a forecast for months that don't yet have an actual value "=FORECAST.ETS.CONFINT(D26,$E$9:E25,$D$9:D25,Lists!$V$3,1,1)"
    If there is a value in the spend column, the the formula shouldn't calculate a forecast figure.
    If there is a $0 in the spend column, the formula should calculate a forecast from the spend figures available.

    What I want to do is create a dynamic named range or have a dynamic formula that will change the range in the forecast formula that will automatically update as new actual figures appear in the spend Column E

    I do hope this makes sense? As it stands the forecasting does work, however the user must manually adjust the forecast.ets.confint range every time a new spend figure appears in the spend column. Users of this template will have little experience with excel formulas so I don't want them trying to extend ranges and messing up their figures (the more automation and less user input the better).

    Thanks Guys

    Shot1.png
    Last edited by AliGW; 02-17-2022 at 05:36 AM. Reason: Title changed - please think more carefully about your thread titles in future!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,371

    Re: Create a dynamic named range or formula

    Untested, but try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,371

    Re: Create a dynamic named range or formula

    Maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Create a dynamic named range or formula tot change the range in the forecast formula

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As yo uare new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,371

    Re: Create a dynamic named range or formula to change the range in the forecast formula

    Again, untested

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-17-2022
    Location
    South Australia
    MS-Off Ver
    365
    Posts
    5

    Re: Create a dynamic named range or formula to change the range in the forecast formula

    Thanks for you input everyone, I will give these a try and let you know how it goes
    C

  7. #7
    Registered User
    Join Date
    02-17-2022
    Location
    South Australia
    MS-Off Ver
    365
    Posts
    5

    Re: Create a dynamic named range or formula to change the range in the forecast formula

    Thanks everyone for all your help, the formula that did what I was looking for was =FORECAST.ETS.CONFINT(INDEX(D2:D30, COUNT(FILTER(E9:E30, E9:E30<>0))+1), FILTER(E9:E30, E9:E30<>0), FILTER(D9:D30, E9:E30<>0),Lists!$V$3,1,1) posted by TMS, thank you so much.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,371

    Re: Create a dynamic named range or formula to change the range in the forecast formula

    You're welcome. Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula to get dynamic named range comparison
    By Paulant in forum Excel General
    Replies: 13
    Last Post: 02-13-2019, 03:43 AM
  2. Replies: 1
    Last Post: 06-30-2016, 11:54 AM
  3. Replies: 0
    Last Post: 03-08-2016, 02:25 PM
  4. Create new column with named dynamic range in VBA
    By BianchiBoy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2014, 06:31 AM
  5. [SOLVED] VBA Create Dynamic Named Range
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-27-2013, 09:18 AM
  6. Macro to create a Dynamic named range.
    By Hilton1982 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2013, 09:42 AM
  7. Create a dynamic range on named cell?
    By garyi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-03-2011, 04:06 PM

Tags for this Thread

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