Custom data label color based on another cell Value (Priority)

SereneSea

New Member
Joined
Feb 2, 2022
Messages
43
Office Version
  1. 2016
Platform
  1. Windows
Good morning,
Another question on my mind. Is there away to have data lables automatically change color based on another cell? I have a gantt chart and for high priority status (Column I) i would like the labels to change colors to be easier seen. I realize I can do this manually but this chart will be populated by many users so I want to ensure same formatting for high priority.

Thanks in advance!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
You can do this, by using conditional formatting (just as you maybe have other places in the Gantt Chart). Mark the area you will use, and in conditional format choose, "New rule" and insert: IF(A$1=1;TRUE). A1 has to reflect the cell you have the value in, and 1 in the formula, are the value you will use.
 
Upvote 0
hmm. forgive my misunderstanding. I already have conditional formatting in the I Column for priorities, (when "high" is selected it turns red, "medium" orange and "low" green), but how do i get the data labels ON the chart to reflect a different color based on what priority it is in the I column. As in, if "High" Priority is selected for the task, the color of the bars in the chart will turn red .
 
Upvote 0
It's difficult, only out from your description, to "see" exactly how your formatting looks, and what you actual want. Is it correct understood, out of your latest description, that you want to have the label in Column I, to change out from what are the priority in that Column?
Your question was, "...change color, based on another cell"!
 
Upvote 0
Sorry for my miscommunication. I am talking about conditional formatting on the gantt (bar chart). I have attached a photo . I would like the circled to be a different label according to my priority cell in the table.



1644604791018.png
 
Upvote 0
Sorry for my miscommunication. I am talking about conditional formatting on the gantt (bar chart). I have attached a photo . I would like the circled to be a different label according to my priority cell in the table.



View attachment 57608
Without having some data, it would be difficult to give a clear answer. I do not know, what lays behind your formatting, so it will only be guessing.
A Gantt Chart formatting, are normally based on date range, which control the formatting (that's the idea with a Gantt Chart). Try use the XL2BB tool, to upload some data.
 
Upvote 0
example with chart.xlsm
CDEFGHIJKLMNOPQR
12022DO not delete Columns K to O please
2
3Plan Start2/1/202212/31/2022% Complete 0%
4ConcatDepartmentTestTrainerTraineeTrainee AreaPRIORITYSTARTPLAN ENDACTUAL END% COMPLETEProject Start-(chart start)Days to StartCompleteIncompletePlan Days
5Unicorn (T: whiskers)AlphaUnicornwhiskersBirdDeltaMEDIUM4/5/20227/2/20220%2/1/20226308888
6Frog (T: Pluto)OmegaFrogPlutoWhiskersOmegaHIGH4/5/20226/3/20220%2/1/20226305959
7Cat (T: Saturn)DeltaCatSaturnPlutoAlphaLOW4/5/20226/3/20220%2/1/20226305959
8
Entry
Cell Formulas
RangeFormula
M3M3=AVERAGE(Table1[% COMPLETE])
N5:N7N5=$I$3
O5:O7O5=IF(ISBLANK(J5),0,J5-N5)
P5:P7P5=$M5*$R5
Q5:Q7Q5=R5-P5
R5:R7R5=IF(ISBLANK(K5),0,K5-J5)
C5:C7C5=CONCAT([@Test]," (T: ",[@Trainer],")")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I5Cell Valuecontains "LOW"textNO
I5Cell Valuecontains "MEDIUM"textNO
I5Cell Valuecontains "HIGH"textNO
M3Other TypeColor scaleNO
M5:M8Other TypeDataBarNO
I4,I6:I7Cell Valuecontains "LOW"textNO
I4,I6:I7Cell Valuecontains "MEDIUM"textNO
I4,I6:I7Cell Valuecontains "HIGH"textNO
Cells with Data Validation
CellAllowCriteria
I5:I7ListHIGH,MEDIUM,LOW
M5:M7List=$F$20:$F$24
 
Upvote 0
I'm not sure, if it was similar to this, you had in mind.

Edited: See below
 
Upvote 0
Some formatting was missing ;)

Mappe1
CDEFGHIJKLMNOPQR
12022DO not delete Columns K to O please
2
3Plan Start02-01-202212/31/2022% Complete =AVERAGE(Table1[% COMPLETE])
4ConcatDepartmentTestTrainerTraineeTrainee AreaPRIORITYSTARTPLAN ENDACTUAL END% COMPLETEProject Start-(chart start)Days to StartCompleteIncompletePlan Days
5=CONCAT([@Test]," (T: ",[@Trainer],")")AlphaUnicornwhiskersBirdDeltaHIGH04-05-202207-02-2022002-01-20221220-86-86
6=CONCAT([@Test]," (T: ",[@Trainer],")")OmegaFrogPlutoWhiskersOmegaMEDIUM04-05-202206-03-2022002-01-20221220-59-59
7=CONCAT([@Test]," (T: ",[@Trainer],")")DeltaCatSaturnPlutoAlphaLOW04-05-202206-03-2022002-01-20221220-59-59
Ark1
Cell Formulas
RangeFormula
N5:N7N5=$I$3
O5:O7O5=IF(ISBLANK(J5),0,J5-N5)
P5:P7P5=$M5*$R5
Q5:Q7Q5=R5-P5
R5:R7R5=IF(ISBLANK(K5),0,K5-J5)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I4Expression=I5=$T$2textNO
I4Expression=$I$5:$I$7=$T$1textNO
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,028
Members
448,940
Latest member
mdusw

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