Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Reference to last cell

In an expression, how do I refer to the last cell in a specified column that
is not blank?

Thanks in advance.

H


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Reference to last cell

The value of the last number in column A is:

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

--
Gary''s Student - gsnu200775


"Lawman" wrote:

In an expression, how do I refer to the last cell in a specified column that
is not blank?

Thanks in advance.

H



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Reference to last cell

=LOOKUP(99^99,Sheet1!H:H)
finds last non blank in column H of Sheet1
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Lawman" wrote in message
...
In an expression, how do I refer to the last cell in a specified column
that is not blank?

Thanks in advance.

H



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Reference to last cell

This will give you the last numeric value that is not blank:

=LOOKUP(10E10,A:A)

Is that what you want?

Pete

On Mar 25, 1:48*pm, "Lawman" wrote:
In an expression, how do I refer to the last cell in a specified column that
is not blank?

Thanks in advance.

H


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Reference to last cell

My first answer works only with numbers

This works with text also but with no blank cell in the column before last
item
=INDIRECT(ADDRESS(COUNTA(D1:D500),4)) for column D
=INDIRECT(ADDRESS(COUNTA(K1:K500),11)) for column K

best wishes

Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Lawman" wrote in message
...
In an expression, how do I refer to the last cell in a specified column
that is not blank?

Thanks in advance.

H





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Reference to last cell

Thanks, it is exactly what I want. Weird though - and interestingly slightly
different from the other replies, which presumably also work.

I suppose I substitute 1:1 etc for last non-blank cell in a row.

H

"Pete_UK" wrote in message
...
This will give you the last numeric value that is not blank:

=LOOKUP(10E10,A:A)

Is that what you want?

Pete

On Mar 25, 1:48 pm, "Lawman" wrote:
In an expression, how do I refer to the last cell in a specified column
that
is not blank?

Thanks in advance.

H




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Reference to last cell

Glad to hear it worked for you. The first number in the LOOKUP is just a
large number (larger than you expect in your data), so it can be any value,
which explains the variations in the other responses - I think 10E10 is easy
to type and remember.

Yes, make it 1:1 to look in row 1 (make sure your formula isn't in that
row).

Pete

"Lawman" wrote in message
...
Thanks, it is exactly what I want. Weird though - and interestingly
slightly different from the other replies, which presumably also work.

I suppose I substitute 1:1 etc for last non-blank cell in a row.

H

"Pete_UK" wrote in message
...
This will give you the last numeric value that is not blank:

=LOOKUP(10E10,A:A)

Is that what you want?

Pete

On Mar 25, 1:48 pm, "Lawman" wrote:
In an expression, how do I refer to the last cell in a specified column
that
is not blank?

Thanks in advance.

H






  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Reference to last cell

Do you want the value or the address?

Addresses..............

=ADDRESS(MATCH(99^99,A:A),1) of last number

=LOOKUP(REPT("z",255),A:A) of last text entry


Gord Dibben MS Excel MVP

On Tue, 25 Mar 2008 14:17:20 -0000, "Lawman" wrote:

Thanks, it is exactly what I want. Weird though - and interestingly slightly
different from the other replies, which presumably also work.

I suppose I substitute 1:1 etc for last non-blank cell in a row.

H

"Pete_UK" wrote in message
...
This will give you the last numeric value that is not blank:

=LOOKUP(10E10,A:A)

Is that what you want?

Pete

On Mar 25, 1:48 pm, "Lawman" wrote:
In an expression, how do I refer to the last cell in a specified column
that
is not blank?

Thanks in advance.

H




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
Changing sheet reference to cell reference TeeJay Excel Worksheet Functions 3 October 19th 07 11:50 AM
Formulas that reference cells that reference another cell Andrea Excel Discussion (Misc queries) 7 October 19th 06 08:14 AM
absolute cell reference A spreadsheet cell reference that does no help Excel Discussion (Misc queries) 1 January 18th 06 06:56 PM
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. [email protected] Excel Worksheet Functions 2 December 11th 04 12:05 AM
Problem with =sum(offset(cell reference,w,x,y,z). I want cell reference to be variable [email protected] Excel Worksheet Functions 2 December 11th 04 12:00 AM


All times are GMT +1. The time now is 03:26 PM.

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"