#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel lists

As I add daily numerical data to a list, I want the latest entry to appear in
an absolute reference cell. An example would be: I enter data in a range
(A1:A1000) and say I enter data in A260. I want the latest entry to appear in
cell $E$6, then the next day, data is entered in cell A261 and I want the
data in A261 to now appear in cell $E$6. How do I write this formula. Thank
you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 695
Default Excel lists

put in E6 and press CTRL+SHIFT+ENTER

=INDIRECT("A"&ROW(INDEX(A:A,LARGE(IF(A1:A1000<"", ROW(A1:A1000)),1),)))

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel lists


Hello Michael,

Assuming your lateset entry is the last one in Column "A", this code
will place the latest entry into $E$6 on the worksheet named Sheet1.
Change Sheet1 to the worksheet name you are using.


Code:
--------------------

Sub PostLastEntry()
Dim Addx
With Worksheets("Sheet1")
Addx = .Cells(.Rows.Count, "A").End(xlUp).Address
If Addx = "$A$1" And .Range("$A$1").Value = "" Then
MsgBox "There are no entries in the list."
Exit Sub
Else
.Range("$E$6").Value = .Range(Addx).Value
End If
End With
End Sub

--------------------


Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=571117

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
Drop down lists from multiple source lists RoofIL Excel Worksheet Functions 3 February 18th 10 09:44 PM
LISTS- adding info without repeat to other lists Jemimastar Excel Discussion (Misc queries) 1 December 1st 06 09:29 PM
Multiple lists with repeated values for dependet drop down lists mcmanusb Excel Worksheet Functions 1 September 29th 06 12:13 AM
lists from other lists in excel Lew Excel Worksheet Functions 5 March 13th 06 07:21 PM
Form lists influencing other lists chanteribby Excel Programming 1 November 6th 03 03:39 AM


All times are GMT +1. The time now is 11:52 PM.

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

About Us

"It's about Microsoft Excel"