+ Reply to Thread
Results 1 to 3 of 3

Vlookup a cell if it contains a certain text (within a column of text)

  1. #1
    Registered User
    Join Date
    01-02-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    63

    Vlookup a cell if it contains a certain text (within a column of text)

    Hi there,

    I'd the the cell in Column A highlighted if it contains any of the cells in Column Z:

    COLUMN A
    A1 [email protected]
    A2 <<[email protected]
    A3 <[email protected]
    A4 <Mailto: Sarah <[email protected]
    A5 { <[email protected]
    A6 <[email protected]
    A7 [email protected]
    A8 [[email protected]
    A9 <[email protected]
    A10 [/[email protected]
    A11 _|[email protected]
    A12 mailto:[email protected]


    COLUMN Z
    accounts@
    admin@
    booking@
    careers@
    enquiries@
    enrol@
    feedback@
    info@
    join@
    media@
    membership@
    office@
    order@
    question@
    reception@
    request@
    reserve@


    ie. A1 would receive a highlighted formatting given it contains 'admin@', and although A4 contains other text and symbols, it too would receive a highlighted format because it contains 'enquiries@' in the cell.

    I know how to do a vlookup but on partial text, i get a little confused

    Any help would be greatly appreciated
    Last edited by Rob8489; 05-13-2013 at 05:23 AM. Reason: removal of hyperlinks

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Vlookup a cell if it contains a certain text (within a column of text)

    hi Rob8489, do upload a sample Excel file next time so that we dont have to re-create your data. select the range you want to apply to (i.e. from A1:A12)
    in Excel 2007 & above, go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    in Excel 2003, go to Format -> Conditional Formatting -> Formula is:
    =ISNUMBER(LOOKUP(2^15,SEARCH($Z$1:$Z$17,A1)))

    format colour

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-02-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Vlookup a cell if it contains a certain text (within a column of text)

    i'll remember to upload a sample file for next time

    thanks for your help benishiryo !

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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