?
Solved

MOSS Calculated Column - Days Hours Minutes SECONDS

Posted on 2010-09-02
1
Medium Priority
?
790 Views
Last Modified: 2012-05-10
I used the calculation shown in the solution here:

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_21867058.html

=INT(B1-A1)&"days "&INT(MOD(B1-A1,1)*24)&"hrs "&INT(MOD(MOD(B1-A1,1)*24,1)*60)&"mins"

That works great, but I would like to add the seconds on to it.  The fields I am calculating are values from an InfoPath form.
0
Comment
Question by:melli111
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
melli111 earned 0 total points
ID: 33588127
I just added this:

&SECOND(B1-A1)&" seconds"  

so the whole thing is:

=INT(B1-A1)&" days "&INT(MOD(B1-A1,1)*24)&" hrs "&INT(MOD(MOD(B1-A1,1)*24,1)*60)&" mins "&SECOND(B1-A1)&" seconds"
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question