Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Finding 2nd last entry

I am using the formula =LOOKUP(2,1/(1-isblank(b10:b65536)),b10:b65536) to
return the last entry in column b, and this works perfectly well, however, I
need to also use the 2nd last entry, anyone any ideas
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Finding 2nd last entry

One way. Also, use less than 65536
=INDEX(A:A,LOOKUP(2,1/(1-ISBLANK(A10:A65536)),A10:A65536)-1,0)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"dartanion" wrote in message
...
I am using the formula =LOOKUP(2,1/(1-isblank(b10:b65536)),b10:b65536) to
return the last entry in column b, and this works perfectly well, however,
I
need to also use the 2nd last entry, anyone any ideas


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Finding 2nd last entry

or
=INDEX(A:A,MATCH(99999999999,A:A)-1)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"dartanion" wrote in message
...
I am using the formula =LOOKUP(2,1/(1-isblank(b10:b65536)),b10:b65536) to
return the last entry in column b, and this works perfectly well, however,
I
need to also use the 2nd last entry, anyone any ideas


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Finding 2nd last entry

The OP's use of ISBLANK() makes me think that there are holes in the data.
If one of the holes is the cell above the last cell with data in it then
your formula will return 0.

The best that I can come up with is:

=INDIRECT("A"&LARGE(((A1:A1000<"")*ROW(1:1000)),2 ))

Which is not only an array formula but is also valatile.

I am sure that someone can come up with one that is neither.

To the OP the above formula should be entered with Ctrl + Shift + Enter not
just Enter

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Don Guillett" wrote in message
...
or
=INDEX(A:A,MATCH(99999999999,A:A)-1)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"dartanion" wrote in message
...
I am using the formula =LOOKUP(2,1/(1-isblank(b10:b65536)),b10:b65536) to
return the last entry in column b, and this works perfectly well,
however, I
need to also use the 2nd last entry, anyone any ideas





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
Finding the last entry in a column based on criteria DKS Excel Worksheet Functions 9 January 18th 08 07:16 PM
Finding the first and last entry in a column JohnUK Excel Worksheet Functions 2 January 1st 07 10:42 PM
finding an entry from two criteria. garyablett Excel Worksheet Functions 5 May 10th 06 12:16 AM
finding duplicate entry anil New Users to Excel 0 February 2nd 05 05:17 AM
Finding last entry in column Phil Excel Worksheet Functions 5 January 10th 05 07:21 PM


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