Date in mail merge

SanjayaGarg

New Member
Joined
Nov 10, 2017
Messages
24
Office Version
  1. 2013
Platform
  1. Windows
Dear all

I have a mail merge word document which fetches its data from excel sheet and shows date format correctly after adding switch <\@ "dd/MM/yyyy"> in date field of word documents. Now the problem arise when data is fetched from a cell where date is calculated,
e.g.
ABCD
1TENUREDOJDUE DATEFORMULA IN C2
24416-05-202029-06-2020=DATE(YEAR(B2),MONTH(B2),DAY(B2)+A2)

When date field is merged from C2, date is shown as numbers even after adding switches.

Can this be rectified.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try changing it to a text format.

Excel Formula:
=TEXT(C2,"DD-MM-YYYY")

Try changing it to a text format.

Excel Formula:
=TEXT(C2,"DD-MM-YYYY")

Try changing it to a text format.

Excel Formula:
=TEXT(C2,"DD-MM-YYYY")

Try changing it to a text format.

Excel Formula:
=TEXT(C2,"DD-MM-YYYY")
Dear Johnny, where to use this formula, in excel or mail merge document? In excel I am getting correct value. Problem is when it is fed in mail merge. Please clarify.
 
Upvote 0
Dear Johnny, where to use this formula, in excel or mail merge document? In excel I am getting correct value. Problem is when it is fed in mail merge. Please clarify.
Hi @SanjayaGarg
The formula would be in the Excel file. Then you would reference the column that the Text formula is in when you create your mail merge. The issue is that when the original date formula is referenced by the mail merge, Word will convert it to the number value (rather than the date).. By converting it to text, in Excel with the suggested formula, Word should recognize the Date as a Text, leaving it in the desired format that you are looking for.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top