+ Reply to Thread
Results 1 to 13 of 13

Dropdown list based on other cells vaue

  1. #1
    Registered User
    Join Date
    10-14-2010
    Location
    NL
    MS-Off Ver
    Excel 2010
    Posts
    13

    Dropdown list based on other cells vaue

    Hi All,

    I have a problem which I can't get solved.
    Column C and D are should be picked from a dropdown list (data is in named range on sheet 3).
    The choices that have t become available in a dropdown list in column E (values also in named rnage on sheet 3) should be based on the combination of column C and D.
    The choices that have t become available in a dropdown list in column H (values also in named rnage on sheet 3) should be based on the value of column C.

    I'm not sure the way it is set up now (as far as it is setup) is the way to go.
    Here is a link to the file, I hope this is clear :S
    https://www.dropbox.com/s/1cg78f31zm...opzetje_1.xlsx

    Hope someone can help me.

    Kind regards.

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Dropdown list based on other cells vaue

    Can you upload the file here..?
    ________________________________________________________
    If your problem is solved, update the thread as SOLVED: Go to the top of the first post-Select Thread Tools-Select Mark thread as Solved OR - Go to the first post - Click edit- Click Advance- Just below the word "Title:" you will see a dropdown with the word No prefix.- Change to Solve- Click Save.

    Show your gratitude to the person who helped you solving your problem by clicking on star button at the bottom of such post.

  3. #3
    Registered User
    Join Date
    10-14-2010
    Location
    NL
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Dropdown list based on other cells vaue

    Noticed the link was wrong.
    here is a new link: https://dl.dropboxusercontent.com/u/...opzetje_1.xlsx
    Also posted it on here.
    opzetje_1.xlsx

  4. #4
    Registered User
    Join Date
    09-26-2013
    Location
    Spain
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Dropdown list based on other cells vaue

    try the technique shown in the second part of the video (starts at 4:40):

    http://www.youtube.com/watch?v=ff0f_AO3kEA

  5. #5
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Dropdown list based on other cells vaue

    Name all the ranges just like the way you did for some...try the attachment to get the dropdowns.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-14-2010
    Location
    NL
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Dropdown list based on other cells vaue

    Thank you haripopuri.

    Except for the fact that there's still the same amount of named ranges, it does seem to work:
    the choices in E are the ones corresponding to the choice made in column C.
    How did you acomplish that?

    I also figured out that I misscommunicated something:
    The value in column E should be figured out with regard to the choice in column D.
    (column E should not be filled in manually, but the value shoul be picked automatically corresponding to the chosen choice in column D).

  7. #7
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Dropdown list based on other cells vaue

    I see, look at this attachment.

    I used named ranges in drop downs through Indirect Function. Further info at: http://excelinyouroffice.blogspot.co...sts-using.html
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-14-2010
    Location
    NL
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Dropdown list based on other cells vaue

    Ok, I've gotten quite far along but I'm running into one last problem:
    the values in column C can have a space (or several spaces). If that is the case, the drop down for column H wil only work on the values without spaces in the name.
    I've named the ranges the same as the actual corresponding value but without the spaces but now, working on the INDIRECT forumla, i am stuck. I red something about including SUBSTITUTE in the INDIRECT formula, but I must be doing something wrong because I can't get it to work... :S

  9. #9
    Registered User
    Join Date
    10-14-2010
    Location
    NL
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Dropdown list based on other cells vaue

    I've solved it in a dirty way: the substitute formula is in a hidden row, the data validation then uses that row instead of the original one.
    It works but I'd love to know if there is a way of accomplishing the same thing directly.

    Just got word that there should also be something about travel allowance... not sure how to build that in yet but I'll keep you posted (i'm afraid)

  10. #10
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Dropdown list based on other cells vaue

    You can use the substitute formula in the data validation formula itself. Below formula goes in to toeslag validation.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    10-14-2010
    Location
    NL
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Dropdown list based on other cells vaue

    I had the & at the wrong place, stupid me! sorry!!!
    Now I can dive into the travel allowance thing :S (expect another post regarding that)

  12. #12
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Dropdown list based on other cells vaue

    Sure, meanwhile, if this problem is resolved, can you update the thread as solved. And you may wish to add a point to my rep.

  13. #13
    Registered User
    Join Date
    10-14-2010
    Location
    NL
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Dropdown list based on other cells vaue

    Ok, so I got that figured out. The final formula for the TOTAl cost looks like this:
    =IFERROR(SUM(H24*(VLOOKUP(C24,Sheet3!$A$2:$J$20,10,FALSE)))+SUM(F24*G24)+(((F24*G24)/100)*J24)," ")

    But I noticed that there still is one small problem with column C. The SUBSTITUTE formula does get rid of the spaces so it matches the named range name, but some instances have other special characters in there (like a slash or an apostrophe) and I'm not sure on how to " filer out" various special characters...Only way I could think of is nesting various SUBSTITUTE formulas.

    this works: =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(C23," ",""),"/",""),"'","")
    Last edited by little_ghost; 06-27-2014 at 10:20 AM.

+ 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] Hide a range based on the vaue in a cell
    By JmundleBofA in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-17-2014, 10:50 PM
  2. 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
  3. Need a Dropdown list that can edit cells on another sheet based on sheet name
    By draegen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-10-2012, 02:46 PM
  4. [SOLVED] VBA to hide cells based on dropdown list using If/Else/Then
    By JOHNROK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2012, 06:13 PM
  5. Replies: 1
    Last Post: 06-21-2011, 11:46 AM

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