+ Reply to Thread
Results 1 to 4 of 4

Copy the data in a row identifying a blank cell in that row

  1. #1
    Registered User
    Join Date
    10-08-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Copy the data in a row identifying a blank cell in that row

    Hi,

    In a work sheet I have say 20 columns. In "I" row I have some blank cells (not all).

    I want to copy that data from those rows where "I" column has blank cells.

    Can any help me, please.

    Regards
    Swamy

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Copy the data in a row identifying a blank cell in that row

    Where do want to paste the data?
    In a new sheet?

    Edit- Also mention which 20 columns are you talking about.
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Registered User
    Join Date
    10-08-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Copy the data in a row identifying a blank cell in that row

    Yes I want to paste the date in Sheet 2.

    I have data in about 20 columns (from A to T); and about 1000 rows.

    There are some blank cells in "I" column.

    I want to copy entire data from that row where "I" column cells are blank, and paste it in new worksheet.

  4. #4
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Copy the data in a row identifying a blank cell in that row

    Please Login or Register  to view this content.
    Things to be kept in mind while using this macro-
    1. For n = 2 To Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row
    Macro begins from second row and the last row is calculated on the basis of last used cell in Column A.

    2. Sheets("Sheet2").Range("A" & l).Resize(, 20).Value = Sheets("Sheet1").Range("A" & n).Resize(, 20).Value
    Macro copies all values from Column A to 20 columns to the right.
    Please note that values are copied not moved. So the rows are not deleted from Sheet1.

    3. If macro is hit twice then data will be not be overwritten in Sheet2. Instead all the data will again be added in Sheet2.

    Check attached for reference.
    Attached Files Attached Files

+ 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. Need help identifying a specific cell three after the last blank cell in a row
    By hotelmrrsn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-15-2015, 07:37 PM
  2. Replies: 3
    Last Post: 10-29-2013, 12:06 AM
  3. identifying last cell in a row and copy donn the formula in adjecent cell
    By kiranpat in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-21-2013, 08:08 PM
  4. [SOLVED] VBA to find blank cell then copy data next to blank cell
    By unreal_event_horizon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2012, 05:46 AM
  5. Replies: 1
    Last Post: 11-08-2012, 05:50 PM
  6. Copy the data to the Blank Cell
    By crapmind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2008, 09:15 PM
  7. [SOLVED] Identifying a blank cell with existing value
    By Monty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2006, 07:55 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