Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
LACA
 
Posts: n/a
Default Last cell of data in a column


I have a file with several worksheets, each of which contains a
different concert tour schedule. Each schedule is different from the
other in terms of number of show dates. Column A contains the
individual dates. Cell A1 contains the formula "=TODAY()", and cell A2
contains the very first date of each tour.

What I need to do is write a formula in cell B1 that compares cell A1
(today's date) with the first and last date of each schedule.

- If the first date (cell A2) is a future date, cell B1 should display
"Future".
- If the first date has passed but the last date is a future date, cell
B1 should display "Current".
- If the last date has passed, cell B1 should display "Completed".

What I don't know how to do (if this is even possible) is come up with
a formula that looks to the last cell of data in column A. I can "hard
code" it after I input the schedule, but since each schedule is
different (one tour may have 25 dates, another only 8), I would have to
change the formula each time.

Hopefully I am being clear -- can this be done?


--
LACA
------------------------------------------------------------------------
LACA's Profile: http://www.excelforum.com/member.php...o&userid=30381
View this thread: http://www.excelforum.com/showthread...hreadid=502190

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Last cell of data in a column

B2:
=IF(A2A1,"Future",IF(INDEX(A:A,MATCH(9.9999999999 9999E+307,A:A))TODAY(),"C
urrent","Completed"))

--

HTH

RP

"LACA" wrote in message
...

I have a file with several worksheets, each of which contains a
different concert tour schedule. Each schedule is different from the
other in terms of number of show dates. Column A contains the
individual dates. Cell A1 contains the formula "=TODAY()", and cell A2
contains the very first date of each tour.

What I need to do is write a formula in cell B1 that compares cell A1
(today's date) with the first and last date of each schedule.

- If the first date (cell A2) is a future date, cell B1 should display
"Future".
- If the first date has passed but the last date is a future date, cell
B1 should display "Current".
- If the last date has passed, cell B1 should display "Completed".

What I don't know how to do (if this is even possible) is come up with
a formula that looks to the last cell of data in column A. I can "hard
code" it after I input the schedule, but since each schedule is
different (one tour may have 25 dates, another only 8), I would have to
change the formula each time.

Hopefully I am being clear -- can this be done?


--
LACA
------------------------------------------------------------------------
LACA's Profile:

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



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
run a macro in a locked cell Ray Excel Discussion (Misc queries) 8 January 10th 06 12:02 AM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM


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