+ Reply to Thread
Results 1 to 8 of 8

Formula/Chart representing percentages

  1. #1
    Registered User
    Join Date
    10-17-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Formula/Chart representing percentages

    Hi, I have a spreadsheet with many rows representing records, and columns of different types of data. Column 1 indicates what region the record falls under and there are 8 regions in total. Column 2 is numerical and for each row, there's a number assigned. For example, 1 row might fall under region Japan and column 2 might have the number 17, while the next row might fall under region Southeast Asia and under column 2 it'll have the number 9. Some rows don't have numbers in column 2 at all, which indicates 0.

    I want to create a chart that expresses the number of records with a number in column 2 relative to the total number of records. e.g. let's say there are 100 rows falling under region Japan, but only 56 of them have a non-zero number in column 2. Thus, the chart should show Japan at 56%. Does this make sense?

    How would I go about doing this? Do I first need to create another table with formulas that calculates these percentages, then create a chart from this? If so, does someone have a sample formula I could use that helps to check through the spreadsheet for relevant rows of each region and takes note of whether they have a non-zero number in column 2?

    Thanks!

  2. #2
    Registered User
    Join Date
    10-17-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formula/Chart representing percentages

    To elaborate, here's an example:

    Region Number
    Japan 2
    Japan
    SE Asia 4
    Korea 17
    Japan 8
    Japan
    Japan 3

    So, Japan would be at 60% in this case, since there are 5 Japan rows but only 3 of them have a non-zero number

  3. #3
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Re: Formula/Chart representing percentages

    Hi there, looks relatively simple. Your idea
    Do I first need to create another table with formulas that calculates these percentages, then create a chart from this?
    may be the easiest.

    Can you please post an example workbook with some sample records for me to play with. I will then post a solution.
    --
    Regards
    PD

    ----- Don't Forget -----

    1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks

    2. Thank those who have helped you by Clicking the scales above each post.

    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  4. #4
    Registered User
    Join Date
    10-17-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formula/Chart representing percentages

    Hey, thanks for the reply - posted an example above

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Formula/Chart representing percentages

    nb123, the idea is to post an Excel file, so we don't have to recreate your data in order to help you.

  6. #6
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Re: Formula/Chart representing percentages

    Hi There, please find attached.
    Attached Files Attached Files
    Last edited by pr4t3ek; 10-17-2010 at 11:34 PM.

  7. #7
    Registered User
    Join Date
    10-17-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formula/Chart representing percentages

    Thanks guys, that's exactly what I was looking for - but I can't figure out how to replicate this on my spreadsheet? I see that you're using the pivottable feature, but I'm not sure how to go about using this. Could someone guide me through it please? Much appreciate the help

  8. #8
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Formula/Chart representing percentages

    Here's a link to get started with pivot tables:

    http://peltiertech.com/Excel/Pivots/pivotstart.htm

+ 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