Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 1 cell that reflects last entry made in any other cell

I am using Excel 2003.

I have two columns in which I enter the weight of individual rolls of
plastic...first down column A, then down column B. I'd like to have one cell,
say in column C, that reflects the last entry I made, no matter where it is
in columns A or B. Can this be done?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default 1 cell that reflects last entry made in any other cell

so if column A is filled and column B has only a few entries, you want the
last entry from column B (ie - all of the entries in column b are considered
later than the entries in column a)?

if so, try:
=IF(COUNT(B:B),LOOKUP(MAX(B:B)+1,B:B),LOOKUP(MAX(A :A)+1,A:A))


"computerwolf" wrote:

I am using Excel 2003.

I have two columns in which I enter the weight of individual rolls of
plastic...first down column A, then down column B. I'd like to have one cell,
say in column C, that reflects the last entry I made, no matter where it is
in columns A or B. Can this be done?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 1 cell that reflects last entry made in any other cell

Assuming you fill cells in column A first, then you start in column B:

=IF(COUNT(A:B),LOOKUP(1E100,IF(COUNT(B:B),B:B,A:A) ),"")


--
Biff
Microsoft Excel MVP


"computerwolf" wrote in message
...
I am using Excel 2003.

I have two columns in which I enter the weight of individual rolls of
plastic...first down column A, then down column B. I'd like to have one
cell,
say in column C, that reflects the last entry I made, no matter where it
is
in columns A or B. Can this be done?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default 1 cell that reflects last entry made in any other cell

Any cell in A or B in any order will require event code as far as I can tell.

Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "A1:B1000" '<--------- change to suit
Dim cell As Range
On Error GoTo ws_exit
Application.EnableEvents = False

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
Me.Range("C1").Value = Target.Value
End If
ws_exit:
Application.EnableEvents = True
End Sub

I put the last entry log cell as C1. You can Freeze Panes on row one so's C1 is
always visible.


Gord Dibben MS Excel MVP

On Tue, 19 Feb 2008 20:36:00 -0800, computerwolf
wrote:

I am using Excel 2003.

I have two columns in which I enter the weight of individual rolls of
plastic...first down column A, then down column B. I'd like to have one cell,
say in column C, that reflects the last entry I made, no matter where it is
in columns A or B. Can this be done?


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
Cell Entry That Locks Selected Cells From Any Data Entry. ron Excel Worksheet Functions 5 February 16th 07 09:52 PM
Last data entry made time and Date show in each worksheet Rajat Excel Worksheet Functions 3 November 12th 06 01:27 PM
have one cell display text which reflects a number in another cell excelrookie Excel Discussion (Misc queries) 3 September 25th 06 05:49 PM
After a date entry is made, only displaying the Day Alec H Excel Discussion (Misc queries) 3 February 9th 06 01:10 PM
How do I count the # of times an entry has been made in a month? Wayne New Users to Excel 13 December 28th 05 09:39 PM


All times are GMT +1. The time now is 11:29 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"