+ Reply to Thread
Results 1 to 7 of 7

Using formula on a cell with data validation

  1. #1
    Registered User
    Join Date
    04-28-2012
    Location
    Harrisburg, Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    17

    Using formula on a cell with data validation

    I have 3 columns. In column A there is the data. In column B and C I am using dependent data validation to categorize and subcategorize the data. It works well but my question is this. If I create lists on a different sheet that has all the data, with the appropriate category and subcategory set up for data that will be repetitive, what is the best way to do it so if a value on the list on the other sheet is found in column A then column B and C automatically change?

    Thank you in advance

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Using formula on a cell with data validation

    Confusing post.
    Let's say in A, you're putting foreign or domestic cars
    and in sheet 2, you a list for foreign cars makers and one for domestic car makers. You use these lists on your column B
    Then you have lists for models for each domestic and each foreign which are used in Col C

    So you input in A2, foreign. In B2, you get a dropdown list of foreign car makers and you choose Toyota. In col C, you get a dropdown list of Toyota models and you choose Camry. What do you want to happen if you change A2 to domestic? Do you simply want B and C to clear?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-28-2012
    Location
    Harrisburg, Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Using formula on a cell with data validation

    Yes I do have a list for my categories in Column B and I do have a list for my subcategories in C. But for instance let's say in column A I have "tundra". Well after I set a category of auto and a subcategory of truck then what I would like is every time afterward it would be nice if when tundra appears in column a. Column b and c autofill even though the cell contains a drop down. I am ok with doing it manually but my thought was a tundra is always going to have that category and subcategory. Hopefully that is a little clearer. Sorry for the confusion. Thank you.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Using formula on a cell with data validation

    Can you load (Go advanced> manage attachments) a dummy file showing how your lists are set up and how you want things to happen?

  5. #5
    Registered User
    Join Date
    04-28-2012
    Location
    Harrisburg, Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Using formula on a cell with data validation

    I am sorry for the delay. I hope I did the attachment correctly. Thanks again
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Using formula on a cell with data validation

    I entered this equation in B8. It can be dragged across and down as far as you like

    =IFERROR(VLOOKUP($A8,$A$1:$C7,COLUMN(B1),FALSE),"")
    Does that work for you?

  7. #7
    Registered User
    Join Date
    04-28-2012
    Location
    Harrisburg, Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Using formula on a cell with data validation

    Perfect! Thank you!

+ 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