+ Reply to Thread
Results 1 to 13 of 13

Find copy and paste

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    New York
    MS-Off Ver
    2007
    Posts
    33

    Find copy and paste

    Hello,

    I wondered if you could help. I'd like to search for @anyword-anylength, in column A all the way down until there is no more information, and if @anyword-anylength is found, enter @anyword-anylength in column D.

    @anyword-anylength simply means a word that has @ in the first position and is any length. So an example of the contents of column A could be:
    @one
    @two
    @three
    @apple
    @peaches

    Thank you

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Find copy and paste

    Try this array formula in D2 and fill down; to array enter commit formula with Ctrl + Shift + Enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    A sample file is attached.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-29-2014
    Location
    New York
    MS-Off Ver
    2007
    Posts
    33

    Re: Find copy and paste

    Thank you. I see that it works, I just don't know how to get it started. How do I do that? Appreciated!
    Last edited by punkin44; 03-06-2015 at 12:19 AM.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Find copy and paste

    I don't understand the question. Could you clarify?

  5. #5
    Registered User
    Join Date
    07-29-2014
    Location
    New York
    MS-Off Ver
    2007
    Posts
    33

    Re: Find copy and paste

    I used your sample. I entered the following in col A after your entries.
    @one
    @two
    @three
    @apple
    @peaches

    I then filled col D with the formula in D2 all the way down to meet what was at the end of col A, Then I tried pressing CNTRL SHIFT ENTER but nothing happened. Not sure how to get results.

  6. #6
    Registered User
    Join Date
    07-29-2014
    Location
    New York
    MS-Off Ver
    2007
    Posts
    33

    Re: Find copy and paste

    ok, I got it to work, but it doesn't work past A13, even though I filled d2 down to d27, what should I do, please?

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Find copy and paste

    Quote Originally Posted by punkin44 View Post
    ok, I got it to work, but it doesn't work past A13, even though I filled d2 down to d27, what should I do, please?
    Sorry about my late reply.....had to step away for a day or so.

    The reason it won't work further down is because the range the formula references stops at its last row. For the additions listed I made this adjustment to the formula. It will work up to row 19.....your 18th item.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you anticipate more rows adjust accordingly. If it's going to vary change the $A$19 to something larger than anticipated. Make it sufficiently large enough to accommodate the longest anticipated list. For example if 100 items seems like a reasonable maximum set the range to $A2:$A$150.

    Does this help?
    Last edited by FlameRetired; 03-08-2015 at 01:16 PM.

  8. #8
    Registered User
    Join Date
    07-29-2014
    Location
    New York
    MS-Off Ver
    2007
    Posts
    33

    Re: Find copy and paste

    I made the changes, changing 19 to 50 in D2, D3 and D4, but nothing happens after D4
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    12-06-2012
    Location
    sacramento,calif
    MS-Off Ver
    Excel 2010
    Posts
    217

    Re: Find copy and paste

    Why not just use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    in cell D1 (and run it down), or do you want a consecutive list without empty cells in the column?

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Find copy and paste

    Quote Originally Posted by JJGF View Post
    Why not just use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    in cell D1 (and run it down), or do you want a consecutive list without empty cells in the column?
    Good point.

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Find copy and paste

    Quote Originally Posted by punkin44 View Post
    I made the changes, changing 19 to 50 in D2, D3 and D4, but nothing happens after D4
    Have you array entered? In D2 press the F2 key. Then while holding down Ctrl and Shift hit Enter. Then fill down. It worked on your sheet.

    ........and BTW have you seen JJGF's formula? It is much simpler and does not need to be array entered. If your results don't have to be grouped try that instead of the formula I posted.
    Last edited by FlameRetired; 03-08-2015 at 04:02 PM.

  12. #12
    Registered User
    Join Date
    07-29-2014
    Location
    New York
    MS-Off Ver
    2007
    Posts
    33

    Re: Find copy and paste

    Hey guys, thanks so much. I am using JJGF's because it does what I need, but thank you FlameR for your effort and support.

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Find copy and paste

    Super! Glad you found what works.

+ 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. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  2. [SOLVED] Macro to Find, copy, paste, find, copy, paste, find, copy, paste, u get the picture....
    By westsoldman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-12-2012, 01:12 AM
  3. Copy\Find\Copy\Paste Multiple Workbooks
    By JMcClane in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2010, 10:23 AM
  4. code to find, copy and paste until find new, then repeat
    By siddharthariver in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2010, 04:02 PM
  5. Find, Copy, and Paste
    By NSTurk725 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2009, 01:47 AM

Tags for this Thread

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