Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default calculate week difference

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 329
Default calculate week difference

Hi Haviv,

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

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

"haviv" wrote in message ...
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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default calculate week difference

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" wrote in message ...
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
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
how to calculate the difference between two bearings carmanah_bc Excel Worksheet Functions 2 May 8th 07 05:11 PM
how do i calculate the difference in time? Roze Excel Worksheet Functions 15 September 11th 06 08:36 AM
Calculate sales in the week by day ? Vass Excel Worksheet Functions 6 March 8th 06 04:50 PM
Calculate the difference between two times Buffgirl71 Excel Worksheet Functions 1 February 9th 06 10:10 PM
Calculate Week commencing JulesM Excel Discussion (Misc queries) 14 September 29th 05 01:59 AM


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