Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
jeff m jeff m is offline
external usenet poster
 
Posts: 2
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   Report Post  
Posted to microsoft.public.word.tables
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
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   Report Post  
Posted to microsoft.public.word.tables
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
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   Report Post  
Posted to microsoft.public.word.tables
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
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   Report Post  
Posted to microsoft.public.word.tables
jeff m jeff m is offline
external usenet poster
 
Posts: 2
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


.

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
editing elapsed time shlomot Microsoft Word Help 2 February 11th 09 02:58 PM
Elapsed time shlomot Microsoft Word Help 0 February 11th 09 08:17 AM
Elapsed time format in Word table? Mike Burke Tables 3 April 13th 08 11:39 PM
Macro to calculate and insert number of elapsed years? JustSomeGuy Microsoft Word Help 7 July 17th 07 05:45 AM
Working With Elapsed Time In Word Table Fields HLD920 Tables 1 April 8th 06 03:13 AM


All times are GMT +1. The time now is 10:08 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"