![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Location: India
Posts: 10
|
Hai I have to draw a bar chart such that, For each bar the colour should be blue if the highest value is less than 7 Else up to 7 blue and rest should be red.
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Leiden, The Netherlands
Posts: 68
|
You could make a stacked bar chart with two values ranges: one containing the part of each value that is less or equal to 7, and the other containing the rest value. To obtain this, add two colums next to the original values column with the following formulas (assuming the original values are in column B, starting in B2):
Column C (formula for cell C2, to be copied down): =MIN(B2,7) Column d (formula for cell D2, to be copied down): =MAX(B2-C2,0) Now make a stacked bar chart using the X-values and the values in columns C and D. Marc |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|