+ Reply to Thread
Results 1 to 8 of 8

Data horizontal to vertical

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Data horizontal to vertical

    Dear All,

    Can it possible as below either in Pivot or any formula

    Thanks in advance.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by sureshpunna; 11-28-2012 at 02:08 AM.

  2. #2
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Data horizontal to vertical

    “A picture may paint a thousand words but it's pretty useless when answering Excel questions, please post a sample workbook"
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Data horizontal to vertical

    attached the above

  4. #4
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: Data horizontal to vertical

    I simulated your problem on excel file to understand the array formula

    =IFERROR(INDEX($B$2:$B$17,MATCH(SMALL(($A$2:$A$17=E$1)*(ROW($A$2:$A$17)-1),ROW(A1)+SUM(--(($A$2:$A$17=E$1)*(ROW($A$2:$A$17)-1)=0))),($A$2:$A$17=E$1)*(ROW($A$2:$A$17)-1),0)),"")
    Attached Files Attached Files

  5. #5
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Data horizontal to vertical

    In I2 copy this Array(control+shift+enter-not just enter formula) formula

    =IFERROR(INDEX($A$3:$A$20,MATCH(0,COUNTIF($H$2:H2,$A$3:$A$20),0)),"")

    Copy across.

    In I3 this also array and copy down and across.

    =IFERROR(INDEX($B$3:$B$20,SMALL(IF($A$3:$A$20=I$2,ROW($B$3:$B$20)-2),ROW(A1))),"")

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,771

    Re: Data horizontal to vertical

    Select E2 to G2 and press = and copy and paste the below formula and Press Ctrl+Shift+Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In E3 cell- Array formula requires Ctrl+Shift+Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag it down and right


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  7. #7
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Data horizontal to vertical

    Thank you all

    Can we get onlt unique values in items list. vertical 2 hor.xlsx
    Last edited by sureshpunna; 11-27-2012 at 02:34 AM.

  8. #8
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Data horizontal to vertical

    Yes we can.

    Try.

    In M2

    Please Login or Register  to view this content.
    In M3

    Please Login or Register  to view this content.
    In M4

    Please Login or Register  to view this content.
    Array formulas. This will be a helper and hidden column.

    Then in I2 and copy down this array formula. Same for the other columns.

    Please Login or Register  to view this content.
    You have to change ALL the semi colons in my formulas to comma.
    Attached Files Attached Files

+ 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