#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Second to last cell


Hi Dudes,

Can anyone help with this problem:

I've got a list of data as such

34
54
23
34
blank
77
45
67
45
blank


To get the last non-blank cell value I'm using =LOOKUP(1E+40,A1:A10).

Anyone know a formula of how to look up the 2nd last value.


--
geoff1234
------------------------------------------------------------------------
geoff1234's Profile: http://www.excelforum.com/member.php...o&userid=36051
View this thread: http://www.excelforum.com/showthread...hreadid=559340

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 256
Default Second to last cell

First, define the following...

Insert Name Define

Name: BigNum

Refers to: =9.99999999999999E+307

Click Ok

Then, try the following formula...

=LOOKUP(BigNum,A2:INDEX(A2:A10,MATCH(BigNum,A2:A10 )-1))

Hope this helps!

In article ,
geoff1234
wrote:

Hi Dudes,

Can anyone help with this problem:

I've got a list of data as such

34
54
23
34
blank
77
45
67
45
blank


To get the last non-blank cell value I'm using =LOOKUP(1E+40,A1:A10).

Anyone know a formula of how to look up the 2nd last value.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Second to last cell

=INDEX(A1:A10,LARGE(IF(A1:A10<"",ROW(A1:A10)),2))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"geoff1234" wrote
in message ...

Hi Dudes,

Can anyone help with this problem:

I've got a list of data as such

34
54
23
34
blank
77
45
67
45
blank


To get the last non-blank cell value I'm using =LOOKUP(1E+40,A1:A10).

Anyone know a formula of how to look up the 2nd last value.


--
geoff1234
------------------------------------------------------------------------
geoff1234's Profile:

http://www.excelforum.com/member.php...o&userid=36051
View this thread: http://www.excelforum.com/showthread...hreadid=559340



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Second to last cell


thanks a lot for that you two, got it working now

ta


--
geoff1234
------------------------------------------------------------------------
geoff1234's Profile: http://www.excelforum.com/member.php...o&userid=36051
View this thread: http://www.excelforum.com/showthread...hreadid=559340

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
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM


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