Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 14
Cool Find the last number entered

data
A
1-41
2-19
3-12
4-80
5-36
numbers continue to be added in the column above.
If I add another number, I want it to be placed in another column i.e. k50.
when i entered 12 in column A3 it also placed it in k50.
when i entered 80 in A4 it replaced the 12 in k50 with 80, etc.
how can i do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Find the last number entered

Put this formula in K50...

=LOOKUP(2,1/(A1:A65535<""),A:A)

Rick


"old coach" wrote in message
...

data
A
1-41
2-19
3-12
4-80
5-36
numbers continue to be added in the column above.
If I add another number, I want it to be placed in another column i.e.
k50.
when i entered 12 in column A3 it also placed it in k50.
when i entered 80 in A4 it replaced the 12 in k50 with 80, etc.
how can i do this?




--
old coach


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Find the last number entered

Rick, could you explain the logic behind this formula? or provide some
link where I could read about it...
TIA
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Find the last number entered

Here is the formula again...

=LOOKUP(2,1/(A1:A65535<""),A:A)

The LOOKUP function will attempt to find the first argument (2), in the
array of values found in the second argument. Let's look at the denominator
of that second argument... it is a logical expression... each cell in the
specified range will be compared to the empty string ("").... if it is
**not** equal to it, TRUE is generated and if it is equal to it, FALSE is
generated. Whenever TRUE or FALSE is used in a numerical calculation, Excel
converts them to 1 and 0, respectively, before performing the math operation
involving them. The math operation, in this case, is to divide the result
from the logical expression into 1. Since the only two possible values are 1
and 0, an array of 1/1 and 1/0 is generated. The 1/1 will evaluate to 1;
however, the 1/0 division will produce a #DIV/0! error because you cannot
divide a number by 0 and get a valid result. So the LOOKUP will attempt to
find the 2 from the first argument in the array of 1s and #DIV/0! errors
from the second argument. If the LOOKUP formula cannot find the first
argument in the array of values from the second argument,it uses the largest
value in the array that is less than or equal to first argument and, if
there are ties for this largest value, it uses the last of them for its
match. The largest such value will, in the case of our array, will be a 1
and the last of them will always be generated by the last piece of data
since it will be the last cell not equal to the empty string.

Rick


"Jarek Kujawa" wrote in message
...
Rick, could you explain the logic behind this formula? or provide some
link where I could read about it...
TIA


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Find the last number entered

thanks a lot Rick
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
Number entered isn't number recorded in cell. BubbaGee Excel Discussion (Misc queries) 4 September 11th 07 09:38 PM
cell that only a certain number may be entered jbailey Excel Worksheet Functions 7 August 24th 06 11:09 PM
Show last number entered hodkd Excel Discussion (Misc queries) 2 November 9th 05 08:31 PM
Need to find Min value based on date range entered Chad S Excel Worksheet Functions 0 October 28th 04 08:03 PM
Need to find Min value based on date range entered Chad S Excel Worksheet Functions 1 October 28th 04 09:52 AM


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