Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default Link to last non-blank cell in another worksheet

Worksheet 1 contains weekly data, for example cells A1 thru A4 contain dates,
the other cells are still blank :

1/3/07
1/10/07
1/17/07
1/24/07
<blank cell
<blank cell

What formula can I enter in a worksheet 2 cell to display the last date in
the list?

Thank you in advance for your help.

Shelly

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Link to last non-blank cell in another worksheet

If the dates are always increasing down the sheet (no chance of 1/3/07 ending
up at the bottom of that list) then
=MAX('Sheet1'!A:A) would do the trick, or if you have a good idea of the
maximum number of entries that may end up in column A on sheet 1, you can
limit it with something like (assuming you know there'll never be more than
366 dates entered)
=MAX('Sheet1'!A1:A366)


"Shelly" wrote:

Worksheet 1 contains weekly data, for example cells A1 thru A4 contain dates,
the other cells are still blank :

1/3/07
1/10/07
1/17/07
1/24/07
<blank cell
<blank cell

What formula can I enter in a worksheet 2 cell to display the last date in
the list?

Thank you in advance for your help.

Shelly

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Link to last non-blank cell in another worksheet

Shelly

If data is true dates.................

=LOOKUP(10^10,Sheet1!A:A) entered in a cell on Sheet2

If text dates try this one..................

=LOOKUP(2,1/(Sheet1!A1:A65535<""),Sheet1!A1:A65535)

which will fetch the last value regardless of type.

Note that you can't use A:A as a range in second formula.


Gord Dibben MS Excel MVP

On Thu, 19 Apr 2007 07:58:07 -0700, Shelly
wrote:

Worksheet 1 contains weekly data, for example cells A1 thru A4 contain dates,
the other cells are still blank :

1/3/07
1/10/07
1/17/07
1/24/07
<blank cell
<blank cell

What formula can I enter in a worksheet 2 cell to display the last date in
the list?

Thank you in advance for your help.

Shelly


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default Link to last non-blank cell in another worksheet

Thank you - it's exactly what I need. Thanks again!

"JLatham" wrote:

If the dates are always increasing down the sheet (no chance of 1/3/07 ending
up at the bottom of that list) then
=MAX('Sheet1'!A:A) would do the trick, or if you have a good idea of the
maximum number of entries that may end up in column A on sheet 1, you can
limit it with something like (assuming you know there'll never be more than
366 dates entered)
=MAX('Sheet1'!A1:A366)


"Shelly" wrote:

Worksheet 1 contains weekly data, for example cells A1 thru A4 contain dates,
the other cells are still blank :

1/3/07
1/10/07
1/17/07
1/24/07
<blank cell
<blank cell

What formula can I enter in a worksheet 2 cell to display the last date in
the list?

Thank you in advance for your help.

Shelly

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default Link to last non-blank cell in another worksheet

Thank you, too, Gord. This will come in very handy when the data type differs.

"Gord Dibben" wrote:

Shelly

If data is true dates.................

=LOOKUP(10^10,Sheet1!A:A) entered in a cell on Sheet2

If text dates try this one..................

=LOOKUP(2,1/(Sheet1!A1:A65535<""),Sheet1!A1:A65535)

which will fetch the last value regardless of type.

Note that you can't use A:A as a range in second formula.


Gord Dibben MS Excel MVP

On Thu, 19 Apr 2007 07:58:07 -0700, Shelly
wrote:

Worksheet 1 contains weekly data, for example cells A1 thru A4 contain dates,
the other cells are still blank :

1/3/07
1/10/07
1/17/07
1/24/07
<blank cell
<blank cell

What formula can I enter in a worksheet 2 cell to display the last date in
the list?

Thank you in advance for your help.

Shelly



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
Can you link a worksheet name into a cell? Brent Excel Discussion (Misc queries) 1 February 27th 07 06:01 PM
how do I generate a blank cell when I paste link; comes up - or 0 MitchP Excel Discussion (Misc queries) 3 July 22nd 05 07:09 PM
How can I link cell colours from worksheet to worksheet/workbook? Evelyn Excel Worksheet Functions 1 July 5th 05 09:16 PM
Why can't I link a cell from worksheet to another when it has an . FV Excel Worksheet Functions 0 April 7th 05 06:33 PM
Why am I unable to link a cell in one worksheet to a cell in anot. Dave Excel Discussion (Misc queries) 1 January 8th 05 01:51 AM


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