Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Changing dates to a fiscal year

I am evaluating a column of dates and trying to assign each to a fiscal year.
I can't figure out what's wrong with this statement but it returns FY09 no
matter what date it is evaluating.

=IF(G11=7/1/8,"FY09",IF(G11=7/1/7,"FY08","PRIOR"))
--
twodots left
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Changing dates to a fiscal year

What is the 7/1/8 and 7/1/7 that you are testing G11 supposed to be...
dates??? Excel is seeing them a set of divisions (7 divided by 1 and that
result divided by 8 or 7 depending on which test we are talking about.

--
Rick (MVP - Excel)


"Twodot" wrote in message
...
I am evaluating a column of dates and trying to assign each to a fiscal
year.
I can't figure out what's wrong with this statement but it returns FY09 no
matter what date it is evaluating.

=IF(G11=7/1/8,"FY09",IF(G11=7/1/7,"FY08","PRIOR"))
--
twodots left


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default Changing dates to a fiscal year

Hello:

Excel things your dates are text so it will not compare. Use the following:
=IF(G11=DATEVALUE("07/01/08"),"FY09",IF(G11=DATEVALUE("07/01/07"),"FY08","PRIOR"))

Monika

"Twodot" wrote:

I am evaluating a column of dates and trying to assign each to a fiscal year.
I can't figure out what's wrong with this statement but it returns FY09 no
matter what date it is evaluating.

=IF(G11=7/1/8,"FY09",IF(G11=7/1/7,"FY08","PRIOR"))
--
twodots left

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Changing dates to a fiscal year

=LOOKUP(G11,{0,39264,39630},{"PRIOR","FY08","FY09" })


"Twodot" wrote:

I am evaluating a column of dates and trying to assign each to a fiscal year.
I can't figure out what's wrong with this statement but it returns FY09 no
matter what date it is evaluating.

=IF(G11=7/1/8,"FY09",IF(G11=7/1/7,"FY08","PRIOR"))
--
twodots left

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
Fiscal year calsulations for past to future dates. Nikki Excel Discussion (Misc queries) 6 April 7th 09 03:09 PM
Calculating Dates Within Fiscal Year Sam Excel Discussion (Misc queries) 2 June 11th 08 02:23 PM
Help dealing with a fiscal year rather than a calendar year Tyler Excel Worksheet Functions 3 August 25th 07 11:26 AM
Pivot Table: Change dates to fiscal year denhamlee Excel Worksheet Functions 1 April 3rd 07 06:56 PM
Pivot Table: Change dates to fiscal year denhamlee Excel Discussion (Misc queries) 1 April 3rd 07 06:54 PM


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