+ Reply to Thread
Results 1 to 16 of 16

Can I pivot this worksheet

  1. #1
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Can I pivot this worksheet

    Hi, the worksheet below is fictional. I created it to show the structure of the table I am trying to analyse.

    I am a total newbie to pivot tables & charts. I have read a lot, but have no practical experience. What I am trying to do is not as simple as the examples I have seen.

    The fictional sheet covers 3 months daily sightings of birds from 3 regions of the UK. There are several blank elements & rows. (The blank elements actually contain zero values, but have been formatted to show blank.)

    My 1st question is ....... Can I pivot this worksheet to show a stacked bar chart with months along the x-axis, and vertical stacked bars showing the total counts for each species, for the UK as a whole (apologies to Ireland), or do I need to simplify the original sheet?

    Hope this is clear, I repeat I am a total newbie. KK
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,114

    Re: Can I pivot this worksheet

    i have restructerd into a format that can be pivottabled
    see attached - still needs a little cleanup
    BUT

    we now need to see the results you need

    My 1st question is ....... Can I pivot this worksheet to show a stacked bar chart with months along the x-axis, and vertical stacked bars showing the total counts for each species, for the UK as a whole (apologies to Ireland), or do I need to simplify the original sheet?
    should be able to - i'll try
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,114

    Re: Can I pivot this worksheet

    heres a pivot on the restructured data
    Attached Files Attached Files

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,334

    Re: Can I pivot this worksheet

    Hi Trebor,

    The answer is, you need to restructure your data before you can pivot it. Etaf has done a great job in moving your columns around and adding a column to show what is needed. If you had to use your original data format, there are tools to get it to*a better table structure. See:

    https://wessexbi.wordpress.com/2014/...h-power-query/

    Power Query*has*two tools that can transpose data and Fill down that can unravel*your original format to look like etaf's data. If you needed to do this same problem lots of times then learning PQ might be appropriate.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Can I pivot this worksheet

    This looks good, please give me awhile to study it and explore.

    Mega thanks. KK

  6. #6
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Can I pivot this worksheet

    I am OK to restructure the original sheet, I'm OK with excel, just totally ignorant with pivot tables. KK

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,114

    Re: Can I pivot this worksheet

    there are quite a few pivot table tutorials online
    I would suggest a search and see which ones you get on with - perhaps youtube videos

    i dont have any specific sites to recommend

  8. #8
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Can I pivot this worksheet

    etaf thanks, I have seen some, as well as a book I bought, and downloads. I will study your suggestions and get back to you all in a day or so. I always suspected that the source data was not 'flat' enough. please allow me time to investigate, I'm not as young as I used to be

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,114

    Re: Can I pivot this worksheet

    ok,
    all i did was after restructuring
    insert a pivot chart

    in the rows (which will be X-Axis) - dragged the date field
    in the values - dragged the count - and then clicked on the arrow at the side - as it defaulted to count and went to "value field settings" and changed that from count to SUM - so that it added up all your counts
    in the columns - i dragged the birds

    now that will give you a list with every date in
    but you wanted to group that data into months
    so i click on the pivot table - and on the first date in the list
    On the ribbon at the top - under pivot table - choose Analyze
    and used the Group
    and then from the pop-up box - choose Month and Year
    to group all the dates by month


    hope that helps

  10. #10
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Can I pivot this worksheet

    Quote Originally Posted by etaf View Post
    i have restructerd into a format that can be pivottabled
    see attached - still needs a little cleanup
    BUT

    we now need to see the results you need



    should be able to - i'll try
    Etaf thanks. I'll take this step by step please, I am not as quick as you. The restructured table you sent is clearly simpler than my original (more like a database I suspect) and I can see it is much easier to pivot.

    How did you create the restructured table? manually ? or did you use the tools suggested by Marvin?

    This is very helpful, mega thanks. KK

  11. #11
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Can I pivot this worksheet

    Quote Originally Posted by etaf View Post
    heres a pivot on the restructured data
    This is what I am looking for, except I need a stacked bar chart rather than separate bars for each bird. Otherwise it's spot - on. KK

  12. #12
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Can I pivot this worksheet

    It might be worthwhile to mention that my actual table covers a total of 2.5 years, so restructuring the table must be automated I think?

  13. #13
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,114

    Re: Can I pivot this worksheet

    How did you create the restructured table? manually ? or did you use the tools suggested by Marvin?
    i copied the columns manually
    if you have 2.5 years in the format , wont take long to restructure
    as you can copy the column with all the dates, and then auto fill

    I did not use the tools

    stacked attached
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Can I pivot this worksheet

    Thanks all, I think I understand. I'll mark this as solved and apply it to my real data. K

  15. #15
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Can I pivot this worksheet

    Quote Originally Posted by etaf View Post
    i copied the columns manually
    if you have 2.5 years in the format , wont take long to restructure
    as you can copy the column with all the dates, and then auto fill

    I did not use the tools

    stacked attached
    Etaf, just for info I have now reproduced your pivot table and chart. Mega-thanks once again. K

  16. #16
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,114

    Re: Can I pivot this worksheet

    you are welcome, thanks for the rep

+ 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. Adding a new pivot table using same pivot cache on a new worksheet
    By pdalal in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2015, 05:58 AM
  2. Multiple Pivot report filter - based on another pivot on another worksheet
    By Jabba69 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2014, 05:45 AM
  3. Replies: 0
    Last Post: 03-22-2014, 10:56 AM
  4. Replies: 0
    Last Post: 02-11-2014, 02:14 PM
  5. [SOLVED] Pivot Table Summary -- Part #'s do not show in Pivot but data is in worksheet
    By maryren in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-19-2013, 10:51 AM
  6. Replies: 11
    Last Post: 12-06-2012, 01:48 PM
  7. Replies: 0
    Last Post: 09-22-2012, 07:22 PM

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