Results 1 to 6 of 6

Turning a Vertical Table into a Horizontal one

Threaded View

  1. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Turning a Vertical Table into a Horizontal one

    Another way is to use dynamic Names to avoid CSE arrays, names are treated as arrays automatically.

    Name:= "Department"
    Refers to:=
    Formula: copy to clipboard
    =Sheet14!$A$2:INDEX(Sheet14!$A:$A,MATCH(REPT("z",255),Sheet14!$A:$A,1))

    Name:= "Position"
    Refers to:=
    Formula: copy to clipboard
    =INDEX(IF(Department=Sheet14!E$1,ROW(Department),""),,1)

    Then for headers
    In E1 Drag across as required.
    Formula: copy to clipboard
    =LOOKUP(REPT("Z",255),CHOOSE({1;2},"",INDEX(Department,MATCH(TRUE,INDEX(ISNA(MATCH(Department,$D$1:D$1,0)),0),0))))

    In E2, Drag Across and down
    Formula: copy to clipboard
    =IF(ROWS($2:2)>COUNT(Position),"",INDEX($B:$B,SMALL(Position,ROWS($2:2))))
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

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