I'm trying to get a format: I want the cel in column A be orange when the date is past and the task is nog checkt done. This is working, but he formats my hole range. A second formatting with a Cel is blank doesn't work. If there is no task i don't want it to be orange..
The problem comes from the $ in your formula
It formats all cells based on row 4.
Additionally, if you want to implement the condition that the date should not be blank, you need to add into your AND statement ISBLANK(D4)=FALSE
Change your formula to
=AND(D4<TODAY(),E4=FALSE,ISBLANK(D4)=FALSE)
Related
Hi there, I'm trying to create an assessment calendar like the one above. Teachers will add in a start and end date and the corresponding boxes will be highlighted. I'm trying to figure out the formula for this in conditional formatting as the correct date along the range of dates in the year need to be highlighted. Each teacher needs their own section for inputting their assessments and I'm not sure how to put in the formula properly. I will use a drop down menu for teachers to select dates... would anyone be able to help with this? I tried following this guide but I'm not sure if it applies: https://stackoverflow.com/questions/20545961/conditional-formatting-based-on-another-cells-value#:~:text=Add%20a%20comment-,20,So%20this%20answer%20is%20meant%20for%20completeness%20to%20the%20previous%20ones.,-It%20should%20demonstrate
I tried using the $ in front of my cells but the color doesn't seem to change.
I tried =E34=45033 which changes that cells color, but it means I have to do a different formula for every cell. 45033 corresponds to the date 2023/04/17
In this Sample, D2:T2, A3:B are all date format.
Apply range of the conditional formatting is: D3:T
The formula of the conditional formatting is as simple as:
=AND(($D$2:$T$2>=$A3),($D$2:$T$2<=$B3))
You can format te date value of D2:T2 into any format as you like, just make sure those cells contains a date value.
I've seen lots of answers for various other conditions under which to do this. However I can't seem to modify any of these to work for a date range. What I want is for the column color of column E to change if the date in column H is between today and 5 days from today.
I've tried varying versions of this formula: H3:H150 =today() +5 with no success
This doesn't give me the range of between now and 5 days from now but I could do multiple rules like this and just go down on each one(=today() +4, =today() +3, etc) but obviously I need this rule to work first.
Thanks!
Conditional formatting is more helpful than you seem to be expecting. Clear formatting from the column to be formatted, select it and Format, Conditional formatting..., Format cells if... Custom formula is and:
=and(H1>today(),H1<today()+6,H1<>"")
Then select fill of choice and Done.
This should format the next five days (change the angled brackets around for the past five days).
Setting the range is achieved with selection of the column to be formatted (not the one with dates in it - H). If only to apply to Rows3:150 (and in general it is a good idea, for speed of processing, to restrict the ranges to which CF is applied) then either start by selecting Rows3:150 in the column to be formatted (instead of the entire column) or adjust the Apply to range for the rule, but in either case use H3 in place of H1 in the formula above.
CF should automatically apply the rule as written to the first row in the selected range and then adjust it for the second and subsequent rows in the way copying down would adjust the formula (if at all) were it in a cell in the sheet.
https://docs.google.com/spreadsheets/d/12TsEEj3LQSIOv2m6LRRS6FCLvIkuUo_ECfQvK4gw4d8/edit?usp=sharing
I want to use conditional formatting to count the amount of times a name appears in Column H and make the corresponding name in Column B red if it shows up once and crossed out if it shows up twice.
How can I do this? I used COUNTIF but I don't know how to attach the formatting to a specific name/string in Column B so it just formats the next one on the list (I think).
Any advice or help would be greatly appreciated.
Clear any conditional formatting from ColumnB, select B3 to the end of your range to format and Format, Conditional formatting..., Format cells if... Custom formula is and
=countif(H:H,B3)=2
with strikethrough. Add another rule (same range) with Custom formula is and
=countif(H:H,B3)=1
with red fill and Done.
I am using Google Sheets and trying to write a custom formatting rule that seems like it should be simple. I am trying to figure out how to conditionally format all the cells in a column INCLUDING AND ABOVE (but not below) the cell that meets my condition.
I've found a lot of things that will format the entire column, but that's not what I'm looking for.
The image below is a basic example that I manually colored in to do what I want.
It's for my budget spreadsheet, where each row is an entry from a particular date. I have an "Agreement" column that is empty except when I enter the date that I reconciled the budget. I want it to color that cell and all the empty cells above it green, signifying at a glance: "everything up to this point is ok/has been checked over". Then as time goes by, and I enter another date several rows below, I want it to extend the colored shading up to there.
I've been searching, but it is hard to articulate this; if I say "until this cell" I get results for "shade cell until text is entered"; any mention of "above" and "below" generally relates to the values in the cells; I've found some things about Indirect but just for a single cell above, not for all cells above the current cell.
Wondering if this is even possible...
Google Sheets example
If you create a conditional formatting rule for column A using a Custom Formula you can use this formula:
=COUNTIF(ROW(),"<="&LARGE(ArrayFormula(IF(ISBLANK(A1:A100),"TRUE",ROW(A1:A100))),1))
The larger the ranges you use, the slower it will be however.
I have a sheet where I would like to turn a row a color based on the value of two cells. I already have conditional formatting based on one cell of the cells I want to use for the two cell formatting.
I am using =AND($J:$J="Cancel",$L:$L="Yes") for the two cell formatting but it doesnt seem to work. Not sure if the first one =$J:$J="Cancel" is negating the formatting of the other or if if my formula is just bad.
Any advice would be appreciated.
if the trick is that you want the whole row to be colored that way, then all you need to modify is the "range" to apply it too, so you enter something like the start column and then just give it a row number as the second half of the range, without the column argument: A1:10001
That exact formula you listed =AND($J:$J="Cancel",$L:$L="Yes") worked for me when using the "custom formula" option: