+ Reply to Thread
Results 1 to 4 of 4

Formatting (an advanced transpose)

  1. #1
    Registered User
    Join Date
    01-19-2011
    Location
    Vancouver Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Formatting (an advanced transpose)

    Hey gang,
    I am having trouble formatting a dataset. Here is what it looks like:

    month.site..size
    11.......S3....9
    11.......S14...7
    11.......S18...3
    12.......S2.....4
    12.......S15...8

    I need to transpose this data to look like this
    .................S1 S2 S3 S4 S5....S14 S15 S16 S17 S18
    month 11....0...0...9...0...0......... 7....0....0.....0.....3
    month 12....0...4...0...0...0........ .0....8....0.....0.....0

    I have tried IF THAN statements but it would only correctly place the top "size" properly (eg. 9 in S3) with the rest of the cells having zeros.

    Thanks
    Last edited by two_tun; 01-22-2011 at 03:27 AM.

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

    Re: Formatting (an advanced transpose)

    If you have the data say in Sheet1 starting at A1 and you have listed the months in Sheet2 column A and the sites across the top row... so that the first entry would be in Sheet2, B2, then use formula:

    =SUMIFS(Sheet1!$C:$C,Sheet1!$A:$A,$A2,Sheet1!$B:$B,B$1)

    copied down and across the matrix.
    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
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Formatting (an advanced transpose)

    Hi two_tun and welcome to the forum,

    You want your data formatted like a pivot table. See the attached. If you want the data only then you can cut and paste (values only) from the Pivot to another place. Also - you shouldn't have repeated data for the same month and size as it will sum them. I'm thinking you have no repeats.

    See the attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    01-19-2011
    Location
    Vancouver Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Formatting (an advanced transpose)

    Thanks.

    The pivot tables needed to be tweaked, but hey worked fine.

+ 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