EXCEL VERSION
Excel 2013 (15.0.4631.1000)
BACK STORY
I create weekly reports, reporting activity based on a 'Week number' defined by a custom year. Custom year = 01 SEP - 31 AUG. Each week within this custom year is defined by a week per row in a named table. E.g. Monday 02/09/2013- Sunday 08/09/2013. The row lists the week start date (Monday), end (Sunday) and defined 'Week number'.
As I have many worksheets with various data sets, all data has to have a column = week number.
WHAT I'VE DONE SO FAR
I've seen 2 approaches to this. One is to use a modular formula, the other using the following INDEX and nested IF formulas.
For example:
=INDEX(B3,MATCH(A6:C10),IF((A3)>(A6:A10)),IF((A3)<(B6:B10)),1,0)
WHERE THE CHALLENGE LIES
I am trying to figure out a modulo (or index) formula where the following user entry of a date automatically populates the corresponding 'week number'.
It is apparent I've made a botch job of the above attempt. As a result, it'd be great to get some assistance if possible!
EXAMPLE DATASET
[TABLE="width: 500"]
<tbody>[TR]
[TH]1[/TH]
[TH]A[/TH]
[TH]B[/TH]
[TH]C[/TH]
[/TR]
[TR]
[TD]2[/TD]
[TD]USER ENTRY DATE[/TD]
[TD]WK[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]12/09/2013[/TD]
[TD] <formula result="" e.g="" wk="" no="2"></formula>[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]WK START[/TD]
[TD]WK END[/TD]
[TD]WK NO[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]02/09/2013[/TD]
[TD]08/09/2013[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]09/09/2013[/TD]
[TD]15/09/2013[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]16/09/2013[/TD]
[TD]22/09/2013[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]23/09/2013[/TD]
[TD]29/09/2013[/TD]
[/TR]
</tbody>[/TABLE]
Excel 2013 (15.0.4631.1000)
BACK STORY
I create weekly reports, reporting activity based on a 'Week number' defined by a custom year. Custom year = 01 SEP - 31 AUG. Each week within this custom year is defined by a week per row in a named table. E.g. Monday 02/09/2013- Sunday 08/09/2013. The row lists the week start date (Monday), end (Sunday) and defined 'Week number'.
As I have many worksheets with various data sets, all data has to have a column = week number.
WHAT I'VE DONE SO FAR
I've seen 2 approaches to this. One is to use a modular formula, the other using the following INDEX and nested IF formulas.
For example:
=INDEX(B3,MATCH(A6:C10),IF((A3)>(A6:A10)),IF((A3)<(B6:B10)),1,0)
WHERE THE CHALLENGE LIES
I am trying to figure out a modulo (or index) formula where the following user entry of a date automatically populates the corresponding 'week number'.
It is apparent I've made a botch job of the above attempt. As a result, it'd be great to get some assistance if possible!
EXAMPLE DATASET
[TABLE="width: 500"]
<tbody>[TR]
[TH]1[/TH]
[TH]A[/TH]
[TH]B[/TH]
[TH]C[/TH]
[/TR]
[TR]
[TD]2[/TD]
[TD]USER ENTRY DATE[/TD]
[TD]WK[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]12/09/2013[/TD]
[TD] <formula result="" e.g="" wk="" no="2"></formula>[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]WK START[/TD]
[TD]WK END[/TD]
[TD]WK NO[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]02/09/2013[/TD]
[TD]08/09/2013[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]09/09/2013[/TD]
[TD]15/09/2013[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]16/09/2013[/TD]
[TD]22/09/2013[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]23/09/2013[/TD]
[TD]29/09/2013[/TD]
[/TR]
</tbody>[/TABLE]