LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Tie a Calendar week to a Scoped Projected Week

Hi All!

Hoping someone can help me with this problem. What I want to do is
define a Scoped Project Week which won't or doesn't necessarily follow
a calendar week. Our qa projects are of short duration, 6 to 10 weeks,
so our week 1 could be any week in a calendar year. This is part of
an Excel template the entire team will use, the data is exported data
from Access (which I know very little about). The weeks are needed to
chart inflow/outflow of defects for a dashboard summary.
EX:
Col A B G H
Start Date End Date Start Proj Week End Proj Week
9/1/2006 9/10/2006 Week1 Week2
9/13/2006 9/20/2006 Week2 Week3
9/20/2006 9/20/2006 Week3 Week3
9/30/2006 10/16/2006 Week4 Week6


Using the function from Chip P. web site (TY Chip) I managed to get
this far, but am limited by the 7 nested If statements:

=IF(TRUNC(((Start_Date-DATE(YEAR(Start_Date),1,0))+6)/7)<=36,"Week1") -
For some reason I have to start with this function in Cell G2 to
start., not sure why.
=IF(TRUNC(((Start_Date-DATE(YEAR(Start_Date),1,0))+6)/7)=36,"Week1",IF(TRUNC(((Start_Date-DATE(YEAR(Start_Date),1,0))+6)/7)=37,"Week2",IF(TRUNC(((Start_Date-DATE(YEAR(Start_Date),1,0))+6)/7)=38,"Week3",IF(TRUNC(((Start_Date-DATE(YEAR(Start_Date),1,0))+6)/7)=39,"Week4",IF(TRUNC(((Start_Date-DATE(YEAR(Start_Date),1,0))+6)/7)=40,"Week5")))))

=IF(TRUNC(((Start_Date-DATE(YEAR(Start_Date),1,0))+6)/7)=41,"Week6",IF(TRUNC(((Start_Date-DATE(YEAR(Start_Date),1,0))+6)/7)=42,"Week7",IF(TRUNC(((Start_Date-DATE(YEAR(Start_Date),1,0))+6)/7)=43,"Week8",IF(TRUNC(((Start_Date-DATE(YEAR(Start_Date),1,0))+6)/7)=44,"Week9",IF(TRUNC(((Start_Date-DATE(YEAR(Start_Date),1,0))+6)/7)=45,"Week10")))))

Is there an easier way to write it without using nested IF statements
to cover the entire 10 to 12 week project?

Thank you in advance!

 
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
Macro to copy cells to rows below [email protected] Excel Discussion (Misc queries) 1 January 20th 06 06:59 PM
Macro to insert copied cells [email protected] Excel Discussion (Misc queries) 17 January 18th 06 10:40 AM
Calendar Template with week numbers Deej Excel Discussion (Misc queries) 1 October 24th 05 06:26 PM
user defined function Brian Rogge Excel Worksheet Functions 5 May 23rd 05 06:21 PM
Convert week number into calendar month? WickyWick Excel Worksheet Functions 2 November 9th 04 09:01 PM


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