+ Reply to Thread
Results 1 to 8 of 8

Getting a Pivot but not for numbers

  1. #1
    Registered User
    Join Date
    06-05-2018
    Location
    Glasgow
    MS-Off Ver
    2010
    Posts
    4

    Getting a Pivot but not for numbers

    Hi All,

    New here but i've hit the limit of what I can do easily and what i've built was overcomplicated and fell short.

    Periodically needing to consolidate a lot of data from a table on 1 webpage and place the relevent details onto another webpage

    I can and have exported to excel the table which includes a long list of names in column A, various events in row 1 and then the corresponding cell will have some details, it could be a reference, it could be a sentence, most are blank.

    The names get catagorised and have rules on if they all get noted or just the most recent.

    So it might look like something like this:

    Snapshot 3 Snapshot 2 Snapshot 1
    Lemon 2 Please
    Orange 2 1
    Sugar White Brown White
    Meat Beef Chicken

    After a rule that says Catagorise Lemon & Orange As Fruits and take whatever the latest non blank value is, Call Meat as Meat and list out all the different requests and call Sugar Sugar and take whatever the latest non blank value is they want the output to then look like

    Name Update
    Fruit Lemon: 2 Please
    Orange: 2
    Sugar White
    Meat Snapshot 1: Chicken
    Snapshot 3: Beef

    So far using a lot of Vlookups and CONCATENATE over several tabs I can get all the data but I cant get the format, the CONCATENATE adds extra blank return lines where the cells are empty, occationally there are more events than expected which goes outside of the created spreadsheet, there are lots of places to update when new things come in and to get the data in that format I have the options of either a output sheet which doesnt group or pivot table that doesnt show the CONCATENATE returns or put in 2 columns, both options remove all the names with blanks then can be copied in manually and reformatted but if I can get it to show in the desired format first time I can probably embed the file on the webpage.

    I tried the power pivott & power query for first time today, power query seemed potentially useful except the second column shows "table" and I couldnt work out how to then define how to get specific table info to show in its place

    Thanks for all who managed to read this far, wasnt sure how to put it in a shorter format than this :S
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Getting a Pivot but not for numbers

    Welcome to the forum!

    I'm a little confused by your process. Is there a uniform rule for combining table data into updates? For the fruit, your update column contains one line for each row (lemon, orange), while for meat your update column contains one line for each column (beef, chicken). If each category has a separate rule in the way that it's fed into the output table, I don't think that a general pivot approach will suffice - you'll need to provide a specific list of categories and their associated rules.
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Registered User
    Join Date
    06-05-2018
    Location
    Glasgow
    MS-Off Ver
    2010
    Posts
    4

    Re: Getting a Pivot but not for numbers

    The process is very antiquated, trying to fix but the data comes from a long manual chain so starting with what I can get.

    I will have a list which I will need to maintain which will have all of the names like Lemon, orange, etc and it will say a few rules day zero being what group its in and if it is to do all or just the latest. I technically have multiple formats for all in my current monster version but the data just isnt clean enough so assume they are all like meat if they are all snapshots.

    Something like below:

    Component Service Version
    Lemon Fruit Latest
    Orange Fruit Latest
    Sugar Sugar Latest
    Meat Meat All

    I think I might have chosen some bad examples for the dummy spreadsheet but basically a team has an ever growing list of things that come in to them that they need to put in individually, like the the lemon or the meat, the reference is usually a code for whatever it is but it could contain a long explaination. Then when things come to the end of the cycle which is were we get all this data we issue out a request for each group, the vast majority of groups will only have came from 1 line like the sugar in the example but most of the lines will fit into just a few groups, for example fruit goes on 1 request so we need it on 1 row as there is a lot more details for that row outside this process but in order to make sure they pick up eatch item the second row needs to break down the individual items and comment.

    The way I have currently done it is that for every line it does a CONCATENATE version and a latest version through a long series of if's, both of which are not great if suddenly 10 more snapshots than expected come through

    Then another table does a vlookup to pick whichever is relevent from the rules table and inserts the value but it still leaves a messy collection of data from the CONCATENATE and in a format which doesnt group them neatly without a copy paste job
    Last edited by AJMAC88; 06-05-2018 at 06:36 PM.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Getting a Pivot but not for numbers

    is that similar to ?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-05-2018
    Location
    Glasgow
    MS-Off Ver
    2010
    Posts
    4

    Re: Getting a Pivot but not for numbers

    Might be because its on phone but not showing how the data got in (assuming its not typed)

    Its the flip side of my issues, I can get the right versions but cant group them and ^^ attachment has them grouped but too many version details. Fruit and sugar dont need to mention snapshots just show the value from last one. Meats right.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Getting a Pivot but not for numbers

    Quote Originally Posted by AJMAC88 View Post
    Might be because its on phone but not showing how the data got in (assuming its not typed)
    Because it's PowerQuery

  7. #7
    Registered User
    Join Date
    06-05-2018
    Location
    Glasgow
    MS-Off Ver
    2010
    Posts
    4
    Quote Originally Posted by sandy666 View Post
    Because it's PowerQuery
    How do i get the data into 1 cell in power query?

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Getting a Pivot but not for numbers

    Power Query for
    • Excel 2010 Pro Plus or Excel 2013 Pro Plus can be downloaded as free add-in from MS site (choose correct version). I suggest Power Pivot also
    • Excel 2016 or Excel 365 is built-in, aka Get&Transform
    • PowerQuery works with M-language and does not contain any classic formulae or vba code
    • What PowerQuery is? see here: Getting Started with PowerQuery (Get&Transform) in Excel

      you said
      Quote Originally Posted by AJMAC88 View Post
      I tried the power pivott & power query for first time today, power query seemed potentially useful except the second column shows "table" and I couldnt work out how to then define how to get specific table info to show in its place

    edit:
    open PQ editor
    see steps there (one by one)
    edit steps to see how it was done
    Last edited by sandy666; 06-06-2018 at 08:10 AM. Reason: see edit

+ 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. Keep the same numbers in pivot
    By Keshypops in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-26-2017, 07:56 AM
  2. Pivot Table- Increment Row Numbers On New Row Add
    By dcerone23 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-17-2016, 02:28 PM
  3. Pivot not display numbers, although it is there
    By Efendi in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-03-2016, 05:52 AM
  4. Counting like numbers as 1 in a pivot table
    By BadKornFlake in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 11-16-2015, 10:59 AM
  5. Top 10 Only Positive Numbers in a Pivot
    By Maroota in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-28-2015, 11:17 AM
  6. Grouping numbers in a pivot table?
    By orville.jackson in forum Excel General
    Replies: 1
    Last Post: 05-17-2008, 12:38 PM
  7. sum up of several percentage numbers in pivot
    By EmilT in forum Excel General
    Replies: 1
    Last Post: 10-10-2007, 07:54 AM

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