Mail merge - wrong information being picked

siddsg

New Member
Joined
May 21, 2014
Messages
3
Hello,
Would like to give a solution to a problem I was facing in Mail Merge where wrong information was getting picked.
Some others might face the same issue so this might be useful for them...

My data in excel is as follows:

ApplesOranges
No of orders1020

<tbody>
</tbody>

When I was mail merging into word, data was showing as:
<apples>Apples = No of orders
<oranges>Oranges = 10

After much of head scratching and experimenting, I found that this is due to the fact that the No of Orders column had no column header, causing the wrong field to be picked up.
Why? I don't know but thats how it behaves!

Solution: add a dummy column header to the 'No of Orders' column as below:

HeaderApplesOranges
No of orders1020

<tbody>
</tbody>

Thanks,
Siddharth Gangoli</oranges></apples>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,215,519
Messages
6,125,299
Members
449,218
Latest member
Excel Master

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