+ Reply to Thread
Results 1 to 11 of 11

Search and Vlookup ( help plz )

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    Egypt
    MS-Off Ver
    Excel 2007
    Posts
    4

    Search and Vlookup ( help plz )

    hi there
    i've been searching for what i need for more than 6 hours now and i didnt find any solution

    HUGO what i need
    Column B contains Technician Report written manually
    i need to classify the report so that if certain text appears in the Cell it will give certain value

    for Example :
    B2 = I Called the customer and there was no reply
    B3 = Maintenance done for the customer
    B4 = Customer not available at home
    B5 = I called the customer but wrong mobile number

    X3 = No Reply , Y3 = CST NA
    X4 = Customer Not available at home , Y4 = CST NA
    X5 = Wrong Add , Y5 = Wrong Info
    X6 = Wrong Mobile , Y6 = Wrong Info
    X7 = Maintenence Done , y7 = Done

    i want C2 to search in B2 for any value found in X and when the value is found it gives me the corresponding value in Y
    so that
    C2 will be = CST NA
    C3 = Done
    C4 = CST NA
    C5 = Wrong Info



    need help plz and notice that the data is too much and every technician writes with his own way the report so i cant use >>> =IF(ISNUMBER(SEARCH(

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Search and Vlookup ( help plz )

    I would suggest that you use data validation in column B so that you have consistant entries. you would need to create a table with all possible replies, then you could use the vlookup return whatever data you need.

    if you have a sample workbook to upload, we can maybe help get you started?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-03-2012
    Location
    Egypt
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Search and Vlookup ( help plz )

    the problem in that the system used dont offer data validation in colomn B as per the colomn B is the Tech comment for what he had done

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Search and Vlookup ( help plz )

    yes i inderstand that, but you can create a list of (all?) possible comments, that would restrict them from entering just anything. for instance, what if, instead of...
    I Called the customer and there was no reply,,,,the tech entered
    I Called the customer and there was no answer
    I Called the customer and there was no response
    I Called the customer and there was no 1 home
    I Called the customer and there was no one at home

    these are all the same entry, but trying to do a search that would return a "true" in each case would be next to impossible. however, if the tech was only allowed to enter "I Called the customer and there was no reply" then a seach on that is fairly simple. see what im saying?

  5. #5
    Registered User
    Join Date
    08-03-2012
    Location
    Egypt
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Search and Vlookup ( help plz )

    yes i know what are you saying
    but this solution is far away now for applying
    so i am trying to find alternate way to get what i want until the validation is applied on the system

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Search and Vlookup ( help plz )

    how many rows of data do you have?

  7. #7
    Registered User
    Join Date
    08-03-2012
    Location
    Egypt
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Search and Vlookup ( help plz )

    about 10000 or more

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Search and Vlookup ( help plz )

    and for each "I Called the customer and there was no reply" type of reply there could be any mumber of variations for the same answer, right?

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Search and Vlookup ( help plz )

    Try this formula in C2, then copied down:

    =IFERROR(LOOKUP(2, 1/(ISNUMBER(SEARCH($X$3:$X$7, B2))), $Y$3:$Y$7), "")


    This will give you matches that DO exist. Then you can scan the data looking for variations and expand your X:Y table to include more variations till you get them all.

    Letting the techs enter anything is the problem, you'll have to deal with it in some manual way until such time you DO get data validated entries.
    Last edited by JBeaucaire; 08-04-2012 at 05:56 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Search and Vlookup ( help plz )

    Thanks JB, i had no idea how to give the answer he needed, and thanks for the back-up on getting the techs to enter consistant data

  11. #11
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Search and Vlookup ( help plz )

    Based on the caveat at then end of post #1, he was already trying some variations on this method. But in the end, their is seldom a magic answer to random text matching.

    One idea might be to reduce the text needed. For instance just the word "wrong" might be all that is needed for the 'Wrong info" result, no need to have "wrong phone" and "wrong address" when both are being converted to a less specific category "Wrong info" any.

    By reducing the text string (carefully) he might get better results just by being clever.

+ 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