Data form several columns to one

ayyaaa

New Member
Joined
Jan 23, 2018
Messages
1
Hi,

I have data in excel sheet in several columns (lists are flexible):

s1s2s3s4s5s6s7s8s9s10s11s12s13s14s15s16s17s18s19s20s21s22s23
tr1iuhu1e8zu9uzsiu4erd1wef5ew6wefw7wefe3erg83wef3efwe8rge9ef1erf6wdq5ui9fgr6r4reg4erg3ef6ed4
tr2iuhu2e8zu10uzsiu5erd2wef6ew7wefw8wefe4erg93wef4efwe9rge10ef2erf7wdq6ui10fgr7r5reg5erg4ef7ed5
tr3iuhu3e8zu11uzsiu6erd3wef7ew8wefw9wefe5erg103wef5efwe10rge11ef3erf8wdq7ui11fgr8r6reg6erg5ef8ed6
tr4iuhu4e8zu12uzsiu7erd4wef8ew9wefw10wefe6erg113wef6efwe11rge12ef4erf9wdq8ui12fgr9r7reg7erg6ef9ed7
tr5iuhu5e8zu13uzsiu8erd5wef9ew10wefw11wefe7erg123wef7efwe12rge13ef5erf10wdq9ui13fgr10r8reg8erg7ef10ed8
tr6iuhu6e8zu14uzsiu9erd6wef10ew11wefw12wefe8erg133wef8efwe13rge14ef6erf11wdq10ui14fgr11r9reg9erg8ef11ed9
tr7iuhu7e8zu15uzsiu10erd7wef11ew12wefw13wefe9erg143wef9efwe14rge15ef7erf12wdq11ui15fgr12r10reg10erg9ef12ed10
tr8iuhu8e8zu16uzsiu11erd8wef12ew13wefw14wefe10erg153wef10efwe15rge16ef8erf13wdq12ui16fgr13r11reg11erg10ef13ed11
tr9iuhu9e8zu17uzsiu12erd9wef13ew14wefw15wefe11erg163wef11efwe16rge17ef9erf14wdq13ui17fgr14r12reg12erg11ef14ed12
tr10iuhu10e8zu18uzsiu13erd10ew15wefw16erg173wef12rge18ef10erf15wdq14ui18fgr15r13reg13ef15ed13
tr11iuhu11e8zu19uzsiu14erd11ew16wefw17erg183wef13rge19ef11erf16wdq15ui19fgr16r14reg14ef16ed14
tr12iuhu12e8zu20uzsiu15ew17wefw18erg193wef14rge20ef12erf17wdq16ui20fgr17reg15ef17ed15
tr13iuhu13e8zu21uzsiu16wefw19erg203wef15ef13erf18wdq17fgr18reg16ef18ed16
tr14iuhu14e8zu22uzsiu17wefw20erg213wef16ef14erf19wdq18fgr19reg17ef19ed17
tr15e8zu23uzsiu18wefw21erg223wef17ef15erf20wdq19fgr20reg18ef20ed18
tr16e8zu24uzsiu19wefw22erg23ef16erf21wdq20fgr21reg19ef21ed19
tr17e8zu25uzsiu20wefw23erg24ef17erf22wdq21fgr22reg20ef22ed20
tr18e8zu26uzsiu21erg25ef18erf23wdq22fgr23ef23ed21
tr19e8zu27uzsiu22erg26ef19erf24wdq23ef24ed22
tr20e8zu28uzsiu23erg27ef25ed23
tr21e8zu29uzsiu24erg28ef26ed24
tr22e8zu30uzsiu25erg29ef27ed25
tr23e8zu31erg30
tr24e8zu32erg31
tr25e8zu33
e8zu34
e8zu35
e8zu36

<tbody>
</tbody>
So I need pivot table to join these data from columns
view
to one column, sorted by each column - not all a in alphabetical order. How can I do this?

Thanks in advance for help.
BW Aya
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi!

The perfect tool to do this is Power Query in Excel.
Have a look at attached file: https://expirebox.com/download/7c758477f75cfde4a5bb71810bf186a9.html

It makes your data into a table. Then it pulls into Power Query (go to tab Data, the group is called "Get & Transform" in excel 2016, then you click from table).
In Power Query I have added an Index column. Then I unpivoted all columns except the Index column. After I sorted the column on the Header, and after that on the Index Number. Lastly I merged the two columns, so you still have all the information you need.

In this way your data will look as you described. It will be in one column.

Regards,
Rick
 
Upvote 0

Forum statistics

Threads
1,216,025
Messages
6,128,358
Members
449,444
Latest member
abitrandom82

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