+ Reply to Thread
Results 1 to 5 of 5

re-arranging data

  1. #1
    Registered User
    Join Date
    02-03-2019
    Location
    riyadh
    MS-Off Ver
    Office 365
    Posts
    21

    re-arranging data

    hi all..

    please help in re-arranging data. i post picture below for my work. i also attached the excel file.

    i tried using pivot, but im not getting what i need..

    thank you.

    Attachment 651506
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2019 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    32,776

    Re: re-arranging data

    Please update your forum profile with the version of Excel that you are using - what is pictured is definitely not from 1997!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    01-23-2014
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel Office 365
    Posts
    18

    Re: re-arranging data

    I don't understand what you're trying to accomplish. can you clarify and be specific in your expected results please?

  4. #4
    Registered User
    Join Date
    02-03-2019
    Location
    riyadh
    MS-Off Ver
    Office 365
    Posts
    21

    Re: re-arranging data

    hi LouisTh.. i am given the table on the right, where the data is arranged horizontally. I need to re-arrange the data in vertical format, such as the table on the left. I am working with 20,000 sites and i need to re-arrange data for upload.

    Thanks!

    Attachment 652273
    Last edited by AliGW; 12-02-2019 at 01:49 AM.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    23,777

    Re: re-arranging data

    Try this:

    A3:
    =IFERROR(INDEX($F$3:$F$5,MATCH(0,INDEX(--(COUNTIF($A$2:A2,$F$3:$F$5)=$G$3:$G$5),0),0)),"")

    B3:
    IF($A3="","",OFFSET(INDEX($F$3:$F$6,MATCH($A3,$F$3:$F$6,0)),,2+2*(IF($A2<>$A3,1,B2+1)-1),,))

    C3:
    =IF($A3="","",OFFSET(INDEX($F$3:$F$6,MATCH($A3,$F$3:$F$6,0)),,3+2*($D3-1),,))

    D3 (helper - which can be hidden, moved, or even be on another sheet):
    IF(A3="","",IF($A2<>$A3,1,D2+1))
    Attached Files Attached Files
    Glenn



+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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