+ Reply to Thread
Results 1 to 12 of 12

Transpose data

  1. #1
    Registered User
    Join Date
    11-19-2018
    Location
    Sukkur, Pakistan
    MS-Off Ver
    2013
    Posts
    7

    Question Transpose data

    Does anyone can tell that how can I transpose the following data?
    1. Head: Mr. Tom
    Target: Ms. Alizbeth
    Type: B positive
    Value: 2006

    2.Head: Ms. Allice
    Target: Mrs. Nick
    Type: A positive
    Value: 2506

    3.Head: Mr. Ali
    Target: Ms. Aleena
    Type: O positive
    Value: 2040

    I need it into a specific format given below:
    Head Target Type Value
    Mr. Tom Ms. Alizbeth B positive 2006
    Ms. Allice Mrs. Nick A positive 2506

  2. #2
    Registered User
    Join Date
    11-19-2018
    Location
    Sukkur, Pakistan
    MS-Off Ver
    2013
    Posts
    7

    Re: Transpose data

    Quote Originally Posted by Sughra Batool View Post
    Does anyone can tell that how can I transpose the following data?
    1. Head: Mr. Tom
    Target: Ms. Alizbeth
    Type: B positive
    Value: 2006

    2.Head: Ms. Allice
    Target: Mrs. Nick
    Type: A positive
    Value: 2506

    3.Head: Mr. Ali
    Target: Ms. Aleena
    Type: O positive
    Value: 2040

    I need it into a specific format given below:
    Head Target Type Value
    Mr. Tom Ms. Alizbeth B positive 2006
    Ms. Allice Mrs. Nick A positive 2506
    I can transpose it one by one but it will take too long because I have more than 50,000 observations. I want a quick formula. Anybody can help plz?

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Transpose data

    Please see this thread to which I've just responded. It is exactly similar to yours and hence the essence of the formulae are the same. The other thread was in blocks of 5 and yours are blocks of 4 so change the multipier *5 in the formula to *4

    https://www.excelforum.com/excel-gen...ml#post5012571
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    11-19-2018
    Location
    Sukkur, Pakistan
    MS-Off Ver
    2013
    Posts
    7

    Re: Transpose data

    Thanks alot, the link is useful, but I am still unclear about the command. Plz check following documents and images to confirm that what I want.
    Screenshot 2018-11-19 14.55.27.png

  5. #5
    Registered User
    Join Date
    11-19-2018
    Location
    Sukkur, Pakistan
    MS-Off Ver
    2013
    Posts
    7

    Re: Transpose data


  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Transpose data

    Images/Pictures are rarely any use. In addition your picture bears no relation to your post #1

    Please upload the workbook. Clearly identofy which sheets/ranges are original data and which ranges are the results and then explain in some notes how you arrive at your results.

  7. #7
    Registered User
    Join Date
    11-19-2018
    Location
    Sukkur, Pakistan
    MS-Off Ver
    2013
    Posts
    7

    Re: Transpose data

    My post #1 was an example of my problem. following is the datapractice.xlsx. There are many deals in the data set. I want deal numbers as rows and deal headline, target, acquiror, vendor, deal type, deal status, date and deal value as columns. If the question is still unclear then plz let me know.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Transpose data

    H

    The question will only become clear (at least to me) if you upload the workbook along with the other stuff I asked for in #6

    Your original was clearly a much simplified example and doesn't represent the size or layout of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see. Clearly identify which is original data and which are the results and in a note clearly explain how you have arrived at your results. This avoids us all wasting time devising a solution for a layout that doesn't match your actual data.

  9. #9
    Registered User
    Join Date
    11-19-2018
    Location
    Sukkur, Pakistan
    MS-Off Ver
    2013
    Posts
    7

    Re: Transpose data

    Sure! I am trying to make it clear. Please find the attached file practice.xlsx. In this file sheet number one is the original data set and sheet number 2 is what I require.
    I got the results in sheet 2 through transposing the deals individually, such as first I transposed deal no 1 data then deal no 2 and so on...

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Transpose data

    Mostly, I used standard formulae, like this:

    =IFERROR(INDEX(Sheet1!$D:$D,AGGREGATE(15,6,ROW(Sheet1!$D$3:$D$500)/(Sheet1!$C$3:$C$500=Sheet2!B$1),ROWS($1:1))),"")

    One exception, the withdraw/completion date:

    =IFERROR(INDEX(Sheet1!$D:$D,AGGREGATE(15,6,ROW(Sheet1!$D$3:$D$500)/(Sheet1!$C$3:$C$500=Sheet2!G$1),ROWS($1:1))),"")

    Check the results for Vendor. Your starting data here is very messy....
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  11. #11
    Registered User
    Join Date
    11-19-2018
    Location
    Sukkur, Pakistan
    MS-Off Ver
    2013
    Posts
    7

    Re: Transpose data

    Thanks alot! This is what I require. But if I got issues in the full sample data then I will again seek for your help. Thanks again...

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Transpose data

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 08-21-2018, 09:24 AM
  2. transpose column to a range calculate and transpose to new table loop
    By moshro1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-02-2015, 10:52 AM
  3. Replies: 7
    Last Post: 10-03-2014, 05:04 AM
  4. Transpose Data from Columns to Rows after each unique data point
    By lnagell in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-01-2014, 08:10 PM
  5. Transpose horizontal data to vertical data with paste link
    By M.Devadhasan in forum Excel General
    Replies: 0
    Last Post: 07-07-2012, 01:01 PM
  6. [SOLVED] Transpose: How can I copy a list and transpose it but leaving 3 cells in between each item
    By cocolete in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-11-2012, 10:01 AM
  7. Replies: 2
    Last Post: 02-19-2007, 04:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1