conditional formatting - multiple conditions in gantt chart

debbw

New Member
Joined
Feb 4, 2021
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Greetings! I am trying to add a condition to a formula that will change the bar color based on referencing a cell value of "F" in Column c ($C7). This column allows the project manager a quick view to know who is "field" employee vs. "office" employee. I'm using Office 365.
The basic formula to select dates is:
=AND(task_end>=I$5,task_start<J$5)

Where & how do I incorporate "$c7="F"

Basically, I'm looking for: "IF column c ="F", then format the date range (task_end>=I$5,task_start<J$5) to my desired color.

I haven't been able to find this specific scenarion anywhere. Any help is GREATLY appreciated.
THANK YOU!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
try this: =AND(task_end>=I$5,task_start<J$5, $c5-"F")
(I assume you mean row 5 not 7?)
 
Upvote 0
try this: =AND(task_end>=I$5,task_start<J$5, $c5-"F")
(I assume you mean row 5 not 7?)
Thank you for trying, Peter. Unfortunately, that didn't work (I did the same thing). Here's a screenshot of that formula's results. The left side "assigned to" is column C (task_assigned to). The goal is to have the "green" bar for anything assigned to "F"

GC shot.png
 
Upvote 0
How about
Excel Formula:
=AND(task_end>=I$5,task_start<J$5,$C7="F")
 
Upvote 0
What is the applies to range for that condition?
 
Upvote 0
What is the applies to range for that condition?
=$I$8:$BL$34
Capturing the full date range of the project
Previous range started at "J" & just noticed that was incorrect.
 
Upvote 0
In that case you need to use $C8="F"
 
Upvote 0
Can you post a sample of your data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Forum statistics

Threads
1,214,587
Messages
6,120,405
Members
448,958
Latest member
Hat4Life

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