A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculate elapsed time in Word table?



 
 
Thread Tools Display Modes
  #1  
Old April 12th, 2010, 08:32 PM posted to microsoft.public.word.tables
Jeff M
external usenet poster
 
Posts: 8
Default Calculate elapsed time in Word table?

Hello. Is there a relatively easy way to have a formula in one cell show the
product of subracting the time in cell B minus cell A? I know how to do this
in Excel but would appreciate guidance about doing this in Word 2007.
Thanks!
--
Jeff Matranga
  #2  
Old April 12th, 2010, 10:00 PM posted to microsoft.public.word.tables
macropod[_2_]
external usenet poster
 
Posts: 2,402
Default Calculate elapsed time in Word table?

Hi Jeff,

Yes, provided you've only got one calculation to do. The formula is far from simple though! To see what I mean, check out my
Microsoft Word Date Calculation Tutorial, at:
http://lounge.windowssecrets.com/ind...owtopic=249902
or
http://www.gmayor.com/downloads.htm#Third_party
In particular, look at the item titled 'Add Or Subtract Two Time Periods'. Do read the document's introductory material.

--
Cheers
macropod
[Microsoft MVP - Word]


"jeff m" wrote in message ...
Hello. Is there a relatively easy way to have a formula in one cell show the
product of subracting the time in cell B minus cell A? I know how to do this
in Excel but would appreciate guidance about doing this in Word 2007.
Thanks!
--
Jeff Matranga


  #3  
Old April 12th, 2010, 10:36 PM posted to microsoft.public.word.tables
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Calculate elapsed time in Word table?

The easiest thing would be to insert an Excel spreadsheet into the Word
document.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"jeff m" wrote in message
...
Hello. Is there a relatively easy way to have a formula in one cell show
the
product of subracting the time in cell B minus cell A? I know how to do
this
in Excel but would appreciate guidance about doing this in Word 2007.
Thanks!
--
Jeff Matranga


  #4  
Old April 13th, 2010, 05:44 AM posted to microsoft.public.word.tables
macropod[_2_]
external usenet poster
 
Posts: 2,402
Default Calculate elapsed time in Word table?

Or using text formfields, with the document protected for forms, and an 'on exit' macro to do the calculation and insert the result
into the required cell (eg via another formfield). A suitable 'on exit' macro might look like:
Sub TimeDiff()
With ActiveDocument
.FormFields("Text3").Result = _
Format(CDate(.FormFields("Text1").Result) - CDate(.FormFields("Text2").Result), "HH:mm")
End With
End Sub

--
Cheers
macropod
[Microsoft MVP - Word]


"Doug Robbins - Word MVP" wrote in message ...
The easiest thing would be to insert an Excel spreadsheet into the Word document.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"jeff m" wrote in message ...
Hello. Is there a relatively easy way to have a formula in one cell show the
product of subracting the time in cell B minus cell A? I know how to do this
in Excel but would appreciate guidance about doing this in Word 2007.
Thanks!
--
Jeff Matranga



  #5  
Old April 14th, 2010, 12:51 PM posted to microsoft.public.word.tables
Jeff M
external usenet poster
 
Posts: 8
Default Calculate elapsed time in Word table?

Thank you, everyone! Jeff
--
Jeff Matranga


"macropod" wrote:

Hi Jeff,

Yes, provided you've only got one calculation to do. The formula is far from simple though! To see what I mean, check out my
Microsoft Word Date Calculation Tutorial, at:
http://lounge.windowssecrets.com/ind...owtopic=249902
or
http://www.gmayor.com/downloads.htm#Third_party
In particular, look at the item titled 'Add Or Subtract Two Time Periods'. Do read the document's introductory material.

--
Cheers
macropod
[Microsoft MVP - Word]


"jeff m" wrote in message ...
Hello. Is there a relatively easy way to have a formula in one cell show the
product of subracting the time in cell B minus cell A? I know how to do this
in Excel but would appreciate guidance about doing this in Word 2007.
Thanks!
--
Jeff Matranga


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.