Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Fenneth
 
Posts: n/a
Default Finding the bottom non-blank cell in a range


Forgive me for these trivial questions, but I cant find the answer using
the documentation.

I want a formula to use the bottom non-blank cell in a range. How can
this be achieved?


--
Fenneth
------------------------------------------------------------------------
Fenneth's Profile: http://www.excelforum.com/member.php...o&userid=33655
View this thread: http://www.excelforum.com/showthread...hreadid=534500

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Finding the bottom non-blank cell in a range

See http://www.xldynamic.com/source/xld.LastValue.html

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Fenneth" wrote in
message ...

Forgive me for these trivial questions, but I cant find the answer using
the documentation.

I want a formula to use the bottom non-blank cell in a range. How can
this be achieved?


--
Fenneth
------------------------------------------------------------------------
Fenneth's Profile:

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



  #3   Report Post  
Posted to microsoft.public.excel.misc
starguy
 
Posts: n/a
Default Finding the bottom non-blank cell in a range


try this?

=LOOKUP(2,1/(range<""),range)


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=534500

  #4   Report Post  
Posted to microsoft.public.excel.misc
igbert
 
Posts: n/a
Default Finding the bottom non-blank cell in a range

Hi,

Ias there a similar formula to find the first non blank cell in a range?


Igbert


"starguy" wrote:


try this?

=LOOKUP(2,1/(range<""),range)


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=534500


  #5   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Finding the bottom non-blank cell in a range

Hi!

Try this entered as an array using the key combination of CTRL,SHIFT,ENTER:

=INDEX(A1:A100,MATCH(TRUE,A1:A100<"",0))

Biff

"igbert" wrote in message
...
Hi,

Ias there a similar formula to find the first non blank cell in a range?


Igbert


"starguy" wrote:


try this?

=LOOKUP(2,1/(range<""),range)


--
starguy
------------------------------------------------------------------------
starguy's Profile:
http://www.excelforum.com/member.php...o&userid=32434
View this thread:
http://www.excelforum.com/showthread...hreadid=534500






  #6   Report Post  
Posted to microsoft.public.excel.misc
igbert
 
Posts: n/a
Default Finding the bottom non-blank cell in a range

Thanks for the great formula. It works for both text and numbers.

I am new with Index and Match functions. Please kindly explain the logic of
this formula.

Many thanks.


Igbert


"Biff" wrote:

Hi!

Try this entered as an array using the key combination of CTRL,SHIFT,ENTER:

=INDEX(A1:A100,MATCH(TRUE,A1:A100<"",0))

Biff

"igbert" wrote in message
...
Hi,

Ias there a similar formula to find the first non blank cell in a range?


Igbert


"starguy" wrote:


try this?

=LOOKUP(2,1/(range<""),range)


--
starguy
------------------------------------------------------------------------
starguy's Profile:
http://www.excelforum.com/member.php...o&userid=32434
View this thread:
http://www.excelforum.com/showthread...hreadid=534500





  #7   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Finding the bottom non-blank cell in a range

Please kindly explain the logic of this formula.

Sure!

I'll use a smaller range to demonstrate.

Assume the range of cells is A1:A5:

A1 = (empty)
A2 = (empty)
A3 = (empty)
A4 = XX
A5 = YY

=INDEX(A1:A5,MATCH(TRUE,A1:A5<"",0))

The Index function holds an array of values. In this case those values are
from the range A1:A5.

Each of these values is in a relative position within the array.

A1 = position 1
A2 = position 2
A3 = position 3
A4 = position 4
A5 = position 5

Using the formula, we want to find the first non-empty cell in that array so
we can use the Match function to tell the Index function which value to
return.

MATCH(TRUE,A1:A5<"",0)

This expression will return an array of TRUEs and FALSEs:

A1:A5<""

A1 <"" = FALSE
A2 <"" = FALSE
A3 <"" = FALSE
A4 <"" = TRUE
A5 <"" = TRUE

This is what it looks like inside the Match function:

MATCH(TRUE,{FALSE;FALSE;FALSE;TRUE;TRUE},0)

MATCH returns the number of the relative position of the first instance of
the lookup_value.

The lookup_value is TRUE and has been found in the 4th position within the
array:

{FALSE;FALSE;FALSE;TRUE;TRUE}

So, now the formula looks like this:

=INDEX(A1:A5,4)

This returns the value from the 4th position of the indexed array:

A1 = position 1
A2 = position 2
A3 = position 3
A4 = position 4
A5 = position 5

So, the formula returns the value from A4:

A1 = (empty)
A2 = (empty)
A3 = (empty)
A4 = XX
A5 = YY

=INDEX(A1:A5,MATCH(TRUE,A1:A5<"",0)) = XX

Biff

"igbert" wrote in message
...
Thanks for the great formula. It works for both text and numbers.

I am new with Index and Match functions. Please kindly explain the logic
of
this formula.

Many thanks.


Igbert


"Biff" wrote:

Hi!

Try this entered as an array using the key combination of
CTRL,SHIFT,ENTER:

=INDEX(A1:A100,MATCH(TRUE,A1:A100<"",0))

Biff

"igbert" wrote in message
...
Hi,

Ias there a similar formula to find the first non blank cell in a
range?


Igbert


"starguy" wrote:


try this?

=LOOKUP(2,1/(range<""),range)


--
starguy
------------------------------------------------------------------------
starguy's Profile:
http://www.excelforum.com/member.php...o&userid=32434
View this thread:
http://www.excelforum.com/showthread...hreadid=534500







  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 44
Default Finding the bottom non-blank cell in a range

Hi Bob,

Many thanks for the thorough explantion. It is very clear.


Igbert


"Bob Phillips" wrote:

See http://www.xldynamic.com/source/xld.LastValue.html

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Fenneth" wrote in
message ...

Forgive me for these trivial questions, but I cant find the answer using
the documentation.

I want a formula to use the bottom non-blank cell in a range. How can
this be achieved?


--
Fenneth
------------------------------------------------------------------------
Fenneth's Profile:

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




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
Blank (empty) cell always equal to 0?? ulfah Excel Discussion (Misc queries) 3 February 1st 06 04:55 PM
need to Copy or Move to active cell from specified range kaream Excel Discussion (Misc queries) 2 December 14th 05 08:12 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
if the value of a cell in a range is not blank, then return the v. kvail Excel Worksheet Functions 2 April 8th 05 10:07 PM


All times are GMT +1. The time now is 02:58 AM.

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"