+ Reply to Thread
Results 1 to 6 of 6

Display a Pie Chart from a Fraction

  1. #1
    Forum Contributor
    Join Date
    05-16-2007
    Location
    USA
    MS-Off Ver
    MS Office 2016, Excel 2016
    Posts
    214

    Display a Pie Chart from a Fraction

    Is it possible to make a pie chart from one cell with a fraction in it?

    I tried, but the pie chart only seems to read the cell as one point or one value. I assume because it is looking for a table of data to process rather than a single cell that is the sum of all the data.

    I put 5/6 in cell I9, inserted a 2d pie chart, hoping it would display a pie with 5 pieces cut out. But instead it only shows one small piece.

    Apparently it's not as easy as I thought it would be.

    Any suggestions for such a simple task?

    Mike

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Display a Pie Chart from a Fraction

    In I10, =1-I9

    Then format the smaller slice to have no fill. Rotate 120 degrees to look like Pac-Man.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    05-16-2007
    Location
    USA
    MS-Off Ver
    MS Office 2016, Excel 2016
    Posts
    214

    Re: Display a Pie Chart from a Fraction

    Quote Originally Posted by shg View Post
    In I10, =1-I9

    Then format the smaller slice to have no fill. Rotate 120 degrees to look like Pac-Man.
    Thanks!

    Using your method, the 5 in 5/6 is represented as one solid color or slice of the pie. I need each piece to be delineated.

    Is this even possible with Excel?

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Display a Pie Chart from a Fraction

    You need an entry for each slice that you want. To get "5" slices of a pie, you need 5 entries. If you need 6 slices (which is what it sounds like you want), then you need 6 entries. As shg has suggested, the 6th slice can be 1-sum(previous 5 slices) to force the total to be 1.

    Please Login or Register  to view this content.
    will give you 6 equal portions of a pie.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Contributor
    Join Date
    05-16-2007
    Location
    USA
    MS-Off Ver
    MS Office 2016, Excel 2016
    Posts
    214

    Re: Display a Pie Chart from a Fraction

    To be honest, this is not going in the direction I really need it to. The fractions are calculated from other data and I was hoping I could just format the results as a simple pie chart. For now, I think I will search and download some pie charts online and use IF conditions in Excel to display the correct pie chart for the corresponding fraction.

    Would be so much easier though if I could just have Excel generate the correct pie chart based on the fraction alone.

    Thanks again for all your suggestions!

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Display a Pie Chart from a Fraction

    Would be so much easier though if I could just have Excel generate the correct pie chart based on the fraction alone.
    I'm sure it can be done, but you, the programmer, need to tell Excel how to take "one fraction" and separate it out into its parts. The flow of logic that I see you describing:

    1) Computations that compute individual fractions of a whole.
    2) These fractions are combined into a single fraction of the whole
    3) You want Excel to take that single fraction and separate it back out into multiple fractions (same fractions as 1 or different?) and display in a pie chart.

    If the result of step 3 should be the same fractions as computed in step 1, then simply bypass step 2 and base the pie chart on the results of step 1. If the result of step 3 is a different set of fractions, then add formulas in Excel to compute these fractions from the result of step 2 and base your pie chart on those.

+ 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. Replies: 6
    Last Post: 10-04-2014, 12:39 PM
  2. Replies: 3
    Last Post: 09-04-2013, 01:56 AM
  3. Replies: 10
    Last Post: 06-11-2013, 06:11 PM
  4. How to display decimal as fraction and mm
    By STU22 in forum Excel General
    Replies: 1
    Last Post: 12-31-2012, 02:34 PM
  5. Replies: 7
    Last Post: 12-17-2010, 04:23 PM
  6. Cell to display as a fraction ?
    By Andrewmark in forum Excel General
    Replies: 2
    Last Post: 03-21-2005, 10:54 AM
  7. Display ONLY fraction portion of number
    By John F in forum Excel General
    Replies: 4
    Last Post: 01-06-2005, 12:06 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