Line chart with conditional formatting

sharshra

Active Member
Joined
Mar 20, 2013
Messages
276
Office Version
  1. 365
I have made a chart with conditional formatting to indicate up & down trends. It works correctly when the trend is up or down. But when the trend changes, it doesn't give the correct result. Not sure how to correct this. Can someone suggest to resolve the issue?

Table & chart is given below for illustration. Date & sales are actual columns. Columns up & down are added for conditional formatting. As seen in the chart, when the trend is up, red line is there & when trend is down, green line is used. But when trend changes from down to up or up to down, it doesn't correspond to red or green colour lines. These transitions are circled in the chart below for quick reference.
DateSalesupdown
01-Nov-211,011#N/A1011
02-Nov-21746#N/A746
03-Nov-21638#N/A638
04-Nov-21594#N/A594
05-Nov-21576#N/A576
06-Nov-21543#N/A543
07-Nov-21601601#N/A
08-Nov-21657657#N/A
09-Nov-21675675#N/A
10-Nov-21494#N/A494
11-Nov-21492#N/A492
12-Nov-21358#N/A358
13-Nov-2155#N/A55
14-Nov-216565#N/A
15-Nov-21550550#N/A


1639447850221.png
 
If the formatting is based on each set of two adjacent points, you need three sets of data. It doesn't matter what your data looks like. You will never have to change the way the table is set up, just the number of rows.
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,215,581
Messages
6,125,657
Members
449,247
Latest member
wingedshoes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top