+ Reply to Thread
Results 1 to 3 of 3

Search a String and copy specific cell into another cell

  1. #1
    Registered User
    Join Date
    05-29-2019
    Location
    London
    MS-Off Ver
    O365
    Posts
    2

    Search a String and copy specific cell into another cell

    Hello,

    i will fill out the column I with names. Then i enter the names in the left table. Each name can only be written three times in the right table.
    I want a loop that find for example the name Max and copy the first date in J2 the second date in L2 and the third date in N2 and the same for the time.

    Thank you for your help
    Attached Images Attached Images

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Search a String and copy specific cell into another cell

    An image attachment has limited value. Just attach the Excel file. It's easier than taking a screenshot first and then attaching that. This will allow us to test a solution with your data. Few people will want to create a file from scratch and type in data from your screenshot.

    The paper clip icon does not work for attachments. To attach a file, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-04-2019
    Location
    U.S.
    MS-Off Ver
    2016
    Posts
    48

    Re: Search a String and copy specific cell into another cell

    Mr. Sampaio,

    Good afternoon!! While you can do this with a VBA code, this can also be done using the vlookup formula directly into the cell you want. For instance:

    In cell J2 you would put in a formula like this:

    =VLOOKUP(I2, A2:F6, 1, False)

    This will look for the value in the cell I2 (name) from the range A2 to F6 (one day) and return the value of the first column (date) and will look up the exact name.
    This formula would need tweaked a bit for certain cells, but after the formula has been put in, the sheet would automatically search each time information was entered when you calculate the sheet. I hope that made sense. Mr. 6StringJazzer is much better at this stuff than I am, just thought this might be an option for you.

    Dome

+ 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: 16
    Last Post: 08-09-2017, 12:50 PM
  2. Replies: 6
    Last Post: 06-05-2015, 09:28 AM
  3. Script to Search for a specific String then return cell values above that String-4
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2015, 01:28 AM
  4. [SOLVED] Script to Search for a specific String then return cell values above that String-3
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2015, 01:50 PM
  5. [SOLVED] Script to Search for a specific String then return cell values above that String-2
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2015, 01:00 PM
  6. [SOLVED] Script to Search for a specific String then return cell values above that String
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2015, 11:28 AM
  7. Replies: 15
    Last Post: 03-27-2012, 08:48 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