Transpose data in Excel

Katchap902

New Member
Joined
Feb 2, 2022
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,
I have some complex data in a table I want to transpose in excel. In the table below I want take the 'element' column and transpose it so each individual element is listed as a column number per sample tag. The first image is how the data is currently presented and the second image is how I want it displayed . I have 100000's of records to do this for.....
1643857176359.png


1643857777750.png
 
Hi, Another quick question- when I try to run the VBA with all records (118,000) I keep getting the error below. However if I break it onto ~20,000 parcels I do not get the error. Any insight?

1643942603056.png
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
transpose gives problems above 65.000, but index, no ???
if you replace the yellow line with the same, but hardcoded, is it okay then ?
VBA Code:
s = arr(i, 1) & "|" & arr(i, 2) & "|" & arr(i, 3) & "|" & arr(i, 4) & "|" & arr(i, 5)
 
Upvote 0
transpose gives problems above 65.000, but index, no ???
if you replace the yellow line with the same, but hardcoded, is it okay then ?
VBA Code:
s = arr(i, 1) & "|" & arr(i, 2) & "|" & arr(i, 3) & "|" & arr(i, 4) & "|" & arr(i, 5)
Wow, yes that worked a dream! Thank you so much, you saved the day:)
 
Upvote 0

Forum statistics

Threads
1,214,909
Messages
6,122,189
Members
449,072
Latest member
DW Draft

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