+ Reply to Thread
Results 1 to 7 of 7

I need to find a specfic text in a range of cells and return specfic text

  1. #1
    Registered User
    Join Date
    03-15-2016
    Location
    Dallas
    MS-Off Ver
    2013
    Posts
    3

    I need to find a specfic text in a range of cells and return specfic text

    I need to find specific text in a range of cells and return the text two columns to the right of the cell that contains that text.
    If any of the cells A1:E6 contain an "a" I need to return the text in column h on the same line that the "a" is in.

    Capture.JPG

    Thanks in advance,
    Richard
    Last edited by ramjdmcmm; 03-15-2016 at 03:03 PM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I need to find a specfic text in a range of cells and return specfic text

    You edited your post so my suggestion no longer applies!
    Last edited by Tony Valko; 03-15-2016 at 03:06 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: I need to find a specfic text in a range of cells and return specfic text

    Assuming there's only going to be one cell with "a" in it

    =INDEX($H$2:$H$6,SUMPRODUCT(($A$2:$E$6="a")*(ROW($A$2:$A$6)-1)))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    03-15-2016
    Location
    Dallas
    MS-Off Ver
    2013
    Posts
    3

    Re: I need to find a specfic text in a range of cells and return specfic text

    I tried Vlookup. Didn't work.

  5. #5
    Registered User
    Join Date
    03-15-2016
    Location
    Dallas
    MS-Off Ver
    2013
    Posts
    3

    Re: I need to find a specfic text in a range of cells and return specfic text

    I failed to mention I need to do the same for the all the text a,b,c,d,e,f all so.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: I need to find a specfic text in a range of cells and return specfic text

    Just change ="a" to whatever you are looking for, OR reference a cell (i.e. $A$2:$E$6=A10) and just put what you are looking for in A10

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I need to find a specfic text in a range of cells and return specfic text

    Here's another one...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    H
    1
    V1
    V2
    V3
    V4
    V5
    2
    A
    Test1
    3
    B
    Test2
    4
    D
    Test3
    5
    E
    Test4
    6
    C
    Test5
    7
    8
    9
    10
    A
    Test1
    11
    B
    Test2
    12
    C
    Test5
    13
    D
    Test3
    14
    E
    Test4
    15
    -----
    -----
    -----
    -----
    -----
    -----
    -----
    -----


    This formula entered in B10 and copied down:

    =INDEX(H$2:H$6,MATCH(1,MMULT(--(A$2:E$6=A10),{1;1;1;1;1}),0))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. if text is in specific format then file other cells with specfic text
    By Louisa Venter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2016, 02:45 PM
  2. Replies: 2
    Last Post: 09-25-2013, 03:17 AM
  3. Trying to search a range and find a specfic item based on a condition.
    By Cornered99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2013, 05:10 PM
  4. if find blank in specfic ranges then blank the specfic range cells
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2012, 11:19 AM
  5. Highlight rows containing specfic text
    By djfatboyfats in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2008, 09:42 AM
  6. insert picture to a specfic range of cells
    By CORY in forum Excel General
    Replies: 8
    Last Post: 02-03-2006, 01:55 PM

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