+ Reply to Thread
Results 1 to 7 of 7

How to retrieve the data of a cell if it matches a phrase

Hybrid View

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    austin,tx
    MS-Off Ver
    Excel 2007
    Posts
    5

    How to retrieve the data of a cell if it matches a phrase

    Hi, I can't figure out how to make this work. I want the value of C3 to be L. How can I accomplish this?
    Attached Files Attached Files

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

    Re: How to retrieve the data of a cell if it matches a phrase

    Not clear, could you please add the expected output so that it will be easier to understand your requirement.


    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
    Registered User
    Join Date
    08-02-2012
    Location
    austin,tx
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How to retrieve the data of a cell if it matches a phrase

    Quote Originally Posted by :) Sixthsense :) View Post
    Not clear, could you please add the expected output so that it will be easier to understand your requirement.
    Let me know if this helps, thanks.
    Attached Files Attached Files

  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: How to retrieve the data of a cell if it matches a phrase

    actually it doesnt. how do you arrive at the values on column C? please walk us through the logic?
    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

  5. #5
    Registered User
    Join Date
    08-02-2012
    Location
    austin,tx
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How to retrieve the data of a cell if it matches a phrase

    Quote Originally Posted by FDibbins View Post
    actually it doesnt. how do you arrive at the values on column C? please walk us through the logic?
    What I want to accomplish is check to see if the value of B2 is the same as A2&"-"&C6 and if it is return the value at C2

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

    Re: How to retrieve the data of a cell if it matches a phrase

    Try this formula in C3 cell

    Formula: copy to clipboard
    =VLOOKUP(SUBSTITUTE(LEFT($B3,FIND("^",SUBSTITUTE($B3,"-","^",3))-1)," ",""),Sheet2!$A:$M,MATCH(IFERROR(--MID($B3,FIND("^",SUBSTITUTE($B3,"-","^",3))+1,255),$B3),Sheet2!$A$1:$M$1,0),0)


    But it is a half solution only because of your irregular data structure.

    Refer the attached excel to know for what reason the above formula is getting failed.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-02-2012
    Location
    austin,tx
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How to retrieve the data of a cell if it matches a phrase

    Quote Originally Posted by :) Sixthsense :) View Post
    Try this formula in C3 cell

    Formula: copy to clipboard
    =VLOOKUP(SUBSTITUTE(LEFT($B3,FIND("^",SUBSTITUTE($B3,"-","^",3))-1)," ",""),Sheet2!$A:$M,MATCH(IFERROR(--MID($B3,FIND("^",SUBSTITUTE($B3,"-","^",3))+1,255),$B3),Sheet2!$A$1:$M$1,0),0)


    But it is a half solution only because of your irregular data structure.

    Refer the attached excel to know for what reason the above formula is getting failed.
    That worked when I standardized the colors. Thank you. I am a excel newb, do you mind explaining the formula to me?

+ 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