#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Formula

I have a range of dates on one worksheet e.g 1 Jan 07 - 7 Jan 07 which equals
week 1, 8 Jan 07- 14 Jan 07 which equals week 2 as so on so that all 52 weeks
of the year are covered.

In another sheet I have a date e.g. 3 Jan 07. I want to lookup the range
above and return the value in the week column. Is there a formula that I can
use to do this?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Formula



"Funkyfido" wrote:

I have a range of dates on one worksheet e.g 1 Jan 07 - 7 Jan 07 which equals
week 1, 8 Jan 07- 14 Jan 07 which equals week 2 as so on so that all 52 weeks
of the year are covered.

In another sheet I have a date e.g. 3 Jan 07. I want to lookup the range
above and return the value in the week column. Is there a formula that I can
use to do this?

Thanks


I THINK YOU DO NOT REQUIRED ANY DATA BASE TO LOOK UP THE VALUE OF
DATE.THIS CAN BE SOLVE WITH THE HELP OF BELOW MENTIONED FORMULA.
IF CELL A1 CARRIES ANY DATE THEN THIS FORMULA WILL GIVE YOU WEEK NO.

=CONCATENATE("week"," ",INT((A1-39083)/7)+1)
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formula

No need to look it up - you can calculate it with this:

=INT((A2-DATEVALUE("1/1/2007"))/7)+1

if your date is in A2.

Hope this helps.

Pete


On May 3, 3:17 pm, Funkyfido
wrote:
I have a range of dates on one worksheet e.g 1 Jan 07 - 7 Jan 07 which equals
week 1, 8 Jan 07- 14 Jan 07 which equals week 2 as so on so that all 52 weeks
of the year are covered.

In another sheet I have a date e.g. 3 Jan 07. I want to lookup the range
above and return the value in the week column. Is there a formula that I can
use to do this?

Thanks



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



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