Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Default IF Date Is between 2 Dates then output additional column

Hi Guys,

I'm struggling to wrap my head around an issue I'm having where basically I've got the below scenario on a spreadsheet:

Start Date - 14/03/2013 (Cell A2)

I want to look up this date against a 52 week structure to see where it is in our "working calendar year". I've got a table which has the following fields:

Week Start (Cell E2) - E.G 11/03/2013
Week End - (Cell F2) - E.G 18/03/2013
Week Title - (Cell G2) - Week 1

This table follows the same format for all 52 weeks.

Now in this example "Start Date" falls between the "Week Start" and "Week End" date so I want to output Week 1 in cell B2. However I could have a "Start Date" of 29/03/2013 that falls in week 3 of the working calendar.

Is there a way to do this? I can't seem to get my head around it.

Thanks Guys
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default Default IF Date Is between 2 Dates then output additional column

On Mon, 25 Mar 2013 22:14:19 +0000, BayEnder111 wrote:


Hi Guys,

I'm struggling to wrap my head around an issue I'm having where
basically I've got the below scenario on a spreadsheet:

Start Date - 14/03/2013 (Cell A2)

I want to look up this date against a 52 week structure to see where it
is in our "working calendar year". I've got a table which has the
following fields:

Week Start (Cell E2) - E.G 11/03/2013
Week End - (Cell F2) - E.G 18/03/2013
Week Title - (Cell G2) - Week 1

This table follows the same format for all 52 weeks.

Now in this example "Start Date" falls between the "Week Start" and
"Week End" date so I want to output Week 1 in cell B2. However I could
have a "Start Date" of 29/03/2013 that falls in week 3 of the working
calendar.

Is there a way to do this? I can't seem to get my head around it.

Thanks Guys


Why use a table? If I understand you correctly, you could use a simple formula:

="Week " & INT((A2-CalendarStart)/7)+1

Where CalendarStart is the first day of the first week in your "working calendar year"
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
Pick last date in a column if more than two similar dates MSSailor Excel Discussion (Misc queries) 2 March 14th 09 09:00 PM
Sum values in a range conditional upon dates and an additional fie Jay59874 Excel Worksheet Functions 7 December 12th 08 07:36 PM
Conditional Formatting (Dates) Repost with additional data BigH Excel Discussion (Misc queries) 1 January 29th 06 10:18 PM
Count if date is between two dates and value in another column equ mg_sv_r Excel Worksheet Functions 2 December 6th 05 02:31 PM
How do I retrieve a date in a column of dates which > my criteria HNOWSKI Excel Worksheet Functions 0 September 7th 05 07:26 AM


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