+ Reply to Thread
Results 1 to 3 of 3

Pie Chart "Gas Gauge"

  1. #1
    Patrick
    Guest

    Pie Chart "Gas Gauge"

    I hope this is a simple question. How do I get a pie chart to begin at 100%
    availability and decrease based on a sum at the end of a column of values? If
    I can color it, ie. 100%-75% green 74%-50% yellow, and 49% or less as red,
    that would be even better. The only thing I can relate it to is an
    automobile's gas gauge.

  2. #2
    Andy Pope
    Guest

    Re: Pie Chart "Gas Gauge"

    Hi,

    Here are some formula to create the effect.
    A1: =50 (or whatever your summed value is

    B1: =Green C1: =IF(AND(A1>=75,A1<=100),A1,0)
    B2: =Yellow C2: =IF(AND(A1>=50,A1<75),A1,0)
    B3: =Red C3: =IF(AND(A1>=1,A1<50),A1,0)
    B4: =White C4: =100-SUM(C1:C3)

    Select the range B1:C4 and create a pie chart. Colour the slices to
    match the slice names. Adjusting the value in A1 will adjust the share
    of the 2 visible slices with the colours matching your value bands.

    For a more gauge looking pie chart have a look at Jon Peltier's example.
    http://peltiertech.com/Excel/Charts/SpeedometerXP.html

    For a more gauge looking xy chart have a look here
    http://www.andypope.info/charts/gauge.htm

    Cheers
    Andy

    Patrick wrote:
    > I hope this is a simple question. How do I get a pie chart to begin at 100%
    > availability and decrease based on a sum at the end of a column of values? If
    > I can color it, ie. 100%-75% green 74%-50% yellow, and 49% or less as red,
    > that would be even better. The only thing I can relate it to is an
    > automobile's gas gauge.


    --

    Andy Pope, Microsoft MVP - Excel
    http://www.andypope.info

  3. #3
    Jon Peltier
    Guest

    Re: Pie Chart "Gas Gauge"

    Try this approach:

    http://peltiertech.com/Excel/Charts/SpeedometerXP.html

    - Jon
    -------
    Jon Peltier, Microsoft Excel MVP
    Peltier Technical Services
    Tutorials and Custom Solutions
    http://PeltierTech.com/
    _______


    "Patrick" <Patrick@discussions.microsoft.com> wrote in message
    news:9D8FDEEF-76A5-42D9-AF15-7F1E9916AF20@microsoft.com...
    >I hope this is a simple question. How do I get a pie chart to begin at 100%
    > availability and decrease based on a sum at the end of a column of values?
    > If
    > I can color it, ie. 100%-75% green 74%-50% yellow, and 49% or less as red,
    > that would be even better. The only thing I can relate it to is an
    > automobile's gas gauge.




+ 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