+ Reply to Thread
Results 1 to 4 of 4

search column for text within a range of cells then copy cell to separate sheet

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    search column for text within a range of cells then copy cell to separate sheet

    Hello,

    I have a spreadsheet with two worksheets. In the first worksheet, in the first column, I have text but not in every cell of that column. my cell range in that A column is A5 to A244. I would like to search that column starting at cell A5 and if the cell is found to be blank then go search the next cell and so on and so on until i find text. when i find text i would like that text to be copied to a separate worksheet starting in the first column, first row cell a1. then i would like to go back and keep searching down until A244 on the worksheet and repeat this process over and over so that all text found is placed in my second worksheet column "A' so that cells a1,a2,a3,a4,a5,a6, etc. are filled. Thanks for any assistance provided.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: search column for text within a range of cells then copy cell to separate sheet

    Can you just autofilter Column A by non-blanks and copy and paste those to the new sheet?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-16-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: search column for text within a range of cells then copy cell to separate sheet

    Thanks for the suggestion ChemistB. My spreadsheet is for a fantasy sports draft and I was hoping to automate it. The spreadsheet has more to it but I wanted to simplify my request so as not to confuse or over complicate things. I figure i need some sort of structure using a loop, ifthen, istext isblank, etc. to finish up the spreadsheet and complete the tasks i'd like it to perform. I am mostly familiar with ifthen stuff and that is mostly what my spreadsheet currently involves. What I'm gonna do is pop around some more in the beginners threads and try to teach myself to come up with a macro and next year ill have a more powerful spreadsheet for my fantasy sports drafts... or cough up the $$ for a online store bought one. Thanks for taking a few quick secs to suggest a solution to me.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: search column for text within a range of cells then copy cell to separate sheet

    tipspeed,

    Welcome to the forum!
    This macro automates what ChemistB suggested:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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