+ Reply to Thread
Results 1 to 5 of 5

How to convert one column to a row

Hybrid View

  1. #1
    Registered User
    Join Date
    04-26-2012
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    How to convert one column to a row

    Hi,

    I have a table like this:

    Person1 Province1 10
    Person1 Province2 10
    Person1 Province3 10
    Person2 Province1 10
    Person2 Province2 10
    Person2 Province3 10

    want to convert it to:
    EMPTY province1 province2 province3
    person1 10 10 10
    person2 10 10 10

    Thanks!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to convert one column to a row

    Say the upper table is in A1:C10

    And the second table top left corner EMPTY cell is in D1, then in E2:

    =SUMIFS($C$1:$C$10,$A$1:$A$10,$D2,$B$1:$B$10,E$1)

    copied down and across.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-26-2012
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to convert one column to a row

    Sorry. Maybe I didn't make it clear here. I'm not trying to get the SUM. I just want to re-organize the table format.

    Person1 Province1 1
    Person1 Province2 2
    Person1 Province3 3
    Person2 Province1 4
    Person2 Province2 5
    Person2 Province3 6

    want to convert it to:
    TITLE province1 province2 province3
    person1 1 2 3
    person2 4 5 6

    Thanks!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to convert one column to a row

    as long as there is only one unique combination of Person/Province, the sum is the sum of one number only, the matching one

  5. #5
    Registered User
    Join Date
    04-26-2012
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to convert one column to a row

    got it! thanks a lot!!

+ 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