Shade area around line with high and low error values

JacobusV

New Member
Joined
Mar 12, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
I have a line graph with a range of positive and negative values. Also both hi and low values that I want to shade on both sides of the line graph. The majority of the data points are negative, which made me choose the low value as the stacked area and the high value as the area. Everything below zero turns our how I want it but above zero there is no shaded area, only the line. Any assistance to get the positive values shaded as well would be welcome.

Weekly_Tracker_Excel.xlsx
ABCD
1dateTrackerLowHigh
22020-01-051.7%0.2%4.0%
32020-01-122.2%0.9%4.2%
42020-01-192.3%0.7%4.3%
52020-01-260.9%-0.9%3.3%
62020-02-020.5%-1.2%2.6%
72020-02-09-0.2%-2.0%1.6%
82020-02-160.2%-1.5%1.9%
92020-02-232.2%0.4%4.3%
102020-03-01-2.0%-4.6%0.0%
112020-03-08-1.8%-3.8%0.0%
122020-03-15-4.1%-8.0%-0.5%
132020-03-22-13.3%-17.8%-6.6%
142020-03-29-21.6%-26.7%-13.0%
152020-04-05-19.6%-25.4%-11.1%
162020-04-12-22.1%-27.3%-13.5%
172020-04-19-22.7%-28.3%-15.1%
182020-04-26-21.2%-25.0%-14.6%
192020-05-03-19.2%-23.5%-13.1%
202020-05-10-19.7%-23.2%-13.6%
212020-05-17-15.9%-19.4%-10.5%
222020-05-24-15.6%-18.7%-10.6%
232020-05-31-14.0%-16.9%-10.1%
242020-06-07-9.4%-11.8%-6.1%
252020-06-14-9.5%-13.3%-5.9%
262020-06-21-12.5%-15.1%-9.4%
272020-06-28-11.0%-14.5%-7.9%
282020-07-05-10.1%-13.8%-7.1%
292020-07-12-7.2%-10.5%-3.9%
302020-07-19-7.2%-10.7%-3.7%
312020-07-26-7.3%-10.9%-4.0%
322020-08-02-6.4%-8.9%-3.5%
332020-08-09-6.3%-8.8%-3.8%
342020-08-16-5.0%-7.2%-2.4%
352020-08-23-3.2%-4.9%-1.0%
362020-08-30-1.5%-3.3%0.5%
372020-09-06-2.7%-5.5%0.0%
382020-09-13-5.9%-8.4%-3.7%
392020-09-20-4.8%-7.2%-2.4%
402020-09-27-4.0%-6.3%-1.4%
412020-10-04-2.7%-5.3%-0.6%
422020-10-11-1.9%-4.3%0.0%
432020-10-18-1.9%-4.2%-0.1%
442020-10-25-2.3%-4.4%-0.3%
452020-11-01-1.1%-2.8%1.1%
462020-11-08-4.3%-6.5%-1.9%
472020-11-15-3.9%-6.0%-1.2%
482020-11-22-2.6%-4.7%-0.6%
492020-11-29-4.7%-7.3%-1.7%
502020-12-06-2.0%-4.9%0.9%
512020-12-13-0.5%-2.8%1.7%
522020-12-20-1.2%-3.5%0.9%
532020-12-27-4.0%-7.3%-0.8%
542021-01-03-5.8%-10.0%-2.7%
552021-01-10-4.1%-6.7%-1.3%
562021-01-17-4.9%-7.9%-2.3%
572021-01-24-2.9%-5.5%-0.4%
582021-01-31-1.4%-3.9%0.5%
592021-02-07-2.2%-4.6%0.0%
602021-02-14-1.1%-3.2%1.0%
612021-02-21-1.7%-4.5%0.5%
622021-02-28-0.9%-3.1%1.1%
South Africa
 

Attachments

  • Shaded are missing above zero.png
    Shaded are missing above zero.png
    24.9 KB · Views: 16

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Work around: a white area to correct low > 0 and high < 0
Map5
ABCDE
1dateTrackerLowHighNeg/Pos
25-1-202015%10%20%10%
312-1-202012%10%20%10%
419-1-202012%10%15%10%
526-1-20201%-1%3%0%
62-2-20201%-1%3%0%
79-2-20200%-2%2%0%
816-2-20200%-2%2%0%
923-2-20202%0%4%0%
101-3-2020-2%-5%0%0%
118-3-2020-2%-4%0%0%
1215-3-2020-4%-8%0%0%
1322-3-2020-13%-18%-7%-7%
1429-3-2020-22%-27%-13%-13%
155-4-2020-20%-25%-11%-11%
Blad1
Cell Formulas
RangeFormula
E2:E15E2=IF(C2>0,C2,IF(D2<0,D2,0))
 
Upvote 0
Work around: a white area to correct low > 0 and high < 0
Map5
ABCDE
1dateTrackerLowHighNeg/Pos
25-1-202015%10%20%10%
312-1-202012%10%20%10%
419-1-202012%10%15%10%
526-1-20201%-1%3%0%
62-2-20201%-1%3%0%
79-2-20200%-2%2%0%
816-2-20200%-2%2%0%
923-2-20202%0%4%0%
101-3-2020-2%-5%0%0%
118-3-2020-2%-4%0%0%
1215-3-2020-4%-8%0%0%
1322-3-2020-13%-18%-7%-7%
1429-3-2020-22%-27%-13%-13%
155-4-2020-20%-25%-11%-11%
Blad1
Cell Formulas
RangeFormula
E2:E15E2=IF(C2>0,C2,IF(D2<0,D2,0))
Thank you. I did implement the step and it works for 99% of the graph. There are still a few places where the areas above and below do not connect properly.
 

Attachments

  • Shaded areas not connecting.png
    Shaded areas not connecting.png
    152.2 KB · Views: 13
Upvote 0
Layer 1 is stacked area no color
Layer 2 is stacked area color green
Tracker is line color blue
Order: layer 1 - layer 2 -Tracker


grafiek lijn met vlak voor afwijking.xlsx
ABCDEF
1dateTrackerLowHighLayer 1Layer 2
25-1-20201,7%0,2%4,0%0,2%3,8%
312-1-20202,2%0,9%4,2%0,9%3,3%
419-1-20202,3%0,7%4,3%0,7%3,6%
526-1-20200,9%-0,9%3,3%-0,9%4,2%
62-2-20200,5%-1,2%2,6%-1,2%3,8%
79-2-2020-0,2%-2,0%1,6%-2,0%3,6%
816-2-20200,2%-1,5%1,9%-1,5%3,4%
923-2-20202,2%0,4%4,3%0,4%4,0%
101-3-2020-2,0%-4,6%0,0%-4,6%4,7%
118-3-2020-1,8%-3,8%0,0%-3,8%3,9%
1215-3-2020-4,1%-8,0%-0,5%-8,0%7,5%
1322-3-2020-13,3%-17,8%-6,6%-17,8%11,2%
1429-3-2020-21,6%-26,7%-13,0%-26,7%13,7%
155-4-2020-19,6%-25,4%-11,1%-25,4%14,3%
Blad1
Cell Formulas
RangeFormula
E2:E15E2=C2
F2:F15F2=D2-E2
 
Upvote 0

Forum statistics

Threads
1,214,545
Messages
6,120,132
Members
448,947
Latest member
test111

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