Transposing statement for mailmerge

Gav13

New Member
Joined
Aug 8, 2012
Messages
9
Afternoon all,

Bit of an odd one, and I'm probably over complicating the issue here.

Essentially I have a set of data like this:

Cust NoNameInvoiceDateDue Amount
12345ABC0000119/034000
12345ABC0000220/034500
23456CDE0000419/033000
34567DEF0000711/022000
34567DEF0000901/032000

<tbody>
</tbody>

That, for the purpose of a mailmerge I'd like the Invoice, Date and Due Amounts to be listed horizontally instead so

Cust NoNameInvoice 1Invoice 2Date 1Date 2Amount Due 1Amount Due 2
12345ABC000010000219/0320/0340004500
23456CDE0000419/033000
34567DEF000070000911/0201/0320002000

<tbody>
</tbody>

No real preference on the field order, so it could for example be Invoice 1, Date 1, Amount Due 1, Invoice 2, Date 2, Amount Due 2 etc. instead.

This is for thousands of rows of data so any help is greatly appreciated.

Cheers!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi Gerald,
No there can be a lot more unfortunately. No way to confirm for sure the number.
If this is an issue however, it would be possible to, for example, extract before this exercise any statement with more than 10 invoices, so limit it to that.
 
Upvote 0
There really isn't any way for a mailmerge to restructure the output as described. Although the field coding in my Microsoft Word Catalogue/Directory Mailmerge Tutorial (http://www.gmayor.com/Zips/Catalogue Mailmerge.zip) could be adapted to produce a linear output, that'd look rather strange once the data start line-wrapping.
 
Upvote 0
Personally I would do the transposition within Excel, and then use the results to input into your mailmerge.

But with a number of invoices that is very variable, that transposition might be tricky.
 
Upvote 0

Forum statistics

Threads
1,216,076
Messages
6,128,670
Members
449,463
Latest member
Jojomen56

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