Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Select the last value from a list

Column A contains a list of numbers. This list will vary in length. Cell C1
needs a formula to display the last (but not necessary largest/smallest)
figure in this list.

Any help would be appreciated
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Select the last value from a list

=INDIRECT("A"&COUNT(A:A))

Regards,
Stefi


Steve ezt *rta:

Column A contains a list of numbers. This list will vary in length. Cell C1
needs a formula to display the last (but not necessary largest/smallest)
figure in this list.

Any help would be appreciated

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Select the last value from a list

Try this:

=LOOKUP(99^99,A:A)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Steve" wrote in message
...
Column A contains a list of numbers. This list will vary in length. Cell

C1
needs a formula to display the last (but not necessary largest/smallest)
figure in this list.

Any help would be appreciated


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Select the last value from a list

This is nicer and more secure than my solution, and it cleared an error in XL
Help, at least in the Hungarian version (so it can be a translation error).
Hugarian Help states that if LOOKUP doesn't find the value it returns the
greatest (legnagyobb) value in the lookup array. Your formula cleared that it
returns the LAST (utolsó) of the array!

Thanks,
Stefi


Ragdyer ezt *rta:

Try this:

=LOOKUP(99^99,A:A)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Steve" wrote in message
...
Column A contains a list of numbers. This list will vary in length. Cell

C1
needs a formula to display the last (but not necessary largest/smallest)
figure in this list.

Any help would be appreciated



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Select the last value from a list

I think LARGEST is the good term instead of greatest!
Stefi


Stefi ezt *rta:

This is nicer and more secure than my solution, and it cleared an error in XL
Help, at least in the Hungarian version (so it can be a translation error).
Hugarian Help states that if LOOKUP doesn't find the value it returns the
greatest (legnagyobb) value in the lookup array. Your formula cleared that it
returns the LAST (utolsó) of the array!

Thanks,
Stefi


Ragdyer ezt *rta:

Try this:

=LOOKUP(99^99,A:A)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Steve" wrote in message
...
Column A contains a list of numbers. This list will vary in length. Cell

C1
needs a formula to display the last (but not necessary largest/smallest)
figure in this list.

Any help would be appreciated





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Select the last value from a list

Try this

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

"Steve" wrote:

Column A contains a list of numbers. This list will vary in length. Cell C1
needs a formula to display the last (but not necessary largest/smallest)
figure in this list.

Any help would be appreciated

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Select the last value from a list

In my American (English) version, the Help file states:
(emphasis mine)
<<<"If LOOKUP can't find the lookup_value, it uses the largest value in the
array that is *LESS THAN OR EQUAL TO LOOKUP_VALUE*."

Now, my suggested formula uses an *extremely large* lookup value, which will
probably *never* exist in any lookup range (array), BUT ... and here's a
very significant BUT ... you should also remember that the lookup range is
supposed to be *SORTED, ASCENDING*.

SO ... If Lookup *can't* find that large lookup value, and it assumes that
the range is sorted, it *ALSO* assumes that the *LAST* number, not being
larger then the lookup value, *MUST* be the *largest value* less then the
lookup value.

That "quirk" in the Lookup function allows this type of formula to return
the *last* number in the lookup range, *NO MATTER* what it's actual value
might be.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Stefi" wrote in message
...
I think LARGEST is the good term instead of greatest!
Stefi


Stefi ezt *rta:

This is nicer and more secure than my solution, and it cleared an error
in XL
Help, at least in the Hungarian version (so it can be a translation
error).
Hugarian Help states that if LOOKUP doesn't find the value it returns the
greatest (legnagyobb) value in the lookup array. Your formula cleared
that it
returns the LAST (utolsó) of the array!

Thanks,
Stefi


Ragdyer ezt *rta:

Try this:

=LOOKUP(99^99,A:A)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit
!
---------------------------------------------------------------------------
"Steve" wrote in message
...
Column A contains a list of numbers. This list will vary in length.
Cell
C1
needs a formula to display the last (but not necessary
largest/smallest)
figure in this list.

Any help would be appreciated



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Select the last value from a list

Thanks for the explanation, nice trick!

Stefi


RagDyer ezt *rta:

In my American (English) version, the Help file states:
(emphasis mine)
<<<"If LOOKUP can't find the lookup_value, it uses the largest value in the
array that is *LESS THAN OR EQUAL TO LOOKUP_VALUE*."

Now, my suggested formula uses an *extremely large* lookup value, which will
probably *never* exist in any lookup range (array), BUT ... and here's a
very significant BUT ... you should also remember that the lookup range is
supposed to be *SORTED, ASCENDING*.

SO ... If Lookup *can't* find that large lookup value, and it assumes that
the range is sorted, it *ALSO* assumes that the *LAST* number, not being
larger then the lookup value, *MUST* be the *largest value* less then the
lookup value.

That "quirk" in the Lookup function allows this type of formula to return
the *last* number in the lookup range, *NO MATTER* what it's actual value
might be.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Stefi" wrote in message
...
I think LARGEST is the good term instead of greatest!
Stefi


Stefi ezt *rta:

This is nicer and more secure than my solution, and it cleared an error
in XL
Help, at least in the Hungarian version (so it can be a translation
error).
Hugarian Help states that if LOOKUP doesn't find the value it returns the
greatest (legnagyobb) value in the lookup array. Your formula cleared
that it
returns the LAST (utolsó) of the array!

Thanks,
Stefi


Ragdyer ezt *rta:

Try this:

=LOOKUP(99^99,A:A)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit
!
---------------------------------------------------------------------------
"Steve" wrote in message
...
Column A contains a list of numbers. This list will vary in length.
Cell
C1
needs a formula to display the last (but not necessary
largest/smallest)
figure in this list.

Any help would be appreciated




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
with a drop down list in excel how do I select multiple values Keith H Excel Discussion (Misc queries) 1 July 13th 06 06:08 PM
how do I select multi values from a list Tommy Excel Discussion (Misc queries) 1 July 12th 06 09:38 AM
Select every 10th number in a list judoist Excel Discussion (Misc queries) 4 November 24th 05 04:30 PM
data validation list should have opt. to select based on criteria be Excel Worksheet Functions 1 September 15th 05 01:05 PM
Extracting/look up data from a list and select multiple instances Candice H. Excel Worksheet Functions 4 April 29th 05 04:38 PM


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