+ Reply to Thread
Results 1 to 7 of 7

Return contents of a cell that contains a specific text within a range.

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    denver
    MS-Off Ver
    Excel 2003
    Posts
    17

    Return contents of a cell that contains a specific text within a range.

    Return contents of a cell that contains a specific text within a range.

    For Example,
    ------ A------ B------ C------
    1 -----22HP-- DD --- T3------

    Within the range from A1-C1, the formula finds the text "HP" in A1 and returns 22HP.

    Thank you,
    Attached Files Attached Files
    Last edited by nhi; 02-01-2013 at 12:53 PM. Reason: Solved

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Return contents of a cell that contains a specific text within a range.

    maybe

    Please Login or Register  to view this content.
    entered with Control+Shift+Enter
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  3. #3
    Registered User
    Join Date
    02-01-2013
    Location
    denver
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Return contents of a cell that contains a specific text within a range.

    That methods works, however, when i try to continue the function with additional rows and data I recieve all blanks (If HP is in column C, it will not return the value). Also, is there a way I can just automatically extend the function without using ctrl-shift-enter everytime?
    Last edited by nhi; 02-01-2013 at 12:08 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Return contents of a cell that contains a specific text within a range.

    if you upload a small sample it would be much more straight forward to work on

  5. #5
    Registered User
    Join Date
    02-01-2013
    Location
    denver
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Return contents of a cell that contains a specific text within a range.

    Attached. Thanks

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Return contents of a cell that contains a specific text within a range.

    ok here you go switched to a different kinda search



    Sample File.xlsx

  7. #7
    Registered User
    Join Date
    02-01-2013
    Location
    denver
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Return contents of a cell that contains a specific text within a range.

    Quote Originally Posted by twiggywales View Post
    ok here you go switched to a different kinda search



    Attachment 211401
    Hello again,

    Can you explain the logic behind this equation? Just trying to wrap my head around this.


    =IFERROR(INDEX(A4:C4,,MATCH(TRUE,INDEX(ISNUMBER(SEARCH("HP",A4:C4)),,),0)),"")

    1. Search for HP in this the array of A4:C4
    2. If one of those values is a number then state True (part that confuses me because when i break out the formula it is always false)
    3. Match anything that is true
    4. Index: cell location

    Thank you very much.

+ 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