Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...These forums are an excellent source and example of the way people can help each other..."

Geography

Where in the world do Tek-Tips members come from?
Cordeiro82 (MIS)
22 Mar 10 16:41
Hello All,

I am trying to create a calculated column using an existing column that contains dates.

The statement is as follows : IF([start date] > 6/30/2010, "FY11", "FY10")

However, sharepoint does not seem to be reading 6/30/2010 as a date and keeps giving me FY11 as the return value even if [start date] = 6/1/2010

How can I solve this problem?

Thanks.
Cordeiro82 (MIS)
22 Mar 10 16:47
nevermind. I answered my own question.

IF(([start date] > "6/30/2010"+0), "FY11", "FY10")
dinger2121 (Programmer)
23 Mar 10 8:05
try using the datevalue function -

=IF([start date]>DATEVALUE("6/30/2010"),"FY11","FY10")

If you create a calculated column and just set it as =[start date], I think you will see a serialized representation of the date (eg. 36,210).  You cannot do a comparison on that with "6/30/2010".  Instead, serialize your comparison data also using the datevalue function then compare.  

MS documentation - http://office.microsoft.com/en-us/sharepointtechnology/HA011609821033.aspx

Hope that helps.
 

carl
MCSD, MCTS:MOSS

Helpful Member!  Cordeiro82 (MIS)
23 Mar 10 12:52
Thanks Carl.

Both formulas ended up working in SharePoint.

I did later realize that the dates in the list spanned more than two fiscal years so I expanded the formula to fit any date range.

=IF(MONTH([start date])>=7,CONCATENATE("FY",(YEAR([start date])+1)),CONCATENATE("FY",YEAR([start date])))

 

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close