PC Review


Reply
Thread Tools Rate Thread

calculate week difference

 
 
haviv
Guest
Posts: n/a
 
      3rd Apr 2008
I have two cells container year and week number. They in format yyyyww.
Examples

cell 1 200712 ---> week 12 in 2007
cell 2 200813 ---> week 13 in 2008

What formula do I need to use to calculate the week differences between both
cells so i can get the week difference between them is 53 weeks or 12,25
months

--
Sincerely Yours
Haviv
 
Reply With Quote
 
 
 
 
macropod
Guest
Posts: n/a
 
      3rd Apr 2008
Hi Haviv,

Try:
=(INT(B1/100)-INT(A1/100))*52+MOD(B1,100)-MOD(A1,100)

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"haviv" <(E-Mail Removed)> wrote in message news:64599C8C-BF08-4D20-A52A-(E-Mail Removed)...
>I have two cells container year and week number. They in format yyyyww.
> Examples
>
> cell 1 200712 ---> week 12 in 2007
> cell 2 200813 ---> week 13 in 2008
>
> What formula do I need to use to calculate the week differences between both
> cells so i can get the week difference between them is 53 weeks or 12,25
> months
>
> --
> Sincerely Yours
> Haviv

 
Reply With Quote
 
haviv
Guest
Posts: n/a
 
      3rd Apr 2008
thanks
--
Sincerely Yours
Haviv


"macropod" wrote:

> Hi Haviv,
>
> Try:
> =(INT(B1/100)-INT(A1/100))*52+MOD(B1,100)-MOD(A1,100)
>
> Cheers
> --
> macropod
> [MVP - Microsoft Word]
> -------------------------
>
> "haviv" <(E-Mail Removed)> wrote in message news:64599C8C-BF08-4D20-A52A-(E-Mail Removed)...
> >I have two cells container year and week number. They in format yyyyww.
> > Examples
> >
> > cell 1 200712 ---> week 12 in 2007
> > cell 2 200813 ---> week 13 in 2008
> >
> > What formula do I need to use to calculate the week differences between both
> > cells so i can get the week difference between them is 53 weeks or 12,25
> > months
> >
> > --
> > Sincerely Yours
> > Haviv

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto calculate day of week to week of the year (not as serial) oftenconfused Microsoft Excel Misc 4 23rd Jun 2008 05:14 PM
Difference from previous week - report s4 Microsoft Access 13 20th Jan 2008 09:53 AM
Week numbers with a difference John Colling Microsoft Excel Worksheet Functions 1 8th Sep 2004 06:18 AM
Calculate first and last date of a week Hardy Wang Microsoft C# .NET 5 15th Nov 2003 08:24 AM
Re: Calculate End of Week Jean-Paul Viel Microsoft Excel Misc 1 3rd Sep 2003 04:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:42 PM.