Mail Merge - Blank Spaces

kamccar

New Member
Joined
Jul 23, 2019
Messages
18
Hello,

I am working in a mail merge document, and I need the output to look something like this:

Vacation:

Life Insurance:

Disability:

etc.

However, the issue is that sometimes the fields are blank, and if they're blank it messes up the spacing. I want the document to ignore any blanks, but also format correctly. I have done research and currently have this:

{MERGEFIELD Vacation \b"
"}{MERGEFIELD Life Insurance \b"
"}{MERGEFIELD Disability \b"
"}

I pressed ALT F9 to do this, and although the spacing now works, if I place the merge field that follows directly after the closing bracket as I have it now, it skips the record of data that comes after the closing bracket when I preview the mail merge. If I put the merge field on a new line (the line after the closing bracket) the data shows up, however the spacing is still off.

I want the document to evenly space each field even if there is no data.

Any help would be SO greatly appreciated!!!
 
Last edited by a moderator:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
How is the output supposed to change when 'Life Insurance', for example, is empty, compared to when the same field contains data? Your post so far doesn't give any indication of this. Note also that previews are not a reliable indicator of the final output.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,201
Members
453,022
Latest member
RobertV1609

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