+ Reply to Thread
Results 1 to 3 of 3

Look in range and copy cell that contains text

  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    541

    Look in range and copy cell that contains text

    I have been searching around and have found lots of help creating a formula that will search a range of cells for specific text. That is what I want but not so specific with the text. I have a range of cells (B1:E1), and one cell contains text the other three have 0's. The text is one of 7 possibilities so I would prefer to keep the formula simple and just copy what ever the text is in to F1.
    so we need to look in range B1:E1 and find the cell that has text and copy and paste that text into cell F1. This is a simple example. The range could be much larger but you get the idea. It should be a simple if then string but I can't make it work.

    This is what I wrote but I just get a blank return.
    Please Login or Register  to view this content.
    Last edited by chriswrcg; 08-01-2018 at 07:50 AM.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,944

    Re: Look in range and copy cell that contains text

    I think the below will work for you

    =LOOKUP("ZZZZZ",B1:E1)
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    541

    Re: Look in range and copy cell that contains text

    Thank you sir. As always I was over complicating the matter.

+ 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. Replies: 2
    Last Post: 03-16-2016, 01:38 PM
  2. Replies: 11
    Last Post: 05-23-2014, 06:41 AM
  3. [SOLVED] Find Text - Copy Range Below - Paste to Cell
    By keen2xl in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-02-2014, 05:39 AM
  4. Copy a Cell Range That is a Text in a Cell
    By JDling in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2014, 10:31 AM
  5. if match partial text from a cell to a range copy row
    By Shansy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2013, 02:35 AM
  6. Replies: 7
    Last Post: 07-04-2006, 03:20 AM
  7. Replies: 2
    Last Post: 12-18-2005, 02:20 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