Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Holly
 
Posts: n/a
Default IF then with merged date field from excel

I would like to use an IF statement for a merged field but cannot seem to get
it right.

I would like to say
IF DATE_OF_HIRE is 1/1/05 then 01/01/2005 else use the data thats in the
DATE_OF_HIRE field

Help - I dont have much hair left
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor
 
Posts: n/a
Default IF then with merged date field from excel

See http://www.gmayor.com/formatting_word_fields.htm

{IF {Mergefield Date_of_Hire \@ "yyyyMMdd"} 20050101 "01/01/2005"
"{Mergefield Date_Of_Hire \@ "MM/dd/yyyy"}"}

Change the last mask if you are not using a US date pattern.

--

Graham Mayor - Word MVP

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



Holly wrote:
I would like to use an IF statement for a merged field but cannot
seem to get it right.

I would like to say
IF DATE_OF_HIRE is 1/1/05 then 01/01/2005 else use the data thats
in the DATE_OF_HIRE field

Help - I dont have much hair left



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Holly
 
Posts: n/a
Default IF then with merged date field from excel

Thank You!

"Graham Mayor" wrote:

See http://www.gmayor.com/formatting_word_fields.htm

{IF {Mergefield Date_of_Hire \@ "yyyyMMdd"} 20050101 "01/01/2005"
"{Mergefield Date_Of_Hire \@ "MM/dd/yyyy"}"}

Change the last mask if you are not using a US date pattern.

--

Graham Mayor - Word MVP

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



Holly wrote:
I would like to use an IF statement for a merged field but cannot
seem to get it right.

I would like to say
IF DATE_OF_HIRE is 1/1/05 then 01/01/2005 else use the data thats
in the DATE_OF_HIRE field

Help - I dont have much hair left




  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor
 
Posts: n/a
Default IF then with merged date field from excel

You are welcome.

--

Graham Mayor - Word MVP

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


Holly wrote:
Thank You!

"Graham Mayor" wrote:

See http://www.gmayor.com/formatting_word_fields.htm

{IF {Mergefield Date_of_Hire \@ "yyyyMMdd"} 20050101 "01/01/2005"
"{Mergefield Date_Of_Hire \@ "MM/dd/yyyy"}"}

Change the last mask if you are not using a US date pattern.

--

Graham Mayor - Word MVP

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



Holly wrote:
I would like to use an IF statement for a merged field but cannot
seem to get it right.

I would like to say
IF DATE_OF_HIRE is 1/1/05 then 01/01/2005 else use the data thats
in the DATE_OF_HIRE field

Help - I dont have much hair left



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 Merge document and Date field niv Mailmerge 3 November 22nd 05 08:50 PM
How to correct too much decimals and date if merged from Excel? Stefanus Mailmerge 1 July 15th 05 08:00 PM
Turn off "automatically update" date field after merged? cbeck29483 Mailmerge 7 May 3rd 05 07:39 PM
How to prevent Merged Date Field showing time? jmasood Mailmerge 1 February 21st 05 11:59 AM
Date issue merging from Excel field in Date format to Word Barb Reinhardt Mailmerge 1 December 17th 04 07:34 AM


All times are GMT +1. The time now is 04:33 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"