Finding Next Blank Row!

DanBanez

New Member
Joined
Apr 16, 2008
Messages
41
Hi Guys,

I am an Excel beginner and I need help!

I have an Excel worksheet that contains 1,000 rows. I already have entered records on some of the rows. Is there a way that Excel will find the next blank row to input data?

Hope this makes sense!

Thanks in advance.

Dan Banez
 
Try
Code:
Sub MeRemove ()

Dim i as Long
i = Range("A1000").End(xlUp).Row + 1
Range("A" & i & ":A1000").EntireRow.Delete

End Sub
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi Trevor,

Here's what I was trying to do:

I have a spreadsheet that contains names, addresses, etc. of donors. The spreadsheet has 1,000 rows, although it has only 475 donors. I have 1,000 rows because I don't want to keep on adding rows when I add donors. There must be an easier way, but I am new to this.

When I query donors, and let's say the query produced only 300 names. These names will appear on my "output range" which also has 1,000 rows. Also, these names will appear on my "merge files" which also has 1,000 rows.

Since I don't want to mess up my "output range", I want to delete rows 301-1000 from my merge file, which I use to "merge" with my MS Word document that I send to these donors. If I don't delete rows 301-1000, they will merge with my MS Word document and produce 700 blank documents.

Hope this makes sense!

Thanks.

Dan Banez

I see some suggestions are coming in about deleting rows, which is really good. I think what you are trying to do is keep a unique list together so that you only send out merge documents once to donors, so would it help to identify if there names appear more than once. So I have made up a mock sheet with some details and added in a countif function that can then count how many times a donors names appear this can then assit with the next stage to only show there names once.

If i'm wrong please show some mock data for 3 sheets, the general donors list, then the other sheets. You can use Excel Jeanie to show some data as per this sample.

Excel Workbook
ABCDE
1Donor NameAddressDonationDate Addedcountif
2Mr White123 Lower20002/06/20114
3Mrs Williams45 High12302/06/20114
4Dr Blue128 Big Hill12003/06/20113
5Mr White123 Lower1207/06/20114
6Mrs Williams45 High4507/06/20114
7Dr Blue128 Big Hill90023/06/20113
8Mr White123 Lower20023/06/20114
9Mrs Williams45 High12323/06/20114
10Dr Blue128 Big Hill12023/06/20113
11Dr FosterWest Coattage20002/06/20111
12Father Ted98 Lake Road12323/06/20111
13Miss HallworhtyEast Ridings87623/06/20111
14Mr White123 Lower12,31223/06/20114
15Mrs Williams45 High34523/06/20114
16Mrs GatesLake Dart12023/06/20111
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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