Macro to change data from vertically to horizontally

Mussa

Active Member
Joined
Jul 12, 2021
Messages
264
Office Version
  1. 2019
  2. 2010
Hi
I would macro to change data from vertically to horizontally with the same format
VR.xlsm
ABCDE
1CODECCS-1CCS-2CCS-3CCS-4
2CLIENT NOCC2-TRB-1CC2-TRB-2CC2-TRB-3CC2-TRB-4
3INVOICE NOINV-TRGG-1INV-TRGG-2INV-TRGG-3INV-TRGG-4
4ID-CCIDTR-100IDTR-101IDTR-102IDTR-103
5BB-RFFDOOD-1FFDOOD-2FFDOOD-3FFDOOD-4
6TT-YPACK-2PACK-3PACK-4PACK-5
7OR-GGTTRBBRLLRMMR
8QTY60.0010.005.0010.00
9PRICE$120.00$130.00$100.00$289.00
10TOTAL$7,200.00$1,300.00$500.00$2,890.00
PURCHASE


result

VR.xlsm
ABCDEFGHIJ
1CODECLIENT NOINVOICE NOID-CCBB-RTT-YOR-GGQTYPRICETOTAL
2CCS-1CC2-TRB-1INV-TRGG-1IDTR-100FFDOOD-1PACK-2TTR60.00$120.00$7,200.00
3CCS-2CC2-TRB-2INV-TRGG-2IDTR-101FFDOOD-2PACK-3BBR10.00$130.00$1,300.00
4CCS-3CC2-TRB-3INV-TRGG-3IDTR-102FFDOOD-3PACK-4LLR5.00$100.00$500.00
5CCS-4CC2-TRB-4INV-TRGG-4IDTR-103FFDOOD-4PACK-5MMR10.00$289.00$2,890.00
EXAMPLE

I will add new data every time in PURCHASE sheet.
thanks in advanced.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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