• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Transpose? Not sure what to do|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Transpose? Not sure what to do|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Transpose? Not sure what to do
sp_PrintTopic sp_TopicIcon
Transpose? Not sure what to do
Avatar
Shawn Martin

New Member
Members
Level 0
Forum Posts: 2
Member Since:
January 26, 2019
sp_UserOfflineSmall Offline
1
January 26, 2019 - 1:32 am
sp_Permalink sp_Print sp_EditHistory

I have a dilemma. I am not even sure how to describe it....so I will show you what I am trying to do:

What I have now (thousands of columns like this)

424253 373211 412117 408338
1374 1374 1374 1374
1339 1339 1339 1339

want to make just two columns with thousands of rows like this (notice I also duplicate the first row in the first column (rather than leave it empty)

424253 1374
424253 1339
412117 1374
412117 1339
408338 1374
408338 1339
373211 1374
373211 1339

My question is...is there an easy way to do this in excel?

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 871
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
January 26, 2019 - 6:43 am
sp_Permalink sp_Print

Hello Shawn,

Welcome to MOTH. If you haven't already, please take a look at this blog article, it might give you the answer you look for.
https://www.myonlinetraininghu.....a-in-excel

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
3
January 26, 2019 - 11:02 am
sp_Permalink sp_Print

Hi Shawn

You mentioned thousands of rows but did not mention how many columns.

If you don't have too many columns then I suggest adding some helper columns and using a few simple formulas and copy and paste value into two columns.

It is simple and will get the job done in just a few minutes.

Refer my attachment.

Hope this helps.

Sunny

Avatar
Shawn Martin

New Member
Members
Level 0
Forum Posts: 2
Member Since:
January 26, 2019
sp_UserOfflineSmall Offline
4
January 29, 2019 - 1:54 am
sp_Permalink sp_Print

Unfortunately I do have a Thousand Columns too...so this tactic wouldn't really work. I appreciate you trying to help out. I am going to look into more of the Transpose options that Anders Sehlstedt mentioned...maybe I can write a VBA script to help me out. 

Avatar
Dave Morrison
Member
Members
Level 0
Forum Posts: 6
Member Since:
December 21, 2018
sp_UserOfflineSmall Offline
5
January 31, 2019 - 3:16 pm
sp_Permalink sp_Print sp_EditHistory

Sub Button1_Click()
Dim c As Range, rng As Range
Dim sh As Worksheet, ws As Worksheet
Dim LstRw As Long, rws As Long
Set sh = Sheets("Sheet1")
Set ws = Sheets("Sheet2")
With sh
Set rng = .Rows("1:1").SpecialCells(xlCellTypeConstants, 23)
For Each c In rng.Cells
LstRw = .Cells(.Rows.Count, c.Column).End(xlUp).Row
For rws = 2 To LstRw
ws.Cells(ws.Rows.Count, 1).End(xlUp).Offset(1) = c
ws.Cells(ws.Rows.Count, 2).End(xlUp).Offset(1) = .Cells(rws, c.Column)
Next rws
Next c
End With
End Sub

See attached

Note: Forgot to mention the results are on sheet2
TransposeSample

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Velouria, Dario Serrati, Valentyn Kristioglo, Nada Perovic, Andrew Er
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Raj Mattoo
Mark Luke
terimeri dooriyan
Jack Aston
AndyC
Denise Lloyd
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Forum Stats:
Groups: 3
Forums: 24
Topics: 6219
Posts: 27279

 

Member Stats:
Guest Posters: 49
Members: 31903
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.