How to count rows with a blank space

adiacal7

New Member
Joined
Jun 7, 2016
Messages
12
hi guys

i have a problem could you all help me please for count rows with a blank space

example like this

i have coloumb wih data and archive i just want to count rows for table data only in vba macro so i can copied that data in new coloumb

archive
1
1
1
1


data
1
1
1
1
1


thanks guys
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
You want to copy all the cells in column "B" with data and Put these values where?
 
Upvote 0
yeah bro i want to copy to new worksheet,, nb row in data maybe its not same if i collect raw data
 
Upvote 0
I need exact details. When you say "yeah bro i want to copy to new worksheet

That's not specific at all.

What Worksheet? Give me a Worksheet name. And where on the Worksheet.
 
Upvote 0
I need exact details. When you say "yeah bro i want to copy to new worksheet

That's not specific at all.

What Worksheet? Give me a Worksheet name. And where on the Worksheet.

im sorry:)

i have a worksheet with sheet name is Data and i have data as like this

Data
1
1
1
1
1

archive
1
2
1
2
1
2

i want to copy "Data" in new worksheet without "archive"
so i confused for vba code for count rows at "data" (Just row at :data: before blank cells)
i'm already test this code its not work properly

Dim c As Long
c = Cells(Rows.Count, "B").End(xlUp).Row
Range("A1:N" & c).Select Selection.Copy

yeah i mean that code is count how many Row Coloumb B and not count only Rows at " Data"

could you please help me?? thank mate
 
Upvote 0
I'm sorry I'm not able to understand what you want. Maybe someone else here at Mr. Excel will understand what you want.
 
Upvote 0

Forum statistics

Threads
1,214,560
Messages
6,120,217
Members
448,951
Latest member
jennlynn

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top