Conditional Formatting of a stacked chart that adds YTD totals

chi1wxc

New Member
Joined
Jul 6, 2015
Messages
2
I have a stacked chart that needs conditional formatting dependent on YTD totals. Actuals under YTD Target are formatted Green and over YTD target are formatted Red. The Problem I'm having with the conditional formatting is when a YTD total crosses from Under to Over the Target (or Vice a Versa).
A sample of he data is below:
[TABLE="width: 650"]
<tbody>[TR]
[TD="width: 84, bgcolor: transparent"][/TD]
[TD="width: 75, bgcolor: #E4DFEC"]Jan[/TD]
[TD="width: 68, bgcolor: #E4DFEC"]Feb[/TD]
[TD="width: 64, bgcolor: #E4DFEC"]Mar[/TD]
[TD="width: 64, bgcolor: #E4DFEC"]Apr[/TD]
[TD="width: 64, bgcolor: #E4DFEC"]May[/TD]
[TD="width: 64, bgcolor: #E4DFEC"]Jun[/TD]
[TD="width: 64, bgcolor: #E4DFEC"]Jul[/TD]
[TD="width: 64, bgcolor: #E4DFEC"]Aug[/TD]
[TD="width: 64, bgcolor: #E4DFEC"]Sep[/TD]
[TD="width: 64, bgcolor: #E4DFEC"]Oct[/TD]
[TD="width: 64, bgcolor: #E4DFEC"]Nov[/TD]
[TD="width: 64, bgcolor: #E4DFEC"]Dec[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Target[/TD]
[TD="bgcolor: transparent"] 506 [/TD]
[TD="bgcolor: transparent"] 476 [/TD]
[TD="bgcolor: transparent"] 491 [/TD]
[TD="bgcolor: transparent"] 495 [/TD]
[TD="bgcolor: transparent"] 501 [/TD]
[TD="bgcolor: transparent"] 489 [/TD]
[TD="bgcolor: transparent"] 508 [/TD]
[TD="bgcolor: transparent"] 503 [/TD]
[TD="bgcolor: transparent"] 519 [/TD]
[TD="bgcolor: transparent"] 487 [/TD]
[TD="bgcolor: transparent"] 471 [/TD]
[TD="bgcolor: transparent"] 517 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]2018 AOP[/TD]
[TD="bgcolor: transparent"] 506 [/TD]
[TD="bgcolor: transparent"] 476 [/TD]
[TD="bgcolor: transparent"] 491 [/TD]
[TD="bgcolor: transparent"] 495 [/TD]
[TD="bgcolor: transparent"] 501 [/TD]
[TD="bgcolor: transparent"] 489 [/TD]
[TD="bgcolor: transparent"] 508 [/TD]
[TD="bgcolor: transparent"] 503 [/TD]
[TD="bgcolor: transparent"] 519 [/TD]
[TD="bgcolor: transparent"] 487 [/TD]
[TD="bgcolor: transparent"] 471 [/TD]
[TD="bgcolor: transparent"] 517 [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]2018 Act[/TD]
[TD="bgcolor: transparent"] 541 [/TD]
[TD="bgcolor: transparent"] 476 [/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Above AOP[/TD]
[TD="bgcolor: transparent"] 541 [/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[TD="bgcolor: transparent, align: center"]#N/A[/TD]
[/TR]
[TR]
[TD]Below AOP[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: right"]476[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
</tbody>[/TABLE]

A stacked graph will only graph the "Above AOP" or the "Below AOP", but not the YTD total. Solution?
 
Last edited by a moderator:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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