Comments on: Taming the Elusive “Calculated Column” – Date and Time – Part 1 http://www.endusersharepoint.com/2009/05/28/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-date-and-time-part-1/ No GeekSpeak on SharePoint 2007 WSS and MOSS Sat, 28 Aug 2010 12:55:31 -0400 http://wordpress.org/?v=2.8.6 hourly 1 By: jonny905 http://www.endusersharepoint.com/2009/05/28/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-date-and-time-part-1/comment-page-1/#comment-91406 jonny905 Thu, 05 Aug 2010 13:10:32 +0000 http://www.endusersharepoint.com/?p=1693#comment-91406 This formula is wicked awesome! I need just one small tweak. I have a 'Date Received' and a 'Date Completed' column. If the dates are the same, the above formula returns 1. Is there a way to calculate the difference and return a zero (0) when these two dates are the same? This formula is wicked awesome! I need just one small tweak. I have a ‘Date Received’ and a ‘Date Completed’ column. If the dates are the same, the above formula returns 1. Is there a way to calculate the difference and return a zero (0) when these two dates are the same?

]]>
By: Victor http://www.endusersharepoint.com/2009/05/28/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-date-and-time-part-1/comment-page-1/#comment-53123 Victor Wed, 07 Apr 2010 17:22:30 +0000 http://www.endusersharepoint.com/?p=1693#comment-53123 I guess my question is not that deep I have a simple formula in a issue list. =[Date Opened]-[Date closed] However ,if there is not a date close and the task is still active then the active view will show A large about of total days. What I'm looking to do is have it where if the date close is left open the user will see a blank or a " open ticket ". and if there is a date than it will follow through with the calulation. I guess my question is not that deep I have a simple formula in a issue list.
=[Date Opened]-[Date closed]
However ,if there is not a date close and the task is still active then the active view will show A large about of total days. What I’m looking to do is have it where if the date close is left open the user will see a blank or a ” open ticket “. and if there is a date than it will follow through with the calulation.

]]>
By: Nick Maxwell http://www.endusersharepoint.com/2009/05/28/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-date-and-time-part-1/comment-page-1/#comment-48685 Nick Maxwell Tue, 23 Mar 2010 12:30:08 +0000 http://www.endusersharepoint.com/?p=1693#comment-48685 Hi Is there anyway to use the formula with a tweak to allow for .5 days to also be accounted for? I am using this as a holiday calender and want to rule out weekends but calculate 0.5 days using the time of holiday part Hi Is there anyway to use the formula with a tweak to allow for .5 days to also be accounted for? I am using this as a holiday calender and want to rule out weekends but calculate 0.5 days using the time of holiday part

]]>
By: Daniel http://www.endusersharepoint.com/2009/05/28/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-date-and-time-part-1/comment-page-1/#comment-38683 Daniel Sat, 27 Feb 2010 16:08:38 +0000 http://www.endusersharepoint.com/?p=1693#comment-38683 I am trying to work around Sharepoint's limitation on use of 'TODAY' in calculation formulas and an apparent inability to deal with dynamic dates. I need to calculate the number of days left from the present (each day, i.e. the dynamic part) to a specific and static date (due date). Any clues on how to achieve this? Thanks. I am trying to work around Sharepoint’s limitation on use of ‘TODAY’ in calculation formulas and an apparent inability to deal with dynamic dates. I need to calculate the number of days left from the present (each day, i.e. the dynamic part) to a specific and static date (due date). Any clues on how to achieve this?

Thanks.

]]>
By: Dessie Lunsford http://www.endusersharepoint.com/2009/05/28/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-date-and-time-part-1/comment-page-1/#comment-25867 Dessie Lunsford Mon, 25 Jan 2010 17:54:00 +0000 http://www.endusersharepoint.com/?p=1693#comment-25867 shwetha, Times in SharePoint are stored in a serial number format that equates to a 24 hour format when viewed through calculations. There may be a few easier ways of doing what you need, but this formula will check to see what the value of the "HOUR" is and convert it appropriately depending on whether or not its less than, equal to, or greater than "12": [sourcecode lang="javascript"]=IF(HOUR([My Date])<12,TEXT(TIME(HOUR([My Date]),MINUTE([My Date]),SECOND([My Date])),"h:mm")&" AM",IF(HOUR([My Date])=12,TEXT(TIME(HOUR([My Date]),MINUTE([My Date]),SECOND(Start)),"h:mm")&" PM",TEXT(TIME(HOUR([My Date])-12,MINUTE([My Date]),SECOND([My Date])),"h:mm")&" PM"))[/sourcecode] Hopefully this will help, - Dessie shwetha,
Times in SharePoint are stored in a serial number format that equates to a 24 hour format when viewed through calculations.

There may be a few easier ways of doing what you need, but this formula will check to see what the value of the “HOUR” is and convert it appropriately depending on whether or not its less than, equal to, or greater than “12″:

=IF(HOUR([My Date])<12,TEXT(TIME(HOUR([My Date]),MINUTE([My Date]),SECOND([My Date])),"h:mm")&" AM",IF(HOUR([My Date])=12,TEXT(TIME(HOUR([My Date]),MINUTE([My Date]),SECOND(Start)),"h:mm")&" PM",TEXT(TIME(HOUR([My Date])-12,MINUTE([My Date]),SECOND([My Date])),"h:mm")&" PM"))

Hopefully this will help,

- Dessie

]]>
By: shwetha http://www.endusersharepoint.com/2009/05/28/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-date-and-time-part-1/comment-page-1/#comment-25793 shwetha Mon, 25 Jan 2010 06:08:10 +0000 http://www.endusersharepoint.com/?p=1693#comment-25793 is there any formula to get just the time part from date time in 12 hour format. I have used the following formula and getting time in 24 hour format. TEXT([My Date],"h:mm") any help on this is greatly appreciated. is there any formula to get just the time part from date time in 12 hour format. I have used the following formula and getting time in 24 hour format.
TEXT([My Date],”h:mm”)

any help on this is greatly appreciated.

]]>
By: Xene http://www.endusersharepoint.com/2009/05/28/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-date-and-time-part-1/comment-page-1/#comment-25581 Xene Sat, 23 Jan 2010 06:02:10 +0000 http://www.endusersharepoint.com/?p=1693#comment-25581 Dessie, Thanks for this series of articles. I've learned a lot by reading through them. I'm proud to say that I'm no longer afraid of the calculated column. I don't even have any 'real' Excel experience and I can still find my way with the help of your articles. Dessie, Thanks for this series of articles. I’ve learned a lot by reading through them. I’m proud to say that I’m no longer afraid of the calculated column. I don’t even have any ‘real’ Excel experience and I can still find my way with the help of your articles.

]]>
By: Iain Munro http://www.endusersharepoint.com/2009/05/28/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-date-and-time-part-1/comment-page-1/#comment-24081 Iain Munro Mon, 11 Jan 2010 15:00:55 +0000 http://www.endusersharepoint.com/?p=1693#comment-24081 Hi Dessie I have this working like a dream at the moment - but now have broken it. I also want to track half days, so have a half day choice where someone can either take the morning or afternoon off. How can I build this in so that the correct number of days show up. Iain Hi Dessie

I have this working like a dream at the moment – but now have broken it.

I also want to track half days, so have a half day choice where someone can either take the morning or afternoon off.

How can I build this in so that the correct number of days show up.

Iain

]]>
By: Taming the Elusive “Calculated Column” – Date and Time – Part 6 | End User SharePoint http://www.endusersharepoint.com/2009/05/28/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-date-and-time-part-1/comment-page-1/#comment-18051 Taming the Elusive “Calculated Column” – Date and Time – Part 6 | End User SharePoint Thu, 15 Oct 2009 06:13:21 +0000 http://www.endusersharepoint.com/?p=1693#comment-18051 [...] his continuing series, Taming the Elusive "Calculated Column" – Date and Time, Dessie explores using the date formula within separate [...] [...] his continuing series, Taming the Elusive "Calculated Column" – Date and Time, Dessie explores using the date formula within separate [...]

]]>
By: Jackie http://www.endusersharepoint.com/2009/05/28/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-date-and-time-part-1/comment-page-1/#comment-17771 Jackie Mon, 05 Oct 2009 20:50:49 +0000 http://www.endusersharepoint.com/?p=1693#comment-17771 Hi Dessie -- I was able to use this function, but unfortunately after 24 hrs I have to do some kind of refresh otherwise the field shows an error. Have you heard of this issue with calculated fields? Hi Dessie –

I was able to use this function, but unfortunately after 24 hrs I have to do some kind of refresh otherwise the field shows an error. Have you heard of this issue with calculated fields?

]]>