Solved

MOSS Calculated Column - Days Hours Minutes SECONDS

Posted on 2010-09-02
1
778 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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