+ Reply to Thread
Results 1 to 5 of 5

Wide to Long data transform

  1. #1
    Registered User
    Join Date
    02-18-2020
    Location
    Philippines
    MS-Off Ver
    2017
    Posts
    36

    Wide to Long data transform

    Hello, Kindly help me. What formula to use or how to transform my wide data to long ? In the photos below, I made it through manual input. This will be time consuming if I have large data. Thank you in advance so much!

    From
    Wide to long.PNG

    To
    Wide to long 2.PNG
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Wide to Long data transform

    Select the data, goto Data>Get & Transform>From Table/Range.

    In Power Query right click the Acronym column header and select Unpivot Other Columns.

    Click Close & Load.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Wide to Long data transform

    Hi,
    See if that works for you:

    I3 = =A2
    I4 and down =IF(J4="","",IF(ISBLANK(INDEX(A:A,MATCH(I3,A:A,0)+1)),$I$3,INDEX(A:A,MATCH(I3,A:A,0)+1)))


    J3 and down =IFERROR(IF(COUNTIF($J2:J$3,J2) < COUNT($B$2:$B$7),J2,INDEX($B$1:$E$1,MATCH(J2,$B$1:$E$1,0)+1)),"")

    K3 and down:
    =IFERROR(INDEX($B$2:$E$7,MATCH(I3,$A$2:$A$7,0), MATCH(J3,$B$1:$E$1,0)),"")
    Attached Files Attached Files
    Last edited by Limor_OP; 09-20-2020 at 01:50 PM.

  4. #4
    Registered User
    Join Date
    02-18-2020
    Location
    Philippines
    MS-Off Ver
    2017
    Posts
    36

    Re: Wide to Long data transform

    Thank you so much for this. Appreciate it!

  5. #5
    Registered User
    Join Date
    02-18-2020
    Location
    Philippines
    MS-Off Ver
    2017
    Posts
    36

    Re: Wide to Long data transform

    Thank you so much for this. Helped me a lot.

+ 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. Wide to Long Data of Varying Length with No Macros/PivotTable
    By achpdsee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-05-2017, 08:58 PM
  2. [SOLVED] about restructure repeated measure data into long format from wide format
    By sohel_for in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-18-2015, 01:10 AM
  3. [SOLVED] Convert data from wide to long format
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2015, 06:52 PM
  4. Panel from wide to long
    By marco.schneebalg in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-05-2014, 05:41 AM
  5. Need help converting long data into wide form.
    By gbear in forum Excel General
    Replies: 4
    Last Post: 08-12-2013, 02:21 AM
  6. long to wide transformation of panel data with many variables
    By mradzik79 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-05-2012, 02:44 PM
  7. restructure long to wide
    By alphapoint05 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-09-2005, 09:05 AM

Tags for this Thread

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