#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Find Period Date?

Given a particular date, is there a way that I can distinguish what period it
falls between? I plan on a using an if function combined with another
formula.

What period is 9/1/2008? The answer should be Period 9.
Period 1 12/31/07 01/27/08
Period 2 01/28/08 02/24/08
Period 3 02/25/08 03/23/08
Period 4 03/24/08 04/20/08
Period 5 04/21/08 05/18/08
Period 6 05/19/08 06/15/08
Period 7 06/16/08 07/13/08
Period 8 07/14/08 08/10/08
Period 9 08/11/08 09/07/08
Period 10 09/08/08 10/05/08
Period 11 10/06/08 11/02/08
Period 12 11/03/08 11/30/08
Period 13 12/01/08 12/28/08

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Find Period Date?

Hi,

With the date you want to find the period for in D1

=INDEX(A1:A12,MATCH(1,INDEX((B1:B12<=D1)*(C1:C12= D1),),))

Mike

"MrRJ" wrote:

Given a particular date, is there a way that I can distinguish what period it
falls between? I plan on a using an if function combined with another
formula.

What period is 9/1/2008? The answer should be Period 9.
Period 1 12/31/07 01/27/08
Period 2 01/28/08 02/24/08
Period 3 02/25/08 03/23/08
Period 4 03/24/08 04/20/08
Period 5 04/21/08 05/18/08
Period 6 05/19/08 06/15/08
Period 7 06/16/08 07/13/08
Period 8 07/14/08 08/10/08
Period 9 08/11/08 09/07/08
Period 10 09/08/08 10/05/08
Period 11 10/06/08 11/02/08
Period 12 11/03/08 11/30/08
Period 13 12/01/08 12/28/08

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Find Period Date?

If you move the periods to the last column:

12/31/2007 1/27/2008 Period 1
1/28/2008 2/24/2008 Period 2
2/25/2008 3/23/2008 Period 3
3/24/2008 4/20/2008 Period 4
4/21/2008 5/18/2008 Period 5
5/19/2008 6/15/2008 Period 6
6/16/2008 7/13/2008 Period 7
7/14/2008 8/10/2008 Period 8
8/11/2008 9/7/2008 Period 9
9/8/2008 10/5/2008 Period 10
10/6/2008 11/2/2008 Period 11
11/3/2008 11/30/2008 Period 12
12/1/2008 12/28/2008 Period 13


Then VLOOKUP() can be used:

=VLOOKUP(DATEVALUE("9/1/2008"),A1:C13,3)

--
Gary''s Student - gsnu200816


"MrRJ" wrote:

Given a particular date, is there a way that I can distinguish what period it
falls between? I plan on a using an if function combined with another
formula.

What period is 9/1/2008? The answer should be Period 9.
Period 1 12/31/07 01/27/08
Period 2 01/28/08 02/24/08
Period 3 02/25/08 03/23/08
Period 4 03/24/08 04/20/08
Period 5 04/21/08 05/18/08
Period 6 05/19/08 06/15/08
Period 7 06/16/08 07/13/08
Period 8 07/14/08 08/10/08
Period 9 08/11/08 09/07/08
Period 10 09/08/08 10/05/08
Period 11 10/06/08 11/02/08
Period 12 11/03/08 11/30/08
Period 13 12/01/08 12/28/08

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Find Period Date?

Thanks Gary,
Have a nice holiday!

"Gary''s Student" wrote:

If you move the periods to the last column:

12/31/2007 1/27/2008 Period 1
1/28/2008 2/24/2008 Period 2
2/25/2008 3/23/2008 Period 3
3/24/2008 4/20/2008 Period 4
4/21/2008 5/18/2008 Period 5
5/19/2008 6/15/2008 Period 6
6/16/2008 7/13/2008 Period 7
7/14/2008 8/10/2008 Period 8
8/11/2008 9/7/2008 Period 9
9/8/2008 10/5/2008 Period 10
10/6/2008 11/2/2008 Period 11
11/3/2008 11/30/2008 Period 12
12/1/2008 12/28/2008 Period 13


Then VLOOKUP() can be used:

=VLOOKUP(DATEVALUE("9/1/2008"),A1:C13,3)

--
Gary''s Student - gsnu200816


"MrRJ" wrote:

Given a particular date, is there a way that I can distinguish what period it
falls between? I plan on a using an if function combined with another
formula.

What period is 9/1/2008? The answer should be Period 9.
Period 1 12/31/07 01/27/08
Period 2 01/28/08 02/24/08
Period 3 02/25/08 03/23/08
Period 4 03/24/08 04/20/08
Period 5 04/21/08 05/18/08
Period 6 05/19/08 06/15/08
Period 7 06/16/08 07/13/08
Period 8 07/14/08 08/10/08
Period 9 08/11/08 09/07/08
Period 10 09/08/08 10/05/08
Period 11 10/06/08 11/02/08
Period 12 11/03/08 11/30/08
Period 13 12/01/08 12/28/08

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Find Period Date?

Thanks Mike H.

Have a nice holiday!

"Mike H" wrote:

Hi,

With the date you want to find the period for in D1

=INDEX(A1:A12,MATCH(1,INDEX((B1:B12<=D1)*(C1:C12= D1),),))

Mike

"MrRJ" wrote:

Given a particular date, is there a way that I can distinguish what period it
falls between? I plan on a using an if function combined with another
formula.

What period is 9/1/2008? The answer should be Period 9.
Period 1 12/31/07 01/27/08
Period 2 01/28/08 02/24/08
Period 3 02/25/08 03/23/08
Period 4 03/24/08 04/20/08
Period 5 04/21/08 05/18/08
Period 6 05/19/08 06/15/08
Period 7 06/16/08 07/13/08
Period 8 07/14/08 08/10/08
Period 9 08/11/08 09/07/08
Period 10 09/08/08 10/05/08
Period 11 10/06/08 11/02/08
Period 12 11/03/08 11/30/08
Period 13 12/01/08 12/28/08



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Find Period Date?

Your welcome. What holiday?

"MrRJ" wrote:

Thanks Mike H.

Have a nice holiday!

"Mike H" wrote:

Hi,

With the date you want to find the period for in D1

=INDEX(A1:A12,MATCH(1,INDEX((B1:B12<=D1)*(C1:C12= D1),),))

Mike

"MrRJ" wrote:

Given a particular date, is there a way that I can distinguish what period it
falls between? I plan on a using an if function combined with another
formula.

What period is 9/1/2008? The answer should be Period 9.
Period 1 12/31/07 01/27/08
Period 2 01/28/08 02/24/08
Period 3 02/25/08 03/23/08
Period 4 03/24/08 04/20/08
Period 5 04/21/08 05/18/08
Period 6 05/19/08 06/15/08
Period 7 06/16/08 07/13/08
Period 8 07/14/08 08/10/08
Period 9 08/11/08 09/07/08
Period 10 09/08/08 10/05/08
Period 11 10/06/08 11/02/08
Period 12 11/03/08 11/30/08
Period 13 12/01/08 12/28/08

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
Assign period to date based on rules. Sebastian Excel Worksheet Functions 0 January 30th 08 04:37 PM
Calculate a date based on period and year Sam Excel Worksheet Functions 5 August 27th 07 07:11 AM
Period to date snapshot Excel Discussion (Misc queries) 1 July 23rd 07 06:33 PM
Match name and Date Period for % aggregate sum over the periods Excel Discussion (Misc queries) 2 June 13th 07 09:23 AM
Sum column based on value in each row, if two cells equal, or if date is within time period [email protected] Excel Worksheet Functions 8 September 25th 06 02:40 PM


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