Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default function to find last value in a column

Hi-

I am not experienced at writing user functions. I want to put a function in
a cell that will retrieve the last call that has a value in another column.
My feeble attempts are as follows (One attempt was patterned after another MS
post)

Function LastValue(lastno As Variant)

Dim sysexpcol As Range
Set sysexpcol = Range(ad16, ad56)


Set lastno = sysexpcol(Cells.Value.xlDown)



End Function

Function lastvalueincolumn(foundcell As Variant)

With Worksheets("analysis").Range("ad:ad")
Set foundcell = .Cells.Find.Value.xlDown
End With
End Function


Thanks for your help!

Andy
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
EXCEL function;find string in entire column & return cell referenc Audit Compliance Man Excel Worksheet Functions 2 April 21st 23 10:24 AM
trying to write function to find data in last row in 1 column belvy123 Excel Discussion (Misc queries) 1 January 20th 07 01:58 PM
In a column of numbers I need a function to find the last entry Charlie Bamford Excel Worksheet Functions 4 May 13th 06 09:05 PM
Is there a function in VBA to find out if entire column is empty? HelpEachOther Excel Programming 4 December 14th 05 10:01 PM
Function to Find Last Non-Null Entry in a Column Brad H McCollum Excel Programming 1 August 5th 03 04:59 AM


All times are GMT +1. The time now is 12:38 PM.

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"