+ Reply to Thread
Results 1 to 19 of 19

Match 2 columns and display options in the third column that matches the 2 columns

  1. #1
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Match 2 columns and display options in the third column that matches the 2 columns

    Can I have a help,

    I am making a tracker in excel and this drives me crazy. I have 3 list and need some codings in data validation, This is a sample but this is not the main tracker. Options is more than two always.

    LIST 1 LIST 2 LIST 3
    Red Male Jon
    Red Male Renmai
    Red Female Ghie
    Red Male Jeff
    Red Female Sarah
    Orange Male Madjo
    Orange Female Darl
    Orange Male Rex
    Orange Female Jenny
    Orange Male Jessie

    I have a tracker fields, the Team Color, Gender and Name. If I choose Red, the Gender column should list options which is under red, male and female, and if i chose male, the Name column should list options all the red and male matches which is Jon, Renmai and Jeff, If i choose female it will list Ghie and Sarah. This is a simplier but in actual there are many options so do not depend on this. I need the codes inside data validation using name range, i am using OFFSET, MATCH, INDEX, COUNTIF, but i cant do the third column. It needs the Column A and Column B should match.

    Help please. Thanks.
    Attached Files Attached Files
    Last edited by SBBmaster09; 04-23-2013 at 01:12 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    Refer the attached file for details
    Attached Files Attached Files


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    Thanks. but how about if Red and Orange has 3 or more options, here is a sample of the code ive been using in the 2nd column it works on my tracker. my problem is the 3rd column.. Ive tried your code but it didnt effect. what you think? Thanks for the help.
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    Please refer the named ranges I created in Post #2 file.

  5. #5
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    Yes I used it, but the third column didnt show anything. Please see the 2nd file its edited.. Ive used yours, and it didnt show any dropdown. Thanks.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    Press Ctrl+F3 in the file I have attached and have a look in the Named Ranges.

  7. #7
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    Ei I see the problem, what if I named the ranges in my own, there is difference in name there is space so I cannot name the range with space.. is there other option, I could not also remove the space on my data because it will be broken.. Thanks

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    You just name it by replacing the spaces with underscores. When redirecting the data to named range use substitute to convert the spaces to underscores so that it will get redirected to named ranges.

  9. #9
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    =LEFT(H4,3)&"_"&LEFT(I4,4)

    i used this but how can i substitute the space with "_"

    Example: AD_Task 1

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    SUBSTITUTE(text, old_text, new_text)

    Something like this...

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

  11. #11
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    i used =LEFT(H4,2)&"_"&(SUBSTITUTE(I4," ","_")) in naming the ranges and now in data validation for column 3 i used =INDIRECT(LEFT(H4,2)&"_"&(SUBSTITUTE(I4," ","_"))) but how come it doesnt display anything??

  12. #12
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    Please attach your workbook

  13. #13
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    This is my actual tracker thanks really for the help.
    Last edited by SBBmaster09; 04-23-2013 at 03:53 AM.

  14. #14
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    I got it sorry its ok nowThanks for the help.. Super Thanks.

  15. #15
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    Last problem to make =LEFT(H122,2)&"_"&(SUBSTITUTE(I122," ","_"))

    in my formula only space will be substituted, how can I substitute 2 old_
    text??

  16. #16
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    Glad you fixed it and thanks for the feedback

    Please have a look in the below link for more details:-
    http://www.contextures.com/xlDataVal01.html

  17. #17
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    Quote Originally Posted by SBBmaster09 View Post
    in my formula only space will be substituted, how can I substitute 2 old_
    text??
    Sorry I am unable to understand

  18. #18
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    Quote Originally Posted by :) Sixthsense :) View Post
    Glad you fixed it and thanks for the feedback

    Please have a look in the below link for more details:-
    http://www.contextures.com/xlDataVal01.html
    Thanks a lot for the help. It helps me more. Thanks.

  19. #19
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match 2 columns and display options in the third column that matches the 2 columns

    Glad it helps you and thanks for the feedback

+ 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