+ Reply to Thread
Results 1 to 9 of 9

Pie chart- group by cell value

  1. #1
    Registered User
    Join Date
    08-14-2019
    Location
    Montenegro
    MS-Off Ver
    MS Excel 365
    Posts
    9

    Pie chart- group by cell value

    Hello,


    I have multiple accounts which are billed each day with different value, it looks something like this (sorry for using Google Sheets, typing from my laptop )
    Screen Shot 2019-08-14 at 10.24.22 PM.png

    When I try to visualize this via pie chart I get the following result (as expected):
    Screen Shot 2019-08-14 at 10.29.44 PM.png

    I would like to group by the account with a similar name (in my case "ARGO") so it looks something like this:
    Screen Shot 2019-08-14 at 10.30.38 PM.png

    How can I do this automatically, I have 10000 of rows with the same pattern, any help is very appreciated.

    Thanks a lot
    Last edited by Rule; 08-14-2019 at 05:21 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Pie chart- group by cell value

    the recommendation I would make is to make a helper column, say column C and use =LEFT(B3,SEARCH(" ",B3)*1) to pull out all the accounts without the numbers, then use that for the graph, or elsewhere you can consolidate all the information into a smaller subset to use for the chart.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    08-14-2019
    Location
    Montenegro
    MS-Off Ver
    MS Excel 365
    Posts
    9

    Re: Pie chart- group by cell value

    Thank you, Sambo kid

    You were right Helper column is the good way to this and bellow is my result:
    11.png

    I used this function
    Please Login or Register  to view this content.
    How can I extend this function to preserve original cell value if not match found (in my case account name) instead of #Value! ?

    Thanks

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Pie chart- group by cell value

    I’m not sure, why did you change the formula from what I gave you, it would return everything up to the first space, no #VALUE.

  5. #5
    Registered User
    Join Date
    08-14-2019
    Location
    Montenegro
    MS-Off Ver
    MS Excel 365
    Posts
    9

    Re: Pie chart- group by cell value

    Hello, your formula was very good.

    However I wanted to preserve original account names (XTX 67 and ECO 5) instead of just "XTX" and "ECO".
    Current formula cuts everything after the first word, and I need only "ARGO" to be summarized and others to remain intact.

    Thanks for help

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Pie chart- group by cell value

    well, based on your snapshot in your first post, if you want to have exact names you can apply an IF to your formula like...
    =IF(LEFT(C3,SEARCH("ARGO ",C3)*4)="ARGO ","ARGO ",B3)
    untested and a guess but seems logical

  7. #7
    Registered User
    Join Date
    08-14-2019
    Location
    Montenegro
    MS-Off Ver
    MS Excel 365
    Posts
    9

    Re: Pie chart- group by cell value

    I did try your formula but is still evaluates other accounts as #VALUE.

    Attachment 637355

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,832

    Re: Pie chart- group by cell value

    I can't see your attachment, but won't this work?:
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    08-14-2019
    Location
    Montenegro
    MS-Off Ver
    MS Excel 365
    Posts
    9

    Re: Pie chart- group by cell value

    Quote Originally Posted by Gregb11 View Post
    I can't see your attachment, but won't this work?:
    Please Login or Register  to view this content.
    Brilliant, that worked indeed!
    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)

Similar Threads

  1. Generate random group of words in a cell from a large group word list in column
    By faizzsheikh in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-26-2018, 10:16 AM
  2. Replies: 14
    Last Post: 01-12-2017, 01:41 PM
  3. Replies: 7
    Last Post: 06-09-2016, 09:48 PM
  4. [SOLVED] (VBA) How Assign Column Cell To Corresponding Group, and Paste Group Cells into Groups WS?
    By eryksd in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-08-2016, 06:18 PM
  5. Text boxes in chart move even when I group them with chart?
    By mecexcel in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-17-2015, 10:34 AM
  6. Replies: 0
    Last Post: 10-21-2014, 03:20 PM
  7. Replies: 1
    Last Post: 02-10-2014, 10:26 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