I have two columns, for example Column A and B with the below style of set up.
What I am wanting to do is to highlight both columns in a colour based on certain parameters.
For example: If Column B is due to occur AFTER Column A - no colour. If Column B is due to occur at the SAME TIME as Column A - Highlight both cells in yellow. If Column B is due to occur BEFORE Column A - Highlight in Red.
Please see below examples of the kind of data I would be working with, and then below it an example of what it would look like should the conditional formatting colour it in correctly.
Thank you.
Base Data
Completed Formatting
OK, figured out that 1800LT = 1800 hours, Local Time(?)
You will need to create two conditional formatting rules. One for each of your conditions.
Conditional formatting > Manage Rules... > New Rule... > Use a formula to determine which cells to format.
Rule 1, set color to Red:
=IF($B1<$A1,TRUE,FALSE)
Rule 2, set color to Yellow:
=IF($A1=$B1,TRUE,FALSE)
Related
I'm trying to use one Conditional formatting rule that does the following:
Ignore Blank Cells
Ignore Cells that do not have a date value
Highlight Dates that are going to expire in 30 days
So i have a list of dates:
07/25/2021
06/25/2021
05/25/2021
etc...
i used the custom formula under conditional formatting and used the following codes:
=CountIF(A:Z,today()-30)
i also used
=CountIF(A:Z,"<="&today()-30)
both codes highlight blank cells, i tried using the IF statements or IsBlank statements but i don't think i fully understand how those work. because i made a mess.
regardless of what i do, cells that are non-dates and blank cells are highlighted.
i even tried using the the conditional formatting rule, "Format only cells that contain" and i added the following:
Format Only cells with:
Cell value - less than or equal to - Today()-30
what do you guys think im doing wrong?
Assuming that your dates are in column B:
Select entire column B.
From menu start Format / Conditional formatting...
Add a new rule with the plus sign.
At Style select Classic.
After select Use a formula to determine which cells to format
Enter this expression: =AND($B1<>"",$B1<=TODAY()-30)
Select a desired formatting.
You can easily adjust this to row or any other range, or +30 days etc.
If you need more columns, select all of them, and assuming that the first column is A, the formula should be: =AND(A1<>"",A1<=TODAY()-30). See the screenshot below with formula and some example data:
I am building a calendar in Excel where event names will populate on the appropriate dates. I have a worksheet which lists the event titles and calculates the date they'll occur in a given year based on several factors. I'd like to conditionally format the font color in cells containing the "event name" formula to signify the type of event that it is. For example: holidays are red, birthdays are purple, meetings are orange, etc.
screenshot of calendar output worksheet
I named the ranges of event titles based on the color I'm using to categorize them: red, purple, orange, etc. I tried creating/applying a condition for each color, but between rule precedents, parameters, and formulas I just can't get it to work the way I'd like.
Nettle,
The conditional formatting based on Text is very simple.
Please follow below steps =
Select The Range where needs to be formatting applied and In Home tab > Conditional formatting > Highlight Cells Rules > Text that contains... > [type your text]
in the with Tab select Custom Format go to fill and choose your colors.
Below are the links to know more about conditional formatting, which contains how to formatting through formula's also.
Link:1
https://support.office.com/en-us/article/video-conditionally-format-text-c983d661-07b6-4932-8725-b682c4f77ce1
Link:2
https://trumpexcel.com/highlight-rows-based-on-cell-value/
You can enter this formula in a the Conditional formatting and set up a bunch of rules to obtain the formatting needed. Probably easier to use a hlep cell though.
=INDEX($A$1:$C$1,SUMPRODUCT(MAX(($A$2:$C$6=D1)*(COLUMN($A$2:$C$6))))-COLUMN($A$1)+1)
This assumes your table (incl. headers) are in cells A1 through C6.
Easier to look at the screenshot below:
Note that it will return the rightmost column header is there are two identical values across columns.
I apologize if this has been posted, but I haven't found a solution that works.
I have an excel sheet with a lot of data.
I want to make the cells in a certain column (column CG) turn purple if the value of a cell in a different column, but equal row is "no". For example, I want the cell in column CG row 140 to turn purple if the cell in column CS row 140 is no. I want this to happen for every cell in the column. I tried to set up a conditional formatting rule such that the rules applies to =$CG$4:$CG$200 and for the formula I've tried $CS=no, $CS="no" $CS4="no" and $CS4=no with the formatting just being a purple highlight. I've tried hitting apply and ok, but nothing works.
I used these link to determine what to do for my rule.
Conditional formatting based on other column
Excel Conditional Formatting based on Other Column
Any suggestions?
Simply highlight the entire column "CG" then open the CF dialog.
Select the option Use a formula to determine which cells to format and type in the following formula:
=$CS1="no"
Then proceed to set your formatting, in your case, a purple fill.
I have created conditional formatting in a date column to show red if it's expired, orange if it's 30 days out from expiring. My boss now wants me to apply this to every register/database that exists. Problem is that some of the worksheets have multiple date columns and are not one after the other.
I haven't worked out how to copy and/or past the conditional formatting to the other date columns on the worksheets without redoing the conditional formatting from scratch.
Any solutions?
Assuming this is for Excel and you are dealing with entire columns then I suggest starting again (so we know what formulae are in use and that the Applies to range is a complete column) with, say for ColumnA, HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=AND(A1<>"",A1<TODAY()+30)
Format..., select orange, OK, OK.
Then repeat for red with:
=AND(A1<>"",A1<TODAY())
If these suit for ColumnA you should then be able to pick any one of the conditionally formatted cells, click Format Painter then, select whichever other columns you wish the rules to apply to.
Note that the order in which these rules are applied is significant. In Conditional Formatting Rules Manager red should be above orange (their order may be changed with the up/down arrows) and I'd suggest for red checking Stop If True).
How can I format Excel to read the date in a cell (A), compare that against dates in other cells (B,C,D etc), and if A is a date before B, highlight row in a particular colour; if A is a date before C, highlight row in a particular colour etc.
Example:
A is 15/11/2014
B is 07/11/2014 (Green)
C is 14/11/2014 (Red)
D is 21/11/2014 (Blue)
Based on this, the row should be Blue as it is before D.
You are going to want to look at Conditional formatting. Under the Home Tab, in the Styles Group, click Conditional Formatting. You can set up the rule (format by value probably). One way to do it is to add multiple rules (one for before red date, one for before blue date, etc.) and then check the box for stop if true for each one.
In the example you provided, first rule would be: if A < B then format green. Second rule: if A < C then format Red. Third rule: if a < D then format Blue. There's also an option to do multiple ranges in one rule (depending on your version of Excel). That would probably be simpler. You should be able to use relative (A1 instead of $A$1) references for your equations, so that when you use the format painter to paint the entire column the comparison formula travels with it. For more detailed information on Conditional Formatting:
https://support.office.com/en-US/Article/Quick-start-Apply-conditional-formatting-6b6f7c2a-5d62-45a1-8f67-584a76776d67?ui=en-US&rs=en-US&ad=US
Does that help?