Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ASI ASI is offline
external usenet poster
 
Posts: 2
Default # of weeks left based upon a date?

Is it possible to create a formula to tell me how many weeks are left within
a time frame if the dates are not in the same year?

Example:
12/01/07 to 11/30/08 (timeframe)
06/15/08 (date)
How many weeks are left from 06/15/08 until 11/30/08?

--
Thanks, Melanie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default # of weeks left based upon a date?

On Tue, 13 Nov 2007 16:34:01 -0800, ASI wrote:

Is it possible to create a formula to tell me how many weeks are left within
a time frame if the dates are not in the same year?

Example:
12/01/07 to 11/30/08 (timeframe)
06/15/08 (date)
How many weeks are left from 06/15/08 until 11/30/08?


A1: 12/01/07
A2: 11/30/08

B1: 6/15/08

Weeks left: =(A2-B1)/7

Format as number.

If you want whole weeks, either ROUND or TRUNCATE depending on what you want to
do with fractional weeks.
--ron
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default # of weeks left based upon a date?

Hi,

This may be a bit excessive but try this:

=ROUND(DATEDIF(A1,A2,"d")/7,0) &" weeks
"&DATEDIF(A1,A2,"d")-ROUND(DATEDIF(A1,A2,"d")/7,0)*7&" days"

HTH
Jean-Guy

"ASI" wrote:

Is it possible to create a formula to tell me how many weeks are left within
a time frame if the dates are not in the same year?

Example:
12/01/07 to 11/30/08 (timeframe)
06/15/08 (date)
How many weeks are left from 06/15/08 until 11/30/08?

--
Thanks, Melanie

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default # of weeks left based upon a date?

hi
subtracting one date from another (and formated as number) gives the number
of days between the dates. after that you just divide by 7 to get weeks.
if A1 =6/15/08 and A2 = 11/30/08 then the formula would be
=(A2-A1)/7 = 24 weeks remaining. format as number.

regards
FSt1

"ASI" wrote:

Is it possible to create a formula to tell me how many weeks are left within
a time frame if the dates are not in the same year?

Example:
12/01/07 to 11/30/08 (timeframe)
06/15/08 (date)
How many weeks are left from 06/15/08 until 11/30/08?

--
Thanks, Melanie

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default # of weeks left based upon a date?

What does DATEDIF(A1,A2,"d") do for you that A2-A1 wouldn't (apart from
rounding down to an integer)?

Also, are you sure that you want to round the number of days/7 to the
nearest integer, rather than rounding down? Have you tried your formula
with a 4 day difference, for example?

Perhaps =INT((A2-A1)/7)&" weeks "&INT(MOD(A2-A1,7))&" days" ?
[The second INT function isn't necessary if we know that A1 and A2 contain
only dates, not date and time combinations.]
--
David Biddulph

"pinmaster" wrote in message
...
Hi,

This may be a bit excessive but try this:

=ROUND(DATEDIF(A1,A2,"d")/7,0) &" weeks
"&DATEDIF(A1,A2,"d")-ROUND(DATEDIF(A1,A2,"d")/7,0)*7&" days"

HTH
Jean-Guy

"ASI" wrote:

Is it possible to create a formula to tell me how many weeks are left
within
a time frame if the dates are not in the same year?

Example:
12/01/07 to 11/30/08 (timeframe)
06/15/08 (date)
How many weeks are left from 06/15/08 until 11/30/08?

--
Thanks, Melanie





  #6   Report Post  
Posted to microsoft.public.excel.misc
ASI ASI is offline
external usenet poster
 
Posts: 2
Default # of weeks left based upon a date?

Thanks! Seems to working.
--



"ASI" wrote:

Is it possible to create a formula to tell me how many weeks are left within
a time frame if the dates are not in the same year?

Example:
12/01/07 to 11/30/08 (timeframe)
06/15/08 (date)
How many weeks are left from 06/15/08 until 11/30/08?

--
Thanks, Melanie

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
ADD WEEKS TO A DATE SSJ New Users to Excel 3 April 4th 23 02:25 PM
Weeks left in a Fiscal year plys Excel Discussion (Misc queries) 1 November 24th 06 03:47 PM
SUMMARIZING DATA BASED ON DATES GROUPED IN WEEKS SSJ New Users to Excel 6 October 12th 06 11:46 PM
Date 13 Weeks from now Craig Excel Worksheet Functions 3 July 15th 06 11:35 PM
calculate weeks from a start date ( not yr weeks) Todd F. Excel Worksheet Functions 6 November 27th 04 05:53 PM


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