+ Reply to Thread
Results 1 to 6 of 6

select all rows with data in column j

  1. #1
    Forum Contributor
    Join Date
    06-25-2007
    Posts
    166

    select all rows with data in column j

    I have a spreadsheet with thousands of rows. In column J, there is data in some rows, but not all.

    What would be the best way of selecting every (entire) row that DOES have data in row J? I would like them all selected at the same time to move them to a different spreadsheet.

    I'm guessing a macro would be the easiest way, but I'm not too sure where to start. Some sort of loop function?

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Try with this macro:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Forum Contributor
    Join Date
    06-25-2007
    Posts
    166
    Thanks Antonio... almost there, but not quite what I'm looking for.

    Your method simply cuts and pastes the entire J row into a new sheet.

    What I need is... for every row that has data in column J, I need to copy that ENTIRE row, and then paste all of those rows into a new sheet (with no blank rows in between).

    Any other suggestions? Thanks!

  4. #4
    Registered User
    Join Date
    06-22-2007
    Posts
    42
    I've just had to do this and wrote some code - it works for me

    Please Login or Register  to view this content.
    Apologies if it's not the right thing

  5. #5
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Try with this macro:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  6. #6
    Registered User
    Join Date
    05-02-2006
    Posts
    80

    Autofilter will do the job for you

    Hi JChandler,

    Macros will do what you're after but you might not need them at all. Try the following and it could achieve what you want really easily:
    • From the worksheet go to Data -> Filter and select "AutoFilter"
    • Each of the header columns will now have a pull-down menu from where you select the criteria for the filtering
    • From the pull-down menu in Column J select "NonBlanks"
    • This should now just show those records (rows) that have some data in column J.
    • Simply copy and paste to wherever.

    Hope this helps

    Tris

+ 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