Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Find cell below last number in a column

I need an efficient way to find the cell below the last
number in a column in a macro.
Thanks
--
Occasionally stumped
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Find cell below last number in a column

Sorry, found the efficient way in one of the answers.
--
Occasionally stumped


"Two-Canucks" wrote:

I need an efficient way to find the cell below the last
number in a column in a macro.
Thanks
--
Occasionally stumped

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default Find cell below last number in a column

what was the method?

Thanks

"Two-Canucks" wrote:

Sorry, found the efficient way in one of the answers.
--
Occasionally stumped


"Two-Canucks" wrote:

I need an efficient way to find the cell below the last
number in a column in a macro.
Thanks
--
Occasionally stumped

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Find cell below last number in a column


(edit: Ooopps! I see you have an answer, anyway...)

here's one option which checks that the spreadsheet is not full:

Sub LastRowPlusOne()
Dim FirstBlank As Long
If IsEmpty(Range("A" & Rows.Count)) Then
FirstBlank = Cells(Rows.Count, "a").End(xlUp).Offset(1, 0).Row
Else
MsgBox "Column A is full"
End If
End Sub

hth
Rob Brockett
NZ
always learning & the best way to learn is to experience..

--
broro18
-----------------------------------------------------------------------
broro183's Profile: http://www.excelforum.com/member.php...fo&userid=3006
View this thread: http://www.excelforum.com/showthread.php?threadid=53943

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 186
Default Find cell below last number in a column

If you have text and numbers in column A and are looking for the cell below
the last cell containing a number, you could use:

Option Explicit
Dim Rows As Double
Dim Iloop As Double
Sub LastNoPlusOne()
Rows = Range("A65536").End(xlUp).Row
For Iloop = Rows To 1 Step -1
If IsNumeric(Cells(Iloop, "A")) Then
MsgBox ("The location is row " & Iloop + 1 & ".")
Exit For
End If
Next Iloop
If Iloop = 0 Then
MsgBox ("No numbers found.")
End If
End Sub

if you are only looking for the row below the last entry (text or number) in
column A, change the "IsNumeric" to "Not IsEmpty" in the code.

--
Ken Hudson


"Sandy" wrote:

what was the method?

Thanks

"Two-Canucks" wrote:

Sorry, found the efficient way in one of the answers.
--
Occasionally stumped


"Two-Canucks" wrote:

I need an efficient way to find the cell below the last
number in a column in a macro.
Thanks
--
Occasionally stumped



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Find cell below last number in a column

A bit late but here goes:
Range("C7").Select
ActiveCell.End(xlDown).Offset(1, 0).Select 'FINDS LAST NUMBER IN
COLUMN C
--
Occasionally stumped


"Sandy" wrote:

what was the method?

Thanks

"Two-Canucks" wrote:

Sorry, found the efficient way in one of the answers.
--
Occasionally stumped


"Two-Canucks" wrote:

I need an efficient way to find the cell below the last
number in a column in a macro.
Thanks
--
Occasionally stumped

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to find the last number of a column (lower cell) yiannis5231 Excel Discussion (Misc queries) 1 April 21st 10 07:10 AM
FInd common data in one column then add number in adjacent column JT Excel Worksheet Functions 3 December 18th 09 10:20 PM
Find previous number and find next number in column DoubleZ Excel Discussion (Misc queries) 4 March 4th 09 08:51 PM
How to find what number in Column A is not included in Column B? Zhi Sheng Excel Discussion (Misc queries) 2 September 1st 08 02:42 AM
Find DMIN in a column range determined by a number in another cell dlbeiler Excel Worksheet Functions 0 October 11th 07 07:09 PM


All times are GMT +1. The time now is 01:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"