+ Reply to Thread
Results 1 to 6 of 6

How to group non-numeric data?

  1. #1
    Registered User
    Join Date
    09-06-2011
    Location
    Seattle, USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    How to group non-numeric data?

    Hi, I'm new to the forum and have what is probably a newbie question.

    I am looking to make a pie or pivot chart from a column that has been sorted from either-or string values. For example, if my workbook has a column with fruit names I would like to make the chart showing the percentage of apples vs. all other fruit and have all those other fruit types grouped together into one slice of the pie.

    I know there's probably a number of ways of doing this but would appreciate any help.

    Thanks,
    Ras

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: How to group non-numeric data?

    Hello & Welcome to the Board,

    How about you use CountA to count the fruits in column A and then use Countif to just get the count of Apples.

    =COUNTA(A1:A10)
    =COUNTIF(A1:A10,"Apples")

    Then create the pie off of the formulas
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    09-06-2011
    Location
    Seattle, USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: How to group non-numeric data?

    Quote Originally Posted by jeffreybrown View Post
    Hello & Welcome to the Board,

    How about you use CountA to count the fruits in column A and then use Countif to just get the count of Apples.

    =COUNTA(A1:A10)
    =COUNTIF(A1:A10,"Apples")

    Then create the pie off of the formulas
    Jeff, thanks so much!

    I wanted to not look stupid before asking again but I am a true-blue newbie in Excel! I can't have two formulas in the same cell so the way you're suggesting do I need to create two new columns with the one containing the countif referencing the first count? Not sure of the setup at this point but will keep fooling around... will likely learn something regardless :-)

    Thanks again,
    Ras

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: How to group non-numeric data?

    Hi Ras,

    No problem. Look at this example...

    Chart data comes from column D and E
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-06-2011
    Location
    Seattle, USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: How to group non-numeric data?

    Awesome! Thanks so much for this!!

    :-)

    Ras

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: How to group non-numeric data?

    You are very welcome...glad it worked for you

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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