The first cell from

MJA

Board Regular
Joined
Feb 18, 2002
Messages
79
Hello All,

I have data in column A, e.g. in cell A1, A10, A76, a189, Ax, ... .

I want to know the first cell with data from the bottom up. So I don't want to start in A1 but in A1000.

Is that possible in VB!?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Would something like this help...


Lastrow = Range("A65000").End(xlUp).Row

(Returns the row number of the last cell in column A with data in)
 
Upvote 0
Use something like: -

For x = 1000 To 1 Step -1
If Not IsEmpty(Cells(x, 1)) Then Exit For
Next x

MsgBox "Cell A" & x & " is the first cell with data in."
 
Upvote 0
On 2002-03-06 05:28, AJ wrote:
Would something like this help...


Lastrow = Range("A65000").End(xlUp).Row

(Returns the row number of the last cell in column A with data in)

AJ thank U all tha way up!
 
Upvote 0

Forum statistics

Threads
1,223,391
Messages
6,171,817
Members
452,426
Latest member
cmachael

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