Mail Merge LEFT Function

marka87uk

Board Regular
Joined
Mar 24, 2007
Messages
247
Hi,

Is it possible to use a Left type of function in a Word mail-merge to ask in an If statement, 'does the first 6 characters of a string contain "Parent"'?

I know I could simply add a new field in Excel to do this, but it would be more simple for me to achieve this in Word, rather than alter numerous spreadsheets.

Thanks :)
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi marka87uk,

There's no 'LEFT' field function, but you can get around this with field coding like:
{IF«MyField»= "Parent*" "True Text" "False Text"}
where «MyField» is the mergefield you're testing.

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
 
Upvote 0
Thanks Macropod,
good information about Mail Merge
Can you show me the full steps of mail merge.. i follow all the steps but something is wrong then the result is not perfect, please show me full steps...
thanks in advance...
 
Upvote 0
Hi kings009,

Have you tried using Word's mailmerge wizard? It takes you through all the steps.

What type of merge are you doing? The steps are different for each type.

What exactly is your problem? Without details I'd just be guessing at what help you need.

Cheers
 
Upvote 0

Forum statistics

Threads
1,225,385
Messages
6,184,646
Members
453,250
Latest member
unluckyuser

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