+ Reply to Thread
Results 1 to 4 of 4

Search for the first cell that contained a specific text

  1. #1
    Forum Contributor
    Join Date
    05-29-2012
    Location
    Walnut, Ca
    MS-Off Ver
    Excel 2010
    Posts
    182

    Search for the first cell that contained a specific text

    How can I write a formula that will look for the first row that contains matching data

    Example:

    The formula will be in X column.

    I enter "1234" in E234, I want the formula to look in Column F for the first row that has the same data. So if "1234" is written in F2, F11, F200, etc. I want it to reference (Row 2) F2 and then copy whats in C2 and enter it into X2.

    Does that make sense?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Search for the first cell that contained a specific text

    Write in X2:

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

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Search for the first cell that contained a specific text

    =index(c:c,small(if(x:x="1234",row(x:x)),row(a1)))
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Forum Contributor
    Join Date
    05-29-2012
    Location
    Walnut, Ca
    MS-Off Ver
    Excel 2010
    Posts
    182

    Re: Search for the first cell that contained a specific text

    Thank you everyone, Zbor, your formula did the trick.

+ 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. [SOLVED] To search specific text in a cell that contains text string
    By mikail in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-15-2013, 03:02 PM
  2. [SOLVED] Return specific text if a different text is contained anywhere in a range of cells
    By ciayers in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2013, 05:54 PM
  3. [SOLVED] Macro to search for value contained in a cell
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-17-2012, 09:47 AM
  4. [SOLVED] Macro to search rows for specific text within a cell then cut cell to specified location
    By jonathanpotts90 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-25-2012, 06:18 AM
  5. [SOLVED] How do I search for specific text and sum the cell to the right?
    By PacRat2001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2005, 12:05 AM

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