Conditional formatting Gantt chart with text

pdsmith

New Member
Joined
Mar 11, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I am working with a schedule spreadsheet and currently have a condtional format to highlight a cell in the date range: =IF($B11>=I$10, $B11<J$10), where column B is my date column. This works great to highlight the cell, but i am wondering if I can also add text to the cell so that I can run a countif function to total amount of tasks in a certain date range.

Thanks in advance!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Not with conditional formatting, but you could use the same formula in the cell like
Excel Formula:
=IF(and($B11>=I$10, $B11<J$10)","Y","")
 
Upvote 0
Need it to be in conditional formatting as that is how the cells are getting "highlighted" on the schedule. Not sure if this is even possible, but the code I posted are the green cells. I want to put one letter in each green cell, color it the same as the background, so I can then count the number of tasks by month.
1710175814922.png
 
Upvote 0
As I said, you cannot do that with conditional formatting, but you can put a formula in the cell to return a value.
 
Upvote 0
Formula you posted, is breaking, remove the " after the )?
 
Upvote 0
Also removing the extra " and putting that equation into an already highlighed cell is not putting a Y in the cell
 
Upvote 0
Are you putting the formula into I11 & then dragging down & across? As it works for me after correcting the typo
Fluff.xlsm
ABIJKLMN
1003/03/202410/03/202417/03/202424/03/202431/03/202407/04/2024
1105/03/2024Y     
1218/03/2024  Y   
Data
Cell Formulas
RangeFormula
I11:N12I11=IF(AND($B11>=I$10, $B11<J$10),"Y","")
 
Upvote 0
Working but removing my conditional formatting, which defeats the purpose. Found a different way to track, thanks
 
Upvote 0
Glad you sorted it & thanks for letting us know.
 
Upvote 0

Forum statistics

Threads
1,215,123
Messages
6,123,181
Members
449,090
Latest member
bes000

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