+ Reply to Thread
Results 1 to 12 of 12

Using Data Validation to populate from previous selection

  1. #1
    Registered User
    Join Date
    06-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    11

    Question Using Data Validation to populate from previous selection

    Hi,
    I'm making a small spreadsheet in excel for calculating cutting speeds and RPM for cnc mill and let's say there are 4 variables and each is a sub group of previous as in:
    Country
    State
    County
    City
    Now, I could type the parameters in manually according to a table with all the data that I need, but I'd like to make a "roll-down" list where I'd select parameter 1 and then according to this selection, list of variables in parameter 2 would change and so on.

    Is it possible in excel? What is the function that I'm looking for - what is it called.

    Thank you for your help.

    Best Regards
    Bart

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: How is thes function called - what am I looking for :)

    Hello Bart & Welcome to the Forum,

    Maybe I am reading your requirements wrong, but seems like this might fit...

    If not, then a mock up sample sheet would help.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    06-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: How is thes function called - what am I looking for :)

    Thank you very much for your QUICK answer.
    I tried it with a simple table and it looks like it fits exactly to what I had in mind and it works with numbers and formulas.
    I will play some more with it and if I have some more questions I'll post them here.
    The following table is what I want to turn into "Data Validated" cells

    image8.jpg
    File taken from http://www.sandvik.coromant.com/en-g...s/default.aspx
    and I believe it is their property.

    Best Regards and again, Thank You
    Bart

  4. #4
    Registered User
    Join Date
    06-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Using Data Validation to populate from previous selection

    I'm having a problem with data validation of merged cells.
    When i select vertically merged cell (lets say a merge of 10 cells) then I have a selection of 1 filled line and 9 empty lines - as in cell K2 of the spreadsheet. can it be fixed?
    Also im not sure whats the fastest way do get results with such a tables? Could you give me a hint, please. How would you do it? Im thinking of nesting Index function within Index a couple of times and also using MATCH but im not sure if it will work.

    Best Regards
    Bart
    Attached Files Attached Files

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using Data Validation to populate from previous selection

    do not merge cells!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    06-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Using Data Validation to populate from previous selection

    It's not the hint I hoped for but thank you. I'll try it today.

    Best regards
    Bart

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Using Data Validation to populate from previous selection

    To give you an idea of what you will require for your data validation, I have unmerged the cells and colour coded the basic materials of steel and aluminium and have shown possible Data Validation tables. This is only a start and not filled out because of missing data in the original table. Each of the sub tables produced will be assigned names to be used in the Data Validation.

    I hope this is of use to get you going.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Registered User
    Join Date
    06-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Using Data Validation to populate from previous selection

    newdoverman
    thank you for your help
    inspired by your post and some materials on the web, I;ve finished it - almost
    I have one last glitch and i don't know why does it happen.
    In cell G53 I've put the =MATCH function to look up a "position number" that i use in INDEKS function (cell G48 and G49) to get a proper region from KC_i_mc list.
    Everything is working fine until position 13. (that is untill i select "St_32 HSS" in "Sub group"), anything farther down the list will result in region number=24.
    What could be the reson?

    Ok there are more problems. When I select
    Material - Steel
    Group - St_3
    Sub Group - St_31

    then for production process #1 and #2 everything's working fine but for #3 and #4 it doesn't work. It's all from one list and one function. What could be wrong?
    When i change the value of production process to number 213 - it works properly and for value "abc" it doesn't. Why does excel go crazy with that?


    Best Regards
    Bart
    Attached Files Attached Files
    Last edited by Bartos; 07-04-2013 at 06:55 PM.

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using Data Validation to populate from previous selection

    match requires a last argument of 0 for exact match
    =MATCH(G47,D45:D69,0)

    http://office.microsoft.com/en-gb/ex...010062414.aspx

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Using Data Validation to populate from previous selection

    Martinwilson is right. If you insert a 0 for the last argument in the MATCH part of all the formulas in G49 to G53 wherever they are, your worksheet seems to work correctly.

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


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


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


    You have made a lot of progress.

    Good luck

  11. #11
    Registered User
    Join Date
    06-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Using Data Validation to populate from previous selection

    Thank you both for help, again

    Best Regards
    Bart

  12. #12
    Registered User
    Join Date
    04-07-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Using Data Validation to populate from previous selection

    hi,

    U can use data validation in source use this functions indirect and counta formulas

+ 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