+ Reply to Thread
Results 1 to 13 of 13

Data Validation - dependant lists - With a number value

  1. #1
    Registered User
    Join Date
    06-06-2008
    Posts
    89

    Data Validation - dependant lists - With a number value

    Hi folks,

    I am familiar with creating named ranges, drop down lists and dependant drop down lists, but what differs in this example is that I want a choice of 4 different lists depending on a specific number being entered rather than a word.

    It isn't working because I am unable to name a range of cells with a number - it has to be a word, therefore unless use some sort of lookup then I can't get this working.

    I guess the question is therefore: can you cause the dependant list to choose the correct data if entering a value that isn't the same as the named range?

    Any advice greatly appreciated.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Data Validation - dependant lists - With a number value

    Hi philwilleams80,

    Please include a sample workbook to support your query. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    06-06-2008
    Posts
    89

    Re: Data Validation - dependant lists - With a number value

    Quote Originally Posted by dilipandey View Post
    Hi philwilleams80,

    Please include a sample workbook to support your query. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    Hi DILIPandey

    My work server is not letting me access the site at present and I can't attach the file from my phone. I can however email the document to you if you let me have your address.

    Best wishes
    Phil

  4. #4
    Registered User
    Join Date
    06-06-2008
    Posts
    89

    Re: Data Validation - dependant lists - With a number value

    Just seen you've provided it!! Apologies. Will email now

    Phil

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Data Validation - dependant lists - With a number value

    Hi Phil,

    I can wait for your server to let you access this site, please upload your file here only Thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Data Validation - dependant lists - With a number value

    Phil,

    For the benefit of other users, kindly upload the file here when possible. Its against the forum rules to email the files to users.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  7. #7
    Registered User
    Join Date
    06-06-2008
    Posts
    89

    Re: Data Validation - dependant lists - With a number value

    Ok it will have to be when I get home from work tonight - it's probably that out IT dept have blocked forum access.
    Will update thread later.

    Thanks anyway

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Data Validation - dependant lists - With a number value

    Pl see the attached file with Example you can select number and choose list using VLOOKUP.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-06-2008
    Posts
    89

    Re: Data Validation - dependant lists - With a number value

    Thanks for this. I have actually used a lookup (well an IF formula) as a work around, but this requires a formula in an adjacent cell.
    Because the worksheet will nearly always have to have rows inserted, this creates the problem of the formula not copying down into the inserted rows.

    I could protect the sheet against row insertion and use a button with VBA behind which inserted them and copied the formula down, or but ideally I would want a neater solution.

    Thanks

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Data Validation - dependant lists - With a number value

    pl upload the file with dummy data.

  11. #11
    Registered User
    Join Date
    06-06-2008
    Posts
    89

    Re: Data Validation - dependant lists - With a number value

    Apologies for the delay - the file is now attached.

    I have the 4 entries in the correct cells that require the individual lists. I also have the workaround with the IF formula in place, but obviously this isn't ideal for when rows need to be inserted.

    I appreciate you taking the time to have a look.

    Thanks
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Data Validation - dependant lists - With a number value

    Pl see the attached file with validation in O Column.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    06-06-2008
    Posts
    89

    Re: Data Validation - dependant lists - With a number value

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see the attached file with validation in O Column.
    kvsrinivasamurthy,
    Many thanks for taking the time to review and resolve this for me.

    As you can see, I have copied the indirect formula within the data validation source that you inserted in column O into column k where it is required, and the drop down list is now correct for each selection, and most importantly, when additional rows are inserted, the validation copies down into the new rows.

    I couldn't be more grateful.

    Thanks,
    Phil
    Attached Files Attached Files

+ 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