Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
pigsy101 pigsy101 is offline
external usenet poster
 
Posts: 3
Default Mail Marge Time formats

Hi All.

I have mergefield which contains the total duration of a number of
interactions which is stored as a decimal value

e.g. 21.75

this is 21.75 hours and i need a way to convert this to 21 hours and
45 minutes.

I can convert this to minutes (*60) to get 1305 minutes but still
canno work out how to get this to hours and minutes.

Any help is very gratefully accepted.

Thanks

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Mail Marge Time formats

You could use the following formulae

{= INT({ Mergefield MyTime })\# 0}hours and { =({ =MOD({ Mergefield
MyTime }, {= INT({ Mergefield MyTime })})} *60) \# 0 } minutes

All curly brackets are inserted with CTRL+F9.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



pigsy101 wrote:
Hi All.

I have mergefield which contains the total duration of a number of
interactions which is stored as a decimal value

e.g. 21.75

this is 21.75 hours and i need a way to convert this to 21 hours and
45 minutes.

I can convert this to minutes (*60) to get 1305 minutes but still
canno work out how to get this to hours and minutes.

Any help is very gratefully accepted.

Thanks



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Mail Marge Time formats

Hi pigsy101,

A pair offields coded as:
{=INT(«MyTime») \# 0} hours and {=MOD(«MyTime»,1)*60 \# 0} minutes
will do the job.

Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste
them from this message. Likwise, you can't type the chevrons (ie '« »') - they're part of the actual mergefields, which you can
insert from the mailmerge toolbar.

--
Cheers
macropod
[Microsoft MVP - Word]


"pigsy101" wrote in message ...
Hi All.

I have mergefield which contains the total duration of a number of
interactions which is stored as a decimal value

e.g. 21.75

this is 21.75 hours and i need a way to convert this to 21 hours and
45 minutes.

I can convert this to minutes (*60) to get 1305 minutes but still
canno work out how to get this to hours and minutes.

Any help is very gratefully accepted.

Thanks


  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
pigsy101 pigsy101 is offline
external usenet poster
 
Posts: 3
Default Mail Marge Time formats

On Aug 5, 12:48*pm, "Graham Mayor" wrote:
You could use the following formulae

{= INT({ Mergefield MyTime })\# 0}hours and { =({ =MOD({ Mergefield
MyTime }, {= INT({ Mergefield MyTime })})} *60) \# 0 } minutes

All curly brackets are inserted with CTRL+F9.

--

Graham Mayor - *Word MVP

My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org




pigsy101 wrote:
Hi All.


I have mergefield which contains the total duration of a number of
interactions which is stored as a decimal value


e.g. 21.75


this is 21.75 hours and i need a way to convert this to 21 hours and
45 minutes.


I can convert this to minutes (*60) to get 1305 minutes but still
canno work out how to get this to hours and minutes.


Any help is very gratefully accepted.


Thanks- Hide quoted text -


- Show quoted text -


Thank you so much,

this is perfect

Thanks for your help

  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
pigsy101 pigsy101 is offline
external usenet poster
 
Posts: 3
Default Mail Marge Time formats

On Aug 5, 1:17*pm, pigsy101 wrote:
On Aug 5, 12:48*pm, "Graham Mayor" wrote:





You could use the following formulae


{= INT({ Mergefield MyTime })\# 0}hours and { =({ =MOD({ Mergefield
MyTime }, {= INT({ Mergefield MyTime })})} *60) \# 0 } minutes


All curly brackets are inserted with CTRL+F9.


--

Graham Mayor - *Word MVP


My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org


pigsy101 wrote:
Hi All.


I have mergefield which contains the total duration of a number of
interactions which is stored as a decimal value


e.g. 21.75


this is 21.75 hours and i need a way to convert this to 21 hours and
45 minutes.


I can convert this to minutes (*60) to get 1305 minutes but still
canno work out how to get this to hours and minutes.


Any help is very gratefully accepted.


Thanks- Hide quoted text -


- Show quoted text -


Thank you so much,

this is perfect

Thanks for your help- Hide quoted text -

- Show quoted text -


HI I have implemented this into the word doc but i get a syntax error
until i manually update the fields.

Is there a way around this?

pigsy101
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
Mail Marge Staple & Collate? test123 Mailmerge 3 March 17th 08 09:39 PM
mail marge ajay New Users 1 February 23rd 08 11:12 PM
Mail Marge to printer doesn't print d2c Mailmerge 3 August 18th 06 09:27 PM
How do all mail marge using one unique document Ignacio Martín Mailmerge 1 June 24th 05 08:46 AM
Help With Time Formats When Doing A Mail Merge PLEASE nylebella Mailmerge 3 March 18th 05 03:09 AM


All times are GMT +1. The time now is 09:37 PM.

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"