+ Reply to Thread
Results 1 to 11 of 11

Confused Search or Match Lookup or index

  1. #1
    Registered User
    Join Date
    11-14-2003
    Location
    UK
    Posts
    17

    Confused Search or Match Lookup or index

    I am trying to search a column of random information for text from a list . A kind of check list if you like. Ideally to have a Column that flags up the match and show the cell number and change colour format to green..
    so the data in Column B must completely match that within the text in Column C
    i.e. *0601* matching with 601* would be incorrect yet *0601*yyy should be flagged as correct in Column A.
    Please see enclosed examples. I tried various methods with Match Search Lookup and index but have been unable to crack this and obtain desired results. Any suggestions would really appreciated
    Attached Files Attached Files
    Last edited by grouchmax; 01-28-2011 at 12:17 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Confused Search or Match Lookup or index

    In A3 copied down:

    =MATCH("*"&B3&"*",$C$3:$C$24,0)

    this will give you the row number within range C3:C24 where a match (if any) occurs.

    Is that what you need?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-14-2003
    Location
    UK
    Posts
    17

    Re: Confused Search or Match Lookup or index

    Quote Originally Posted by NBVC View Post
    In A3 copied down:

    =MATCH("*"&B3&"*",$C$3:$C$24,0)

    this will give you the row number within range C3:C24 where a match (if any) occurs.

    Is that what you need?
    Yes that is the idea and your solution works fine. I sussed that I need to add 2 to the line number , so as to have it line up correctly to the grid lines. I have one query though. The TEXT HV*PAX*PH in B9
    should have been picked up as a match in C9 but is not.Is there a teak needed to allow this to comply.
    But this is looking great . Thanks very much. Realy appreciate your assistance

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Confused Search or Match Lookup or index

    There is an extra space at the end of B9 entry, remove it and you get a match.

  5. #5
    Registered User
    Join Date
    11-14-2003
    Location
    UK
    Posts
    17

    Re: Confused Search or Match Lookup or index

    Thats Magic .Well spotted. That cured that issue, I have one other issue which came up when i was testing live data. I have shown it on the enclosed example, B10 & B11 show as matching with C18 but is only a partial match-missing the * , as in *7302* *7303*. Normally the items in Column B would not shown multiplee in a row. And hopefully one last question Is there a way to highlight in Green the matched items in column C. I could not see how I could do it with conditional formating.
    Once again many thanks
    CC
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Confused Search or Match Lookup or index

    try:

    =MATCH("*~"&B2&"*",$C$2:$C$23,0)+1

  7. #7
    Registered User
    Join Date
    11-14-2003
    Location
    UK
    Posts
    17

    Re: Confused Search or Match Lookup or index

    Thats great. It works fantastically well for my purpose. Many Thanks again for you prompt assistance. To see the theory behind these entries would you suggest any particular references? Also any helpful references I can read re the Conditional formatting for Column C . You have been a wonder
    Cheers
    CC

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Confused Search or Match Lookup or index

    Here is a good example of using the Match function and wildcards...

    As for references, check out our Excel General formula there are two sticky threads at top with many references...

    You can change the conditional formatting for red to: use a formula to determine which cells to format and apply formula: =ISNA(A2)

    then colour the font to match the background... this will make the #N/A disappear...

    Contextures is a good all around site for functions and features of Excel

  9. #9
    Registered User
    Join Date
    11-14-2003
    Location
    UK
    Posts
    17

    Re: Confused Search or Match Lookup or index

    Many thanks once again.

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Confused Search or Match Lookup or index

    I forgot the link for the Match with wildcards:

    http://www.databison.com/index.php/m...atch-function/

  11. #11
    Registered User
    Join Date
    11-14-2003
    Location
    UK
    Posts
    17

    Re: Confused Search or Match Lookup or index

    cheers
    cc

+ 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