+ Reply to Thread
Results 1 to 5 of 5

Dynamic Update of Trend Function Based on Dropdown List

  1. #1
    Registered User
    Join Date
    08-09-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Dynamic Update of Trend Function Based on Dropdown List

    Hello. I am trying to figure out how to do the following in the attached spreadsheet...

    As you can see in Cell B2:B11, I am calculating new X values for each of the sets of data in Sheet 2 (Data1, Data2, etc...)

    In cell C4, I have a dropdown list that would allow me to choose a data set (column reference). What I am trying to do is make the trend formula dynamic so that when I select the data set in the dropdown and enter an X value into cell A4 I would get the calculated Y value in cell B3.

    Please let me know if this makes sense.


    Thanks in advance!
    Matt
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Dynamic Update of Trend Function Based on Dropdown List

    here is your formula.
    Please Login or Register  to view this content.
    I am using named ranges (DataX and DataY) that are dynamic.
    This is the formula used for the DataX named range:
    Please Login or Register  to view this content.
    Here is the formula for DataY:
    Please Login or Register  to view this content.
    The trick is in those 2 formulas. They extract the number in the dropdown box in C4 and offset the selected range accordingly.
    Below is your workbook modified with the new formula and the 2 named ranges.
    Attached Files Attached Files
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    08-09-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Dynamic Update of Trend Function Based on Dropdown List

    Thanks for the quick reply, Pierre!

    Can you point me to where I can find the formula for the dynamic named ranges? I'm not sure exactly how you did this.


    Thanks,
    Matt

  4. #4
    Registered User
    Join Date
    08-09-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Dynamic Update of Trend Function Based on Dropdown List

    Pierre,

    I found the named range formulas. The problem I see with this approach is that it looks like it will only work if I maintain the same naming convention for the columns (Data1, Data2, Data3, etc...) What if the column header became a part number from a supplier that is any number of random characters?

    Thanks,
    Matt

  5. #5
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Dynamic Update of Trend Function Based on Dropdown List

    try this formula for DataX
    Please Login or Register  to view this content.
    Then modify DataY the same way with the match function.
    Here is how it works. The match function returns the position of cell C4 value within the data validation range. This number is used to offset the named range in Sheet2.

+ 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. Creating a dynamic dropdown list of a selection of a master list
    By RooMar in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 05-15-2015, 05:27 AM
  2. Replies: 9
    Last Post: 02-26-2014, 04:17 PM
  3. Urgent: Create a Dynamic Dropdown list based on a specific criteria
    By vijaye in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2013, 08:07 AM
  4. Cull dropdown list options based on selection in another dropdown
    By Kiffar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2012, 01:53 AM
  5. Update a cell based on selection in dropdown list.
    By ladykickbox in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-26-2012, 07:45 AM
  6. Update dropdown list based on previous selections
    By darthlawb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2012, 10:51 AM
  7. Dynamic dropdown list selection based on combo box
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-10-2012, 10:55 AM

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