Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Determing Value From Date


Hi

Is it possible to look up a value to apply in a formula based on a date
entered in a spreadsheet.

For example I enter a date in a cell A2 of 06/05/2006 I want this to be
used as a lookup of factors that are to be applied for each financial
year. In the case above this would be 2006 and a factor of 1.5

I have factors for 5 years from 2006 -2011 stored in another range of
spreadsheet.

Obviously I can do this with a lookup by entering every date and
allocating the appropriate factor - but is there a cleaner way of doing
this.

Thanks for any input :)


--
IanEmery
------------------------------------------------------------------------
IanEmery's Profile: http://www.excelforum.com/member.php...o&userid=35714
View this thread: http://www.excelforum.com/showthread...hreadid=562374

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Determing Value From Date


you should put sample data for better understanding of your requirement.


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=562374

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Determing Value From Date


you should put sample data for better understanding of your requirement.


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=562374

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Determing Value From Date

Either

=LOOKUP(YEAR(A1),{2006,2007,2008,2009,2010,2011},{ 1.5,2,2.5,3,3.5,4})


OR

2006 1.50
2007 2.00
2008 2.50
2009 3.00
2010 3.50
2011 4.00


=VLOOKUP(YEAR(A1),$C:$D,2,FALSE)

I prefer the latter as you can change the data without having to change the
formula.

HTH

"IanEmery" wrote:


Hi

Is it possible to look up a value to apply in a formula based on a date
entered in a spreadsheet.

For example I enter a date in a cell A2 of 06/05/2006 I want this to be
used as a lookup of factors that are to be applied for each financial
year. In the case above this would be 2006 and a factor of 1.5

I have factors for 5 years from 2006 -2011 stored in another range of
spreadsheet.

Obviously I can do this with a lookup by entering every date and
allocating the appropriate factor - but is there a cleaner way of doing
this.

Thanks for any input :)


--
IanEmery
------------------------------------------------------------------------
IanEmery's Profile: http://www.excelforum.com/member.php...o&userid=35714
View this thread: http://www.excelforum.com/showthread...hreadid=562374


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Determing Value From Date


Thanks for that - almost there.

However I need the look up to identify financial years not calendar
years.

Any suggestions ?

Many thanks for all your help


--
IanEmery
------------------------------------------------------------------------
IanEmery's Profile: http://www.excelforum.com/member.php...o&userid=35714
View this thread: http://www.excelforum.com/showthread...hreadid=562374



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Determing Value From Date


Thanks for that - almost there.

However I need the look up to identify financial years not calendar
years.

Any suggestions ?

Many thanks for all your help


--
IanEmery
------------------------------------------------------------------------
IanEmery's Profile: http://www.excelforum.com/member.php...o&userid=35714
View this thread: http://www.excelforum.com/showthread...hreadid=562374

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Determing Value From Date


Thanks for that - almost there.

However I need the look up to identify financial years not calendar
years.

Any suggestions ?

Many thanks for all your help


--
IanEmery
------------------------------------------------------------------------
IanEmery's Profile: http://www.excelforum.com/member.php...o&userid=35714
View this thread: http://www.excelforum.com/showthread...hreadid=562374

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 136
Default Determing Value From Date

Hello Ian,

take
=VLOOKUP(YEAR(A1)-(A1<DATE(YEAR(A1),4,1)),$C$1:$D$6,2,FALSE)

C1:D6:
2006 1.5
2007 2
2008 2.5
2009 3
2010 3.5
2011 4

Fiscal year 2006 is 1-Apr-2006 until 31-Mar-2007 here, right?

HTH,
Bernd

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
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Insert Automatic, Non-Updating Date Stamp Ken Zenachon Excel Discussion (Misc queries) 8 January 18th 06 06:52 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM


All times are GMT +1. The time now is 01:23 AM.

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"