Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,670
Default Get final non-blank cell in range

I've got a range where I'm including a bunch of values. I need a formula
which will return the last value non-blank in the range. Not the highest or
lowest, simply the last.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Get final non-blank cell in range

One way:

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

Biff

"Eric" wrote in message
...
I've got a range where I'm including a bunch of values. I need a formula
which will return the last value non-blank in the range. Not the highest
or
lowest, simply the last.

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default Get final non-blank cell in range

Hi Eric,

Just to add to Biff's solution, if you knew for absolute sure that the
largest number in the column of interest would never exceed 365, then you
could use

=LOOKUP(366,A:A)

HTH
Regards,
Howard

"Eric" wrote in message
...
I've got a range where I'm including a bunch of values. I need a formula
which will return the last value non-blank in the range. Not the highest
or
lowest, simply the last.

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Get final non-blank cell in range

OR ... something like:

=LOOKUP(99^99,A:A)

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"L. Howard Kittle" wrote in message
. ..
Hi Eric,

Just to add to Biff's solution, if you knew for absolute sure that the
largest number in the column of interest would never exceed 365, then you
could use

=LOOKUP(366,A:A)

HTH
Regards,
Howard

"Eric" wrote in message
...
I've got a range where I'm including a bunch of values. I need a formula
which will return the last value non-blank in the range. Not the highest
or
lowest, simply the last.

Thanks.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,670
Default Get final non-blank cell in range

1. The help text for LOOKUP says the values have to be in order. But in my
case, they won't always be. Will it still work even if not in order?

2. What if the values are a mix of numbers and alpha values?

"Biff" wrote:

One way:

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

Biff

"Eric" wrote in message
...
I've got a range where I'm including a bunch of values. I need a formula
which will return the last value non-blank in the range. Not the highest
or
lowest, simply the last.

Thanks.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Get final non-blank cell in range

Based on this statement:

Not the highest or lowest, simply the last.


I assumed you were talking about NUMBERS in which case the formula would
work whether the numbers were sorted or not.

2. What if the values are a mix of numbers and alpha values?


If you want the last value, text or number (excludes formula blanks: ""):

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

Biff

"Eric" wrote in message
...
1. The help text for LOOKUP says the values have to be in order. But in
my
case, they won't always be. Will it still work even if not in order?

2. What if the values are a mix of numbers and alpha values?

"Biff" wrote:

One way:

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

Biff

"Eric" wrote in message
...
I've got a range where I'm including a bunch of values. I need a
formula
which will return the last value non-blank in the range. Not the
highest
or
lowest, simply the last.

Thanks.






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Get final non-blank cell in range

Or even:

=LOOKUP(MAX(A:A)+1,A:A)

Biff

"RagDyer" wrote in message
...
OR ... something like:

=LOOKUP(99^99,A:A)

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"L. Howard Kittle" wrote in message
. ..
Hi Eric,

Just to add to Biff's solution, if you knew for absolute sure that the
largest number in the column of interest would never exceed 365, then you
could use

=LOOKUP(366,A:A)

HTH
Regards,
Howard

"Eric" wrote in message
...
I've got a range where I'm including a bunch of values. I need a
formula
which will return the last value non-blank in the range. Not the
highest or
lowest, simply the last.

Thanks.






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Get final non-blank cell in range

Harlan might say:
"Unneeded function call."
--

Regards,

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

"Biff" wrote in message
...
Or even:

=LOOKUP(MAX(A:A)+1,A:A)

Biff

"RagDyer" wrote in message
...
OR ... something like:

=LOOKUP(99^99,A:A)

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"L. Howard Kittle" wrote in message
. ..
Hi Eric,

Just to add to Biff's solution, if you knew for absolute sure that the
largest number in the column of interest would never exceed 365, then you
could use

=LOOKUP(366,A:A)

HTH
Regards,
Howard

"Eric" wrote in message
...
I've got a range where I'm including a bunch of values. I need a
formula
which will return the last value non-blank in the range. Not the
highest or
lowest, simply the last.

Thanks.







  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Get final non-blank cell in range

Harlan might say:
"Unneeded function call."


Or Aladin!

Yeah, but if the range is "small" it's a lot less confusing than
9.99999999999999E+307 or 99^99.

Biff

"RagDyeR" wrote in message
...
Harlan might say:
"Unneeded function call."
--

Regards,

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

"Biff" wrote in message
...
Or even:

=LOOKUP(MAX(A:A)+1,A:A)

Biff

"RagDyer" wrote in message
...
OR ... something like:

=LOOKUP(99^99,A:A)

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"L. Howard Kittle" wrote in message
. ..
Hi Eric,

Just to add to Biff's solution, if you knew for absolute sure that the
largest number in the column of interest would never exceed 365, then
you
could use

=LOOKUP(366,A:A)

HTH
Regards,
Howard

"Eric" wrote in message
...
I've got a range where I'm including a bunch of values. I need a
formula
which will return the last value non-blank in the range. Not the
highest or
lowest, simply the last.

Thanks.








  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Get final non-blank cell in range

I'm prejudiced!
I think:

=LOOKUP(99^99,A:A)

Looks neat!<bg

--

Regards,

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

"Biff" wrote in message
...
Harlan might say:
"Unneeded function call."


Or Aladin!

Yeah, but if the range is "small" it's a lot less confusing than
9.99999999999999E+307 or 99^99.

Biff

"RagDyeR" wrote in message
...
Harlan might say:
"Unneeded function call."
--

Regards,

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

"Biff" wrote in message
...
Or even:

=LOOKUP(MAX(A:A)+1,A:A)

Biff

"RagDyer" wrote in message
...
OR ... something like:

=LOOKUP(99^99,A:A)

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"L. Howard Kittle" wrote in message
. ..
Hi Eric,

Just to add to Biff's solution, if you knew for absolute sure that the
largest number in the column of interest would never exceed 365, then
you
could use

=LOOKUP(366,A:A)

HTH
Regards,
Howard

"Eric" wrote in message
...
I've got a range where I'm including a bunch of values. I need a
formula
which will return the last value non-blank in the range. Not the
highest or
lowest, simply the last.

Thanks.









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
Record changing cell data into a column or range Emmie Excel Worksheet Functions 2 December 21st 06 12:23 AM
Cell address in a range starguy Excel Discussion (Misc queries) 7 May 3rd 06 11:58 AM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
blank cell turns to 0 LMB New Users to Excel 2 April 25th 05 03:57 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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