Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
George W. Barrowcliff
 
Posts: n/a
Default Find last nonblank in a column

How can I find the last nonblank value in a column of numbers?

TIA

GWB


  #2   Report Post  
RagDyeR
 
Posts: n/a
Default

Try this:

=LOOKUP(2,1/(1-ISBLANK(F1:F1000)),F1:F1000)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"George W. Barrowcliff" wrote in message
m...
How can I find the last nonblank value in a column of numbers?

TIA

GWB



  #3   Report Post  
Sandy Mann
 
Posts: n/a
Default

George,

Provided that you do not mean WHOLE column when you say column of numbers
try:

=LOOKUP(2,1/ISNUMBER(L1:L1000),L1:L1000)

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"George W. Barrowcliff" wrote in message
m...
How can I find the last nonblank value in a column of numbers?

TIA

GWB




  #4   Report Post  
George W. Barrowcliff
 
Posts: n/a
Default

Thanks, for the quick responses. Does exactly what I needed to do.


"Sandy Mann" wrote in message
...
George,

Provided that you do not mean WHOLE column when you say column of numbers
try:

=LOOKUP(2,1/ISNUMBER(L1:L1000),L1:L1000)

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"George W. Barrowcliff" wrote in message
m...
How can I find the last nonblank value in a column of numbers?

TIA

GWB






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

That puts efficiency in back seat. <g

George W. Barrowcliff wrote:
Thanks, for the quick responses. Does exactly what I needed to do.


"Sandy Mann" wrote in message
...

George,

Provided that you do not mean WHOLE column when you say column of numbers
try:

=LOOKUP(2,1/ISNUMBER(L1:L1000),L1:L1000)

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"George W. Barrowcliff" wrote in message
. com...

How can I find the last nonblank value in a column of numbers?

TIA

GWB







--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.


  #6   Report Post  
Sandy Mann
 
Posts: n/a
Default

Aladin,

I accept that your use of LOOKUP is more efficient than mine, (well my
plagiarised version really, probably the only original thought I have had
was, "I wonder if there is anything on the net about Excel?"), for one thing
'mine' used two function calls. So that I can expand my understanding of
how XL works, do you know if LOOKUP checks all 65,536 rows or just the used
range? If it does check all rows, is it still faster than a limited range -
say 1,000 rows. I other words is it 65 times faster?

--
Regards

Sandy

Replace@mailinator with @tiscali.co.uk


"Aladin Akyurek" wrote in message
...
That puts efficiency in back seat. <g

George W. Barrowcliff wrote:
Thanks, for the quick responses. Does exactly what I needed to do.


"Sandy Mann" wrote in message
...

George,

Provided that you do not mean WHOLE column when you say column of numbers
try:

=LOOKUP(2,1/ISNUMBER(L1:L1000),L1:L1000)

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


"George W. Barrowcliff" wrote in message
.com...

How can I find the last nonblank value in a column of numbers?

TIA

GWB







--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.



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

Sandy Mann wrote:
Aladin,

I accept that your use of LOOKUP is more efficient than mine, (well my
plagiarised version really, probably the only original thought I have had
was, "I wonder if there is anything on the net about Excel?"), for one thing
'mine' used two function calls. So that I can expand my understanding of
how XL works, do you know if LOOKUP checks all 65,536 rows or just the used
range? If it does check all rows, is it still faster than a limited range -
say 1,000 rows. I other words is it 65 times faster?


LOOKUP() effects a binary search (see:
http://www.nist.gov/dads/HTML/binarySearch.html), thus very fast.

In

=LOOKUP(2,1/ISNUMBER(L1:L1000),L1:L1000)

it's not LOOKUP itself that requires time. Rather:

(a) the evaluation of ISNUMBER(L1:L1000), and

(b) 1/Expression

Hence, the formula

=LOOKUP(2,1/ISNUMBER(L1:L1000),L1:L1000)

is significantly less efficient compared to

=LOOKUP(9.99999999999999E+307,L:L)

When the interest is in retrieving the last numeric value, one would
should invoke the latter, not the former.



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

=LOOKUP(9.99999999999999E+307,A:A)

which will return the last numeric value from column A if any.

George W. Barrowcliff wrote:
How can I find the last nonblank value in a column of numbers?

TIA

GWB


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
Lookup Table Dilemma Karen Excel Worksheet Functions 2 June 10th 05 08:22 PM
How to find which column or row the Min() value is coming from Luanne Excel Discussion (Misc queries) 4 April 29th 05 08:32 PM
I need to find the Average from Column A - but Reference Column B BAM718 Excel Worksheet Functions 2 March 15th 05 02:42 PM
need to find which numbers (3+) in a column sum to a value Devin Excel Discussion (Misc queries) 1 February 11th 05 10:30 PM
Find AVG/MIN of a Column, excluding 0's and NULL's? JT Excel Worksheet Functions 3 November 4th 04 06:15 PM


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