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
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
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
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.
Things to be kept in mind while using this macro-Please Login or Register to view this content.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks