Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default return financial period if value between 2 dates

I have the following table set up on sheet2
Periods Start End
1 1-Apr-06 20-Apr-06
2 21-Apr-06 18-May-06
3 19-May-06 15-Jun-06
etc.

On sheet 1, when the date is entered in Column A, I want a function in
Column B to show what financial period that date would be in.

i.e.
A B
05-10-2006 2

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default return financial period if value between 2 dates

One way ..

Sheet2's reference table as posted is assumed within A1:C4

In Sheet1,

Assume dates running in A2 down

Put in B2, array-enter (press CTRL+SHIFT+ENTER):
=INDEX(Sheet2!$A$2:$A$4,MATCH(1,(A2=Sheet2!$B$2:$ B$4)*(A2<=Sheet2!$C$2:$C$4),0))
Copy B2 down. Adapt the Sheet2 ranges to suit the extent of your actuals
before copy down.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"tmirelle" wrote:
I have the following table set up on sheet2
Periods Start End
1 1-Apr-06 20-Apr-06
2 21-Apr-06 18-May-06
3 19-May-06 15-Jun-06
etc.

On sheet 1, when the date is entered in Column A, I want a function in
Column B to show what financial period that date would be in.

i.e.
A B
05-10-2006 2

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default return financial period if value between 2 dates

I'm getting a value of #NA for all

"Max" wrote:

One way ..

Sheet2's reference table as posted is assumed within A1:C4

In Sheet1,

Assume dates running in A2 down

Put in B2, array-enter (press CTRL+SHIFT+ENTER):
=INDEX(Sheet2!$A$2:$A$4,MATCH(1,(A2=Sheet2!$B$2:$ B$4)*(A2<=Sheet2!$C$2:$C$4),0))
Copy B2 down. Adapt the Sheet2 ranges to suit the extent of your actuals
before copy down.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"tmirelle" wrote:
I have the following table set up on sheet2
Periods Start End
1 1-Apr-06 20-Apr-06
2 21-Apr-06 18-May-06
3 19-May-06 15-Jun-06
etc.

On sheet 1, when the date is entered in Column A, I want a function in
Column B to show what financial period that date would be in.

i.e.
A B
05-10-2006 2

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default return financial period if value between 2 dates

"tmirelle" wrote:
I'm getting a value of #NA for all


That's probably because you didn't "array-enter" the formula (press
CTRL+SHIFT+ENTER), as advised in my response. Go back and click inside the
formula bar for B2, then press CTRL+SHIFT+ENTER (instead of just pressing
ENTER) to confirm the formula. If you did it correctly, you'd see that Excel
wraps curly braces { } around the formula (see in the formula bar), and the
formula will work properly. With it properly entered in B2, copy down.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default return financial period if value between 2 dates

Thought I had... but it worked this time.

Thanks very much

"Max" wrote:

"tmirelle" wrote:
I'm getting a value of #NA for all


That's probably because you didn't "array-enter" the formula (press
CTRL+SHIFT+ENTER), as advised in my response. Go back and click inside the
formula bar for B2, then press CTRL+SHIFT+ENTER (instead of just pressing
ENTER) to confirm the formula. If you did it correctly, you'd see that Excel
wraps curly braces { } around the formula (see in the formula bar), and the
formula will work properly. With it properly entered in B2, copy down.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---



  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default return financial period if value between 2 dates

Welcome. Glad you got it working.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"tmirelle" wrote in message
...
Thought I had... but it worked this time.

Thanks very much



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default return financial period if value between 2 dates

Try this:

=INDEX(Sheet2!A2:A4,MATCH(Sheet1!A1,Sheet2!B2:B4,1 ))


"tmirelle" wrote:

I have the following table set up on sheet2
Periods Start End
1 1-Apr-06 20-Apr-06
2 21-Apr-06 18-May-06
3 19-May-06 15-Jun-06
etc.

On sheet 1, when the date is entered in Column A, I want a function in
Column B to show what financial period that date would be in.

i.e.
A B
05-10-2006 2

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
Lookup dates, fiscal period table DSCAVOTTO Excel Worksheet Functions 2 May 17th 06 05:35 PM
Counting dates greater than a certain time period [email protected] Excel Worksheet Functions 7 April 26th 06 11:25 PM
Period to Period percentage change? cs120 Excel Discussion (Misc queries) 1 September 18th 05 12:05 PM
I really need help! Changing work period start dates JLyons Excel Worksheet Functions 0 February 16th 05 01:19 PM
updaing dates in financial manager wizard L/P Excel Discussion (Misc queries) 0 January 7th 05 09:24 PM


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