+ Reply to Thread
Results 1 to 8 of 8

Finding a cell which contains a word, and returning the cell's complete value

  1. #1
    Forum Contributor
    Join Date
    03-16-2007
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2007
    Posts
    202

    Finding a cell which contains a word, and returning the cell's complete value

    Hi guys,

    I have values in the area A1:Y25.
    In column Z, I have certain words:
    BLUE
    RED
    WHITE
    ...

    In AA1, I need a formula which will find a cell from A1:Y25 which contains the word BLUE, and return the whole value of that cell, for example "THE BEAUTIFUL BLUE DANUBE".

    Any ideas? Thanks!

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Finding a cell which contains a word, and returning the cell's complete value

    ----------
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Forum Contributor
    Join Date
    03-16-2007
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: Finding a cell which contains a word, and returning the cell's complete value

    Jacc, I guess you wanted to post something but the post is empty?

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Finding a cell which contains a word, and returning the cell's complete value

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It is an array formula so you have to enter it with Ctrl + Shift + Enter
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-16-2007
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: Finding a cell which contains a word, and returning the cell's complete value

    Thanks, in your file it works perfectly but in mine it doesn't
    Is there something wrong here? Does it have to start in A1?
    (I do enter it with Ctrl + Shift + Enter.)

    =INDEX(IY7:JA9;MAX(IF(ISNUMBER(SEARCH(JX8;IY7:JA9));ROW(IY7:JA9)));MAX(IF(ISNUMBER(SEARCH(JX8;IY7:JA9));COLUMN(IY7:JA9))))

  6. #6
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Finding a cell which contains a word, and returning the cell's complete value

    There was indeed a bug. The previous version only worked when the range started in A1. This will work anywhere:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    03-16-2007
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2007
    Posts
    202

    Re: Finding a cell which contains a word, and returning the cell's complete value

    Hm this didn't work either :/

    But I solved it this way (because the range is always fixed, but it doesn't start in A1):
    =INDEX(IY7:JW31;MAX(IF(ISNUMBER(SEARCH(JX8;IY7:JW31));ROW(IY7:JW31)))-6;MAX(IF(ISNUMBER(SEARCH(JX8;IY7:JW31));COLUMN(IY7:JW31)))-258)

    Thanks anyway!

  8. #8
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Finding a cell which contains a word, and returning the cell's complete value

    Glad to hear it works, sort of.

    I missed this post but when you say it does not work I have to test. Maybe someone else tries to get something out of this thread in the future. It certainly works in this workbook, the datarange can be moved around as (not) needed.

    By they way, don't forget to mark the thread SOLVED if you are satisfied with the results.
    Attached Files Attached Files

+ 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. Finding Certain Cell Value and Returning the Cell Address
    By meacoldinch in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-15-2014, 01:55 PM
  2. [SOLVED] Finding if there is a number within a cell and then returning it
    By Dan27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2014, 08:38 AM
  3. Macro to change colour of cell based on finding a specific word in the cell
    By Shelby761 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2014, 09:46 AM
  4. Finding Certain Cell Value and Returning the Cell Address
    By meacoldinch in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 02-09-2013, 02:06 AM
  5. How do I add periods to complete a word in a cell?
    By Renee R. in forum Excel General
    Replies: 5
    Last Post: 09-02-2005, 04:05 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