Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
A shink
 
Posts: n/a
Default How can I locate the second to last value in a range?

I am trying to locate the last value in a column and then the second to last,
then third to last and so on to be placed in a seperate section of my
spreadsheet.

I am using the following formula to locate the last cell which is:
Lookup(2,1/(A3:A145<"")),A3:A145)

Where do I go from here?

Thanks for the help
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

=offset(a1, [your formula from below]-1,0,1,1) will give you the last value
in col A.

Change the -1 to -2, -3 , etc for the other cells



"A shink" wrote:

I am trying to locate the last value in a column and then the second to last,
then third to last and so on to be placed in a seperate section of my
spreadsheet.

I am using the following formula to locate the last cell which is:
Lookup(2,1/(A3:A145<"")),A3:A145)

Where do I go from here?

Thanks for the help

  #3   Report Post  
A shink
 
Posts: n/a
Default

Duke:

That addition to the formula actually gives me the first filled row of the
column not the last. Anyother ideas?

thanks

"Duke Carey" wrote:

=offset(a1, [your formula from below]-1,0,1,1) will give you the last value
in col A.

Change the -1 to -2, -3 , etc for the other cells



"A shink" wrote:

I am trying to locate the last value in a column and then the second to last,
then third to last and so on to be placed in a seperate section of my
spreadsheet.

I am using the following formula to locate the last cell which is:
Lookup(2,1/(A3:A145<"")),A3:A145)

Where do I go from here?

Thanks for the help

  #4   Report Post  
Duke Carey
 
Posts: n/a
Default

Try this formula for the LAST value. As before, adjust the -1 to get the
previous cell, etc

=OFFSET(A1,MATCH(9.99999999999999E+307,A:A)-1,0,1,1)

"A shink" wrote:

Duke:

That addition to the formula actually gives me the first filled row of the
column not the last. Anyother ideas?

thanks

"Duke Carey" wrote:

=offset(a1, [your formula from below]-1,0,1,1) will give you the last value
in col A.

Change the -1 to -2, -3 , etc for the other cells



"A shink" wrote:

I am trying to locate the last value in a column and then the second to last,
then third to last and so on to be placed in a seperate section of my
spreadsheet.

I am using the following formula to locate the last cell which is:
Lookup(2,1/(A3:A145<"")),A3:A145)

Where do I go from here?

Thanks for the help

  #5   Report Post  
A shink
 
Posts: n/a
Default

Thank you for all the help!!!!

"Duke Carey" wrote:

Try this formula for the LAST value. As before, adjust the -1 to get the
previous cell, etc

=OFFSET(A1,MATCH(9.99999999999999E+307,A:A)-1,0,1,1)

"A shink" wrote:

Duke:

That addition to the formula actually gives me the first filled row of the
column not the last. Anyother ideas?

thanks

"Duke Carey" wrote:

=offset(a1, [your formula from below]-1,0,1,1) will give you the last value
in col A.

Change the -1 to -2, -3 , etc for the other cells



"A shink" wrote:

I am trying to locate the last value in a column and then the second to last,
then third to last and so on to be placed in a seperate section of my
spreadsheet.

I am using the following formula to locate the last cell which is:
Lookup(2,1/(A3:A145<"")),A3:A145)

Where do I go from here?

Thanks for the help



  #6   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

A shink wrote:
I am trying to locate the last value in a column and then the second to last,
then third to last and so on to be placed in a seperate section of my
spreadsheet.

I am using the following formula to locate the last cell which is:
Lookup(2,1/(A3:A145<"")),A3:A145)

Where do I go from here?

Thanks for the help


Last numeric value:

=LOOKUP(9.99999999999999E+307,A3:A145)

Second to the last numeric value:

=LOOKUP(9.99999999999999E+307,A3:INDEX(A3:A145,MAT CH(9.99999999999999E+307,A3:A145)-1))

If you meant to "locate" any value (last entry of any type), a different
type of formula is required.
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 2003 hangs when trying to locate a workbook to open Darren Hill via OfficeKB.com Excel Discussion (Misc queries) 1 March 24th 05 12:41 PM
How do you locate External References in an Excel Workbook Iain Excel Discussion (Misc queries) 2 February 3rd 05 01:05 AM
Locate and delete specific cells David Smith Excel Discussion (Misc queries) 1 January 19th 05 04:45 PM
how do I locate a cell that provides data to a formula ? chrisatminara Excel Worksheet Functions 2 January 7th 05 12:08 PM
how do I locate a cell that provides data to a formula ? chrisatminara Excel Worksheet Functions 0 January 7th 05 02:53 AM


All times are GMT +1. The time now is 07:48 AM.

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"