Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 460
Default Change Pie Chart segment color based on value in source data

I am creating a training matrix which shows current status of training
progress. I want the pie chart to always display three equal segments. I want
each segment color to change based on the data input in the source data.
Hopefully this is an adequate definition of what I am trying to do?
--
Doug
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default Change Pie Chart segment color based on value in source data

Hi,

Assuming you have 3 possible colours for each segment you need to create
a pie chart based on 9 cells. The content of the cells is determined by
formula and will either display a 1 or 0.

Training data in range B2:B4 with values 1, 2 or 3 to indicate level.
Formula in cells F1:F9

F1: =IF(B2=1,1,0)
F2: =IF(B2=2,1,0)
F3: =IF(B2=3,1,0)
F4: =IF(B3=1,1,0)
F5: =IF(B3=2,1,0)
F6: =IF(B3=3,1,0)
F7: =IF(B4=1,1,0)
F8: =IF(B4=2,1,0)
F9: =IF(B4=3,1,0)

So create your pie chart on the range F1:F9. The pie should only display
3 slices. Use the legend keys to format the colours of each of the
segments. Points (1,4,7) , (2,5,8) and (3,6,9) should be formatted in
the appropriate progress level.

If you have move than 3 levels of progress you simply need to increase
the number of formula based cells.

Cheers
Andy

Doug wrote:
I am creating a training matrix which shows current status of training
progress. I want the pie chart to always display three equal segments. I want
each segment color to change based on the data input in the source data.
Hopefully this is an adequate definition of what I am trying to do?


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 460
Default Change Pie Chart segment color based on value in source data

Andy,
Your solution works perfectly. Thank you for your help!!
--
Doug


"Doug" wrote:

I am creating a training matrix which shows current status of training
progress. I want the pie chart to always display three equal segments. I want
each segment color to change based on the data input in the source data.
Hopefully this is an adequate definition of what I am trying to do?
--
Doug

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change source data in a pivot chart johnb Charts and Charting in Excel 4 September 12th 07 04:40 PM
Can't change source data path for Pivot Chart Mike B in VT Charts and Charting in Excel 1 February 18th 06 11:43 PM
How do I change fill color in excel based on data in the cell Jason Southco Excel Worksheet Functions 1 September 29th 05 04:56 PM
formatting color based on source column NickPR Excel Discussion (Misc queries) 1 September 20th 05 02:08 AM
Color Change in chart based of condition KRT Charts and Charting in Excel 1 July 1st 05 12:51 PM


All times are GMT +1. The time now is 07:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"