+ Reply to Thread
Results 1 to 4 of 4

If cell contains number, past entire row into the next empty row on new sheet

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    The Void
    MS-Off Ver
    Excel 2010
    Posts
    2

    If cell contains number, past entire row into the next empty row on new sheet

    Hi guys,

    I am new to this forum and am hoping that somebody might be able to help me solve a problem. Thank you in advance for taking a look! I appreciate it!

    Here is the nutshell version:

    If the second cell in a row contains a number, paste that entire row to the next empty row on another sheet. If not, no action.

    Now the long version:

    I have a time series. As row numbers increase (moving down), dates run in ascending order in column A, so that each row is associated with a date.

    Some rows contain relevant numeric data in columns B, C, D, ..., etc. Rows that do not contain relevant numeric data, contain empty text cells. (Please see the attached image...)

    Untitled.jpg

    Moving down the spreadsheet, I would like rows that contain relevant numeric data to be copied & pasted to the next empty row on a new sheet. This should give me a sheet that lists all of the days (i.e. rows) associated with relevant numeric data (in order), with none of the days associated with only empty text cells.

    Depending on data that is manually input on the first sheet of the workbook, the days with relevant numeric data will change. That said, I do not want to have to use a manual operation each time I change the initial input data (AKA: i do not want to manually use the "filter" function to knock out all rows that contain only empty text cells.) I would like the new sheet to automatically populate itself with rows from the previous sheet that contain relevant data.

    Thanks in advance for any time that you spend on this and any help that you can offer!

    Very Respectfully,

    ProAsh

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: If cell contains number, past entire row into the next empty row on new sheet

    Why post a jpg when you can post an excel file?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    08-28-2012
    Location
    The Void
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: If cell contains number, past entire row into the next empty row on new sheet

    Thanks for the help arlu1201!!!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: If cell contains number, past entire row into the next empty row on new sheet

    If you post an excel file instead of a jpg, you will surely get faster and better responses.

+ 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