Hi, I am a Microsoft user just like yourself and I will try my best to help you as much as I can today.

Step 1: Insert Merge Field Begin your mail merge as usual and insert the merge field where you want the number to appear. For example, insert the merge field by going to 'Insert' > 'Quick Parts' > 'Field...', then choose 'MergeField' and type in the name of your data field.

Step 2: Toggle Field Codes Right-click the merge field and select 'Toggle Field Codes' or press Alt + F9. This will change the display from the field result to the field code, which should look something like this: { MERGEFIELD MyNumber }.

Step 3: Edit Field Code for Formatting Add a numeric picture switch to format your number. Right-click the field code you just inserted and choose 'Edit Field…'. Add # "#,##0" at the end of the merge field code. It will look like this: { MERGEFIELD MyNumber # "#,##0" }. Unfortunately, the above code won't directly create the format you want because it's designed for Western numbering formats.

Step 4: Use a VBA Macro for Indian Number Format (Optional) To get the Indian numbering format (with lakhs and crores), you would need to use a VBA macro, as the built-in field codes do not support this format. Press Alt + F11 to open the VBA editor, insert a new module, and write a function to format the number according to the Indian numbering system. Here is a sample VBA function for custom Indian number formatting:

Function IndianCurrencyFormat(ByVal MyNumber) Dim Crores, Lakhs, Thousands, Hundreds, Temp Dim DecimalPlace, Count

ReDim Place(9) As String Place(2) = " Thousand " Place(4) = " Lakh " Place(6) = " Crore "

' Convert MyNumber to a string, trimming extra spaces. MyNumber = Trim(Str(MyNumber))

' Find the decimal place. DecimalPlace = InStr(MyNumber, ".") ' If we find decimal place... If DecimalPlace > 0 Then ' Convert the decimal portion of MyNumber to Cents. Temp = Left(Mid(MyNumber, DecimalPlace + 1) & "00", 2) ' Strip off the decimal portion. MyNumber = Trim(Left(MyNumber, DecimalPlace - 1)) End If

Count = 1 Do While MyNumber <> "" Temp = Right(MyNumber, 2) If Count <> 1 Then Temp = Right(MyNumber, 3) End If If Temp <> "00" Then Hundreds = Hundreds + CInt(Temp) If Count = 1 Then Temp = Temp & Place(Count) & Hundreds Else Temp = Temp & Place(Count) End If Crores = Temp & Crores End If If Count = 1 Then MyNumber = Left(MyNumber, Len(MyNumber) - 2) Else MyNumber = Left(MyNumber, Len(MyNumber) - 3) End If If MyNumber = "" Then Hundreds = "" End If Count = Count + 2 Loop

IndianCurrencyFormat = Crores End Function

Step 5: Call the VBA Function in Your Merge Field If you use the VBA macro, you need to call the macro for each number you want to format. You'll need to use the { SET } field to store the number and then call the macro with a { DOCVARIABLE } field.  Alternatively, you might consider preparing your data source with the correctly formatted numbers. You could use Excel to format the numbers in the Indian style and then use that Excel file as your data source for the mail merge.

See if that helps! Please let us know if you have any questions. Microsoft Support is available for further assistance if the issue continues.

Best regards Deeksha

Top answer
1 of 2
6

Hi, I am a Microsoft user just like yourself and I will try my best to help you as much as I can today.

Step 1: Insert Merge Field Begin your mail merge as usual and insert the merge field where you want the number to appear. For example, insert the merge field by going to 'Insert' > 'Quick Parts' > 'Field...', then choose 'MergeField' and type in the name of your data field.

Step 2: Toggle Field Codes Right-click the merge field and select 'Toggle Field Codes' or press Alt + F9. This will change the display from the field result to the field code, which should look something like this: { MERGEFIELD MyNumber }.

Step 3: Edit Field Code for Formatting Add a numeric picture switch to format your number. Right-click the field code you just inserted and choose 'Edit Field…'. Add # "#,##0" at the end of the merge field code. It will look like this: { MERGEFIELD MyNumber # "#,##0" }. Unfortunately, the above code won't directly create the format you want because it's designed for Western numbering formats.

Step 4: Use a VBA Macro for Indian Number Format (Optional) To get the Indian numbering format (with lakhs and crores), you would need to use a VBA macro, as the built-in field codes do not support this format. Press Alt + F11 to open the VBA editor, insert a new module, and write a function to format the number according to the Indian numbering system. Here is a sample VBA function for custom Indian number formatting:

Function IndianCurrencyFormat(ByVal MyNumber) Dim Crores, Lakhs, Thousands, Hundreds, Temp Dim DecimalPlace, Count

ReDim Place(9) As String Place(2) = " Thousand " Place(4) = " Lakh " Place(6) = " Crore "

' Convert MyNumber to a string, trimming extra spaces. MyNumber = Trim(Str(MyNumber))

' Find the decimal place. DecimalPlace = InStr(MyNumber, ".") ' If we find decimal place... If DecimalPlace > 0 Then ' Convert the decimal portion of MyNumber to Cents. Temp = Left(Mid(MyNumber, DecimalPlace + 1) & "00", 2) ' Strip off the decimal portion. MyNumber = Trim(Left(MyNumber, DecimalPlace - 1)) End If

Count = 1 Do While MyNumber <> "" Temp = Right(MyNumber, 2) If Count <> 1 Then Temp = Right(MyNumber, 3) End If If Temp <> "00" Then Hundreds = Hundreds + CInt(Temp) If Count = 1 Then Temp = Temp & Place(Count) & Hundreds Else Temp = Temp & Place(Count) End If Crores = Temp & Crores End If If Count = 1 Then MyNumber = Left(MyNumber, Len(MyNumber) - 2) Else MyNumber = Left(MyNumber, Len(MyNumber) - 3) End If If MyNumber = "" Then Hundreds = "" End If Count = Count + 2 Loop

IndianCurrencyFormat = Crores End Function

Step 5: Call the VBA Function in Your Merge Field If you use the VBA macro, you need to call the macro for each number you want to format. You'll need to use the { SET } field to store the number and then call the macro with a { DOCVARIABLE } field.  Alternatively, you might consider preparing your data source with the correctly formatted numbers. You could use Excel to format the numbers in the Indian style and then use that Excel file as your data source for the mail merge.

See if that helps! Please let us know if you have any questions. Microsoft Support is available for further assistance if the issue continues.

Best regards Deeksha

2 of 2
4

Via the WIndows Control Panel, set the Region format to English (India) which will cause the digit grouping to appear as shown in the right hand dialog

Then, if you use Excel as the data source and you format the relevant data with the Comma Style format

Then in Word, go to File>Options>Advanced>General and check the box for "Confirm file format conversion on open" so that when you attach the data source to the Word document, you can check the "Show all" box to display the various methods of connecting the data source, and you then select the MS Excel Worksheets via DDE option, the relevant fields in you mail merge will display the numbers in Indian Format.

Note, unfortunately, you may find the performance attrocious and Word is quite likely to display Not Responding, but if you have enough patience, you will get what you want.

🌐
Techhelptoday
techhelptoday.com › 3-ways-to-fix-mail-merge-number-formatting-in-microsoft-word
3 Ways to Fix Mail Merge Number Formats in Microsoft Word – Tech Help Today
August 11, 2016 - I added more # signs and commas to account for numbers larger than 9,999. Worked like a dream. Thank you! ... My Letters looks professional…Thank you so much for this article. ... Thank you for your help. I used the Numeric Switch and it worked perfectly. ... Thank you. DDE wasn’t working for me, so ‘numeric switch’ in work was exactly what I needed! Thank you very much. ... I need a small help regarding this. What shall I use incase of mail merge of a field contains indian currency in lacs.
Discussions

In Mail merge how can i got the comma's in the value like 22,33,000
Hi Team, When i am putting the below formula in mail merge i am getting the thousand comma after 3 value of numeric Formula which i am using is # "##,##,##0" It is showing the value as for example we have an value in crore 12356782, now i want… More on answers.microsoft.com
🌐 answers.microsoft.com
2
7
How to show both commas and "0"s in Mail Merged fields
Basically my issue is how can I format the data in word mail merge in a way that it shows both commas in the numbers imported from excel and "0" for the fields that are empty, at the same time. When I use #"###,### for formatting the… More on learn.microsoft.com
🌐 learn.microsoft.com
11
84
Word - Merging, format number and thousand separator only when necessary
Good morning, I'm totally new with this kind of formatting but I speed a lot of time and research a lot, but without success. What I want to do is pretty simple in fact, but it seems really hard to put in place. I import data from Excel to Word with… More on learn.microsoft.com
🌐 learn.microsoft.com
3
11
February 17, 2020
ms word - Mail Merge with Multiple Fields Using Commas and 'And' - Stack Overflow
I have a mail merge with a section that has to display the results of multiple fields using commas and 'and' depending on the resulting values. For example: If value A, B, and D values start with... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Microsoft Learn
social.technet.microsoft.com › Forums › en-US › 0a060d37-869b-404d-91cc-ce849f9881b1 › mail-merge-number-format-commas-amp-decimal-places
Mail Merge Number Format Commas & Decimal Places | Microsoft Learn
November 12, 2021 - Once I input the comma format (\##,###.## or \##,###) the trailing zeros are removed. Does anyone have a fix? Any assistance would be greatly appreciated. ... 1. Press Alt+F9 to display your field codes in Word. 2. Find the one you need to change. It will probably look like { MERGEFIELD mynumber } or { MERGEFIELD mynumber \Mergeformat }
🌐
Oreate AI
oreateai.com › blog › mastering-mail-merge-number-formatting-from-commas-to-decimal-precision › f9de795874fecaebe460c7dc7ce11f2d
Mastering Mail Merge Number Formatting: From Commas to Decimal Precision - Oreate AI Blog
3 weeks ago - So, your field code should transform into something like { MERGEFIELD mynumber \#,##0.00 }. Let's break down that \#,##0.00 part. The \ indicates you're applying a format switch. The # symbols are placeholders for digits, and the comma tells ...
🌐
YouTube
youtube.com › seasons trending
How to solve microsoft word mail merge comma problem?✔- currency format in ms word mail merge ✔✔✔ - YouTube
#mailmerge #msword #solved How to solve microsoft word mail merge comma problem?✔- currency format in ms word mail merge ✔✔✔This video explains how to appl...
Published   July 12, 2019
Views   14K
🌐
Avantix Learning
avantixlearning.ca › home › how to change the number format of a number field in a word mail merge
How to Change the Number Format of a Number Field in a Word Mail Merge
March 7, 2022 - You can also enter commas (,), decimals (.) and currency signs ($). Since # specifies the minimum numeric places to display, if a place has no digit, it is replaced with a space. Number switches start with \# and the codes that follow represent ...
🌐
Readysetauction
helpdesk.readysetauction.com › knowledgebase › articles › 1939183-how-to-format-a-mail-merge-field-in-ms-word
How to Format a Mail Merge Field in MS Word – ReadySetAuction Help Desk
Add the following expression at the end of the word “amount” without leaving spaces: \# $,0.00 Your field should now look like this: { MERGEFIELD amount\# $,0.00 } Press Alt+F9 to return the page view to merge values and you are ready to merge. There is another method of formatting the merge data for a mail merge that can be found on the Knowledge Base at Microsoft Support.
Find elsewhere
🌐
YouTube
youtube.com › watch
How to Include Comma Separator for Thousands in Mail Merge in Microsoft Word | Comma Problem - YouTube
👍👍If you have found this content useful and want to show your appreciation, please use this link to buy me a beer 🍺. https://www.paypal.com/donate/?hoste...
Published   November 11, 2022
🌐
Excel Forum
excelforum.com › excel-general › 1088929-comma-in-numbers.html
Comma in Numbers
See the attached file. Please reply. Thanks for trying to help. I actually use the excel list to merge into the word file. I want the figures of Excel to be in Word file. ... The formatting in Excel doesn't matter in Word when you do the mail merge; you need a format switch in the Word merge field.
🌐
Lucid Gen
lucidgen.com › lucid gen › technology › how to format numbers in mail merge correctly
How to format numbers in Mail Merge correctly 2026
July 23, 2021 - On Mail Merge, to format the number 500000,789 to 500,001, I will change the Field Codes to {MERGEFIELD field_name \# #,##0}. Example of formatting numbers into thousands with commas in Mail Merge
🌐
Mandarine
my.mandarine.academy › en › training-resources › advanced-mail-merge-field-code
Word - Advanced mail merge (Field code) - Mandarine Learn
The basic field code for mileage is MERGEFIELD Mileage. To add number formatting, you need to include a switch in the field code. To format the mileage field with commas, you will type a switch directly in the field code.
Published   August 1, 2017
🌐
Stack Overflow
stackoverflow.com › questions › 37443378 › mail-merge-with-multiple-fields-using-commas-and-and
ms word - Mail Merge with Multiple Fields Using Commas and 'And' - Stack Overflow
I have a mail merge with a section that has to display the results of multiple fields using commas and 'and' depending on the resulting values. For example: If value A, B, and D values start with...
🌐
Tek-Tips
tek-tips.com › home › forums › software › mis/it › office suites › microsoft: office
Formating Mail Merged numbers | Tek-Tips
April 30, 2016 - In case it helps, the source for ... standard dot (.) decimal separator: { MERGEFIELD FieldName \# #\ ##0.00} For comma as thousands separator use "," instead of "\ "....
🌐
AskWoody
askwoody.com › home › forums › askwoody support › productivity software by function › ms word and word processing help › mail merge problems – no commas
Topic: mail merge problems – no commas @ AskWoody
March 18, 2009 - What do I have to do to get commas? Welcome to theLounge! One option is to add a format switch to the date mailmerge field in Word: – Right-click the merge field. – Select Toggle Field Codes from the popup menu. – Insert the following before the closing brace } but after the merge field name.
🌐
Climarkftp
cloud.climarkftp.com › v8helptopic › formatting_mail_merge_fields.htm
Formatting Mail Merge Fields
On the screen above, format #1 shows the Merge Field with no additional formatting. Format #2 shows how we put the insert cursor just to the left of the curly bracket and added the \@"DDDD, MMMM DD, yyyy" The \@ tells word that you want to do a date format. The quotes are required to tell word the beginning and end of the format string. The two commas are printed because we wanted a comma after the day of the week and one after the day of the date.