+ Reply to Thread
Results 1 to 10 of 10

Create Pivot with worksheet that has split/complex column headers?

  1. #1
    Registered User
    Join Date
    07-03-2014
    Location
    Devon, UK
    MS-Off Ver
    Professional Plus 2010
    Posts
    18

    Question Create Pivot with worksheet that has split/complex column headers?

    Hi

    I'm hoping someone may be able to help me. I need to analyse some data and I hoped that a Pivot Table may be the answer. Unfortunately, it doesn't like the fact I have split column headers and I was wondering if there was a way around it or another solution to save me time manually counting or filtering. I can't attach the actual spreadsheet for some reason but attach a screenshot to illustrate what I mean.

    I need to count the number of 1's, 2's, 3's etc in each 'On Exit' column for each area. I then need to work out what percentage of the cohort they each are.

    I would be grateful of any expert advice that may provide a quick solution!

    Many thanks

    Sarah
    Attached Files Attached Files

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Create Pivot with worksheet that has split/complex column headers?

    Hi,

    Welcome to the Forum.

    You can use COUNTIF to calculate the number of 1s, 2s etc in each column. If you need any further help please post a sample template in excel format.

  3. #3
    Registered User
    Join Date
    07-03-2014
    Location
    Devon, UK
    MS-Off Ver
    Professional Plus 2010
    Posts
    18

    Question Re: Create Pivot with worksheet that has split/complex column headers?

    Hi there

    Thanks for the suggestion of COUNTIF. I attach an example worksheet as requested so some further guidance on this would be gratefully received.

    Is there no way to get a pivot table to work?

    Many thanks

    Sarah
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-03-2014
    Location
    Devon, UK
    MS-Off Ver
    Professional Plus 2010
    Posts
    18

    Exclamation Re: Create Pivot with worksheet that has split/complex column headers?

    Could someone please advise on the COUNTIFS function as per previous post?

    Many thanks!

  5. #5
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Create Pivot with worksheet that has split/complex column headers?

    Hi,

    Please see the attached file.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-03-2014
    Location
    Devon, UK
    MS-Off Ver
    Professional Plus 2010
    Posts
    18

    Question Re: Create Pivot with worksheet that has split/complex column headers?

    That is super helpful thanks!

    A slightly more complex query - I need to be able to count the number of 1s, 2s and 3s etc for a specific section of the cohort, for example column M (FSM/PP), only those that are FSM or PP.

    Is that possible?

    Thanks in advance!
    Attached Files Attached Files

  7. #7
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Create Pivot with worksheet that has split/complex column headers?

    =countif(m$4:m$60,"fsm")
    =countif(m$4:m$60,"pp")

  8. #8
    Registered User
    Join Date
    07-03-2014
    Location
    Devon, UK
    MS-Off Ver
    Professional Plus 2010
    Posts
    18

    Re: Create Pivot with worksheet that has split/complex column headers?

    Thanks. This counts the number of FSM or PP individually, but I need to include both together, and work out from these, how many have 1s 2s or 3s?

  9. #9
    Registered User
    Join Date
    07-03-2014
    Location
    Devon, UK
    MS-Off Ver
    Professional Plus 2010
    Posts
    18

    Re: Create Pivot with worksheet that has split/complex column headers?

    I can work out the number of fsm with a 1 for example by =countifs(m$4:m$60, "fsm", t$4:t$85, "1") but I need to add in the pp ones too?

  10. #10
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Create Pivot with worksheet that has split/complex column headers?

    =COUNTIFS(M$4:M$60, "fsm", T$4:T$85, "1")+COUNTIFS(M$4:M$60, "PP", T$4:T$85, "1")

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pivot table not pulling column headers
    By joyhampton in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-18-2013, 11:21 PM
  2. [SOLVED] Creating a Complex Series of Column Headers
    By t-sett in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2012, 09:24 PM
  3. Split column and create new row
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2012, 06:26 AM
  4. Create Headers From Row on Worksheet and Move Corresponding Data
    By myjebay1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-10-2011, 12:26 AM
  5. pivot table column headers
    By jrtaylor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2009, 09:23 AM

Tags for this Thread

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