Extract year from date in calculated column

Hi,

I have a calculated column . I want to show only year from date of created column.  for example created date is 01/01/2015 , I need to show 2015 in calculated column.

How I can add condition for this column in view ?

do you see any better approach without using view ?

Thanks,


August 21st, 2015 9:45am

This would do it;

=IF(Created="","",""&YEAR(Created)) 

Are you asking how you'd filter by this in a view?

Free Windows Admin Tool Kit Click here and download it now
August 21st, 2015 11:29am

Hi ,

You can use calculated column and use the formula

RIGHT([Created],LEN([Created])-INT(FIND("/",[Created])))

August 21st, 2015 11:32am

Hi Nikhil0041,

Based on your description, you want to extract year from Created column.

Here are some suggestions:

  1. Click library settings.
  2. Choose the column you want to edit.
  3. Add the formula below to the formula section.

Formula=IF(Created="","",""& TEXT(Created,"yyyy"))

You can also use the formula provided by Jamie McAllister:

=IF(Created="","",""&YEAR(Created))

Best Regards,

Free Windows Admin Tool Kit Click here and download it now
August 24th, 2015 1:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics