#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 358
Default Working with dates

I have 2 worksheets, one containing a summary to countdown while the other
contains 2 columns of the following (up to week 40):


Week Date
1 7-Jul
2 14-Jul
3 21-Jul
4 24-Jul
5 31-Jul

Is there a formula that i could use on a cell within the summary w'sheet
where it does a countdown to the planned dates as shown in table above? I.e.

If today is 4th July, the formula cell will display 3 days to countdown. If
today is 8th July (which means it has passed week 1), it will show 6 days to
countdown. With this formula, i'm trying to display the following text:

"You have 3 days left to Week 1 deadline"

The formula will basically be inserted where 3 is, while Week 1 will be
inserted based on the condition of the countdown (not displaying the Date
column but rather the Week column number).

Is this possible?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,327
Default Working with dates

I'm sure the array formula experts will have a far shorter solution, but
this should work:

="You hvave
"&INDEX(B1:B52;MATCH(VLOOKUP(TODAY();B1:B52;1;TRUE );B1:B52)+1)-TODAY()&"
days until deadline week
"&INDEX(A1:A52;MATCH(VLOOKUP(TODAY();B1:B52;1;TRUE );B1:B52)+1)

Error handling will lengthen it a lot (how much depending on excel version),
so I left that out. As is it needs a future date in B to work.

HTH. Best wishes Harald

"andrew" skrev i melding
...
I have 2 worksheets, one containing a summary to countdown while the other
contains 2 columns of the following (up to week 40):


Week Date
1 7-Jul
2 14-Jul
3 21-Jul
4 24-Jul
5 31-Jul

Is there a formula that i could use on a cell within the summary w'sheet
where it does a countdown to the planned dates as shown in table above?
I.e.

If today is 4th July, the formula cell will display 3 days to countdown.
If
today is 8th July (which means it has passed week 1), it will show 6 days
to
countdown. With this formula, i'm trying to display the following text:

"You have 3 days left to Week 1 deadline"

The formula will basically be inserted where 3 is, while Week 1 will be
inserted based on the condition of the countdown (not displaying the Date
column but rather the Week column number).

Is this possible?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Working with dates

Assuming your dates are in Sheet1, I would suggest that you insert a
new row 2, so that you have a table that looks like this:

Week Date
0 30-Jun
1 07-Jul
2 14-Jul
3 21-Jul
4 28-Jul

and so on. (Note, my dates are a bit different than yours !)

Then in your summary sheet you can put this formula:

="You have "&INDEX(Sheet1!B$2:B$42,MATCH(TODAY(),Sheet1!B$2:B $42)+1)-
TODAY()&" days left to Week "&MATCH(TODAY(),Sheet1!B$2:B$42)&"
deadline"

to give you what you want - this assumes dates down to row 42.

Hope this helps.

Pete



On Jul 4, 9:57*am, andrew wrote:
I have 2 worksheets, one containing a summary to countdown while the other
contains 2 columns of the following (up to week 40):

Week * *Date
1 * * * 7-Jul
2 * * * 14-Jul
3 * * * 21-Jul
4 * * * 24-Jul
5 * * * 31-Jul

Is there a formula that i could use on a cell within the summary w'sheet
where it does a countdown to the planned dates as shown in table above? I..e.

If today is 4th July, the formula cell will display 3 days to countdown. If
today is 8th July (which means it has passed week 1), it will show 6 days to
countdown. With this formula, i'm trying to display the following text:

"You have 3 days left to Week 1 deadline"

The formula will basically be inserted where 3 is, while Week 1 will be
inserted based on the condition of the countdown (not displaying the Date
column but rather the Week column number).

Is this possible?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 358
Default Working with dates

Almost there. What if i want just the number in BOLD while the rest of the
text remains in regular format?

"Pete_UK" wrote:

Assuming your dates are in Sheet1, I would suggest that you insert a
new row 2, so that you have a table that looks like this:

Week Date
0 30-Jun
1 07-Jul
2 14-Jul
3 21-Jul
4 28-Jul

and so on. (Note, my dates are a bit different than yours !)

Then in your summary sheet you can put this formula:

="You have "&INDEX(Sheet1!B$2:B$42,MATCH(TODAY(),Sheet1!B$2:B $42)+1)-
TODAY()&" days left to Week "&MATCH(TODAY(),Sheet1!B$2:B$42)&"
deadline"

to give you what you want - this assumes dates down to row 42.

Hope this helps.

Pete



On Jul 4, 9:57 am, andrew wrote:
I have 2 worksheets, one containing a summary to countdown while the other
contains 2 columns of the following (up to week 40):

Week Date
1 7-Jul
2 14-Jul
3 21-Jul
4 24-Jul
5 31-Jul

Is there a formula that i could use on a cell within the summary w'sheet
where it does a countdown to the planned dates as shown in table above? I..e.

If today is 4th July, the formula cell will display 3 days to countdown. If
today is 8th July (which means it has passed week 1), it will show 6 days to
countdown. With this formula, i'm trying to display the following text:

"You have 3 days left to Week 1 deadline"

The formula will basically be inserted where 3 is, while Week 1 will be
inserted based on the condition of the countdown (not displaying the Date
column but rather the Week column number).

Is this possible?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Working with dates

You won't be able to do that with a formula - you will need some VBA.

Pete

"andrew" wrote in message
...
Almost there. What if i want just the number in BOLD while the rest of the
text remains in regular format?

"Pete_UK" wrote:

Assuming your dates are in Sheet1, I would suggest that you insert a
new row 2, so that you have a table that looks like this:

Week Date
0 30-Jun
1 07-Jul
2 14-Jul
3 21-Jul
4 28-Jul

and so on. (Note, my dates are a bit different than yours !)

Then in your summary sheet you can put this formula:

="You have "&INDEX(Sheet1!B$2:B$42,MATCH(TODAY(),Sheet1!B$2:B $42)+1)-
TODAY()&" days left to Week "&MATCH(TODAY(),Sheet1!B$2:B$42)&"
deadline"

to give you what you want - this assumes dates down to row 42.

Hope this helps.

Pete



On Jul 4, 9:57 am, andrew wrote:
I have 2 worksheets, one containing a summary to countdown while the
other
contains 2 columns of the following (up to week 40):

Week Date
1 7-Jul
2 14-Jul
3 21-Jul
4 24-Jul
5 31-Jul

Is there a formula that i could use on a cell within the summary
w'sheet
where it does a countdown to the planned dates as shown in table above?
I..e.

If today is 4th July, the formula cell will display 3 days to
countdown. If
today is 8th July (which means it has passed week 1), it will show 6
days to
countdown. With this formula, i'm trying to display the following text:

"You have 3 days left to Week 1 deadline"

The formula will basically be inserted where 3 is, while Week 1 will be
inserted based on the condition of the countdown (not displaying the
Date
column but rather the Week column number).

Is this possible?







  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 358
Default Working with dates

Hi, the formula unfortunately is not working for the Week display now - its
showing Week 12 instead of Week 3 of the planned dates with corresponding
Week.

Any ideas?

"Pete_UK" wrote:

Assuming your dates are in Sheet1, I would suggest that you insert a
new row 2, so that you have a table that looks like this:

Week Date
0 30-Jun
1 07-Jul
2 14-Jul
3 21-Jul
4 28-Jul

and so on. (Note, my dates are a bit different than yours !)

Then in your summary sheet you can put this formula:

="You have "&INDEX(Sheet1!B$2:B$42,MATCH(TODAY(),Sheet1!B$2:B $42)+1)-
TODAY()&" days left to Week "&MATCH(TODAY(),Sheet1!B$2:B$42)&"
deadline"

to give you what you want - this assumes dates down to row 42.

Hope this helps.

Pete



On Jul 4, 9:57 am, andrew wrote:
I have 2 worksheets, one containing a summary to countdown while the other
contains 2 columns of the following (up to week 40):

Week Date
1 7-Jul
2 14-Jul
3 21-Jul
4 24-Jul
5 31-Jul

Is there a formula that i could use on a cell within the summary w'sheet
where it does a countdown to the planned dates as shown in table above? I..e.

If today is 4th July, the formula cell will display 3 days to countdown. If
today is 8th July (which means it has passed week 1), it will show 6 days to
countdown. With this formula, i'm trying to display the following text:

"You have 3 days left to Week 1 deadline"

The formula will basically be inserted where 3 is, while Week 1 will be
inserted based on the condition of the countdown (not displaying the Date
column but rather the Week column number).

Is this possible?



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
working with dates Jordan Excel Worksheet Functions 2 December 3rd 07 07:43 PM
Working with dates Harley Excel Discussion (Misc queries) 3 September 5th 07 08:07 AM
Working with dates Svetlana Excel Discussion (Misc queries) 2 June 16th 06 04:30 PM
working with dates Hru48 Excel Discussion (Misc queries) 2 January 31st 06 12:34 PM
Working with dates Sandy Excel Worksheet Functions 3 November 21st 05 07:23 PM


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

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"