Solved

MOSS Calculated Column - Days Hours Minutes SECONDS

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cloud / Hybrid file storage & collaboration 5 67
User Profile Issue in SHarePoint 9 45
Use SP.SOD.executeFunc in SharePoint Online Add-In 2 38
Sharepoint 2010 Audit Logs 11 84
The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now