+ Reply to Thread
Results 1 to 9 of 9

Dynamic Offset Formula to populate a Data Validation list

  1. #1
    Forum Contributor
    Join Date
    10-22-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    162

    Dynamic Offset Formula to populate a Data Validation list

    Hi All,

    I'm trying to use an OFFSET formula to populate a data validation list so that when a team manager name is selected in another cell (A1, also a named range of ipMgr) it lists the team members relevant to that manager.

    I have got the following 'static' formula to work correctly:

    Please Login or Register  to view this content.
    I'm trying to amend the formula to replace the $B$8 with another dynamic formula that provides the relevant cell reference based on the manager selected in cell A1/ipMgr. The formula I have for this part is:

    Please Login or Register  to view this content.
    "TeamMgrs" is a range in the Team Structure sheet that lists the managers, with their team members directly underneath.

    However, I'm having some trouble merging the two as the second formula just returns the cell reference and I need to combine this with the sheet name 'Team Structure'! I'm sure I'm doing something stupid here, but I've tried CONCATENATE and INDIRECT, but can't find anyway to get it to work as it does in the first formula.
    Indirect example below, will only return the first team member from the list, not the full list, which I guess it due to INDIRECT returning the value rather than the address.
    Please Login or Register  to view this content.
    I can't get CONCATENATE to work at all!

    Any pointers on where I'm going wrong with this?

    Thanks, TC
    Last edited by TC1980; 05-09-2017 at 07:56 AM. Reason: typo

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Dynamic Offset Formula to populate a Data Validation list

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Contributor
    Join Date
    10-22-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    162

    Re: Dynamic Offset Formula to populate a Data Validation list

    I can't upload anything as I'm at work and there are restrictions in place.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Dynamic Offset Formula to populate a Data Validation list

    If "Team Mangers" head a list of team members, you could make each list a Named Range (using Manager) and then use =INDIRECT(named_Range)

    Manager ="Tom Jones", Named range "Tom_Jones". (note the underscore "-")

    If "Tom Jones" is name in first list ( in A2) , then for second list use DV ..List, Source =INDIRECT(Substitute(A2," ","_"))

    This replaces the blank with underscore

  5. #5
    Forum Contributor
    Join Date
    10-22-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    162

    Re: Dynamic Offset Formula to populate a Data Validation list

    I have used this type of solution before, but never thought of combining it with Substitute to not affect the display name - nice and neat.

    I cannot use this solution in this example though as the Team Managers list is unlocked to allow the users to amend when needed and 'self manage'. Therefore the manager names will change over time and they wouldn't know to create amend the named range or are likely to mess it up.

    I've not done a lot with data validation formulas in Excel before, typically use more VBA - and at this moment I'm thinking I may need to resort to VBA to populate the data validation list on a worksheet change event! Thought this would be a simpler solution but apparently not for me!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Dynamic Offset Formula to populate a Data Validation list

    Try and post a small sample file (from home?). These DV lists can usually be done with formulae.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dynamic Offset Formula to populate a Data Validation list

    Have you called in at Debra's Contextures site here.. where you'll learn everything you need to know on this topic - and more.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  8. #8
    Forum Contributor
    Join Date
    10-22-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    162

    Re: Dynamic Offset Formula to populate a Data Validation list

    I finally worked it out - I needed to use INDIRECT and CONCATENATE!

    Please Login or Register  to view this content.
    This provides a drop down list specific to the manager selected from a range on another sheet - ignoring blank cells. Got there in the end!

    Thanks for the input though John and Richard. Much appreciated.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Dynamic Offset Formula to populate a Data Validation list

    Well done!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Dynamic/Offset Data Validation
    By jwillis07 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2014, 09:02 AM
  2. [SOLVED] Help using OFFSET, MATCH and COUNTIFS in Data Validation List
    By BeachRock in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-06-2013, 03:38 PM
  3. Replies: 1
    Last Post: 11-05-2013, 12:40 AM
  4. [SOLVED] OFFSET formula for a Dynamic list
    By JO505 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-10-2013, 05:11 PM
  5. Combining autotext, multiple value validation and dynamic data offset?
    By Chatis in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-21-2009, 09:38 PM
  6. Data Validation List - Offset?
    By Dylan&Hayden in forum Excel General
    Replies: 4
    Last Post: 04-29-2008, 01:22 AM
  7. [SOLVED] Dynamic Range, Data Validation and Address, Match and Offset Funct
    By rudawg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2006, 11:25 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