Conditional formatting using dates - excel

I have data like this:
In one sheet I have a table A with dates (ascending order) and account balances.
In another table B, I want to retrieve the balance on the last day of the month.
Now, I want to set the font color to white if the the latest date in table A is smaller than the corresponding date in table B.
See screenshot below, I want the marked area to be white (June 2014 and later). I think this can be done with conditional formatting.
Someone knows?

Starting in A19, select the cells in the row. Create a new conditional format based on a formula
=DATE(YEAR(A16),MONTH(A16),1)>MAX($C$1:$C$13)
Format the text white for this rule.

Related

Highlight Rows based on InputDate

I'm new to Excel and I would like to highlight all the rows that are older than my input date.My Spreadsheet is much longer than this example picture, and users might add a row with a new date.
How can I achive this? Thank you!
This can be done with Conditional Formatting. First, don't use a merged cell if you can help it (it looks like your input date is "A and B 85").
Let's say your input date is $A$85, you can go to Conditional Formatting. I'm also going to assume your date data starts in $P$87
Highlight row 87 (or just A87:P87 if you don't want the entire row highlighted).
In Conditional Formatting, use this formula:
=And($P87<>"",$P87<=$A$85)
Then click the Format, and go to "Fill", and choose Yellow, or whatever color you want.
Then, change the range the conditional formatting is applied to to say =$A87:$P1000 to have all rows in between 87 and 1000 highlighted if the date is older than your input date.

Conditional Formatting Rows Based on Date

I have a table with a round 500 rows of data. I want to setup conditional formatting to highlight rows based upon how old a row is (based upon the date cell in that row). The idea is that as an entry get's older, it is entered with a white background, but as it ages, it turns a darker shade of red. We have data taken from 5 separate weeks and plan to add more. Is this POSSIBLE in Excel, or will I need to highlight each week manually?
If you are willing to have one column be highlighted, as opposed to the entire row, this example should help.
Steps to reproduce:
Highlight the column with the dates
In the Conditional Formatting menu (Under the Home Tab on the Ribbon - Office 2013)
New Rule
Format All Cells based on their values.
Choose the darkest color for the Lowest Value
Choose the lightest color for the Highest Value
OK
Note in the example below how the scale of the colors changes based on the range. When the lowest date is 2001, that receives the darkest red, but when a date from 1980 is entered, the dates from 2001 and up are considered to be in the lighter third.
The formatting applies to the entire column, so you can add as many dates as you need.
Here are some very useful tips demonstrating a number of uses for conditional formatting:
Excel formulas for conditional formatting based on another cell value
How to conditionally format dates and time in Excel - built-in rules and formulas

Conditional format based on a cell's color

I have a column with conditional formatting rules set to make the background one of three colors based on how close the date is in comparison to the current date (Today's date + 7, + 15, +30 days).
I want to extended the conditional format across to effect the entire row, rather than just the individual cell for the user more easily to see which item's date is approaching.
Is it possible to do a conditional format using a cell's format?
Update: To explain it further. Conditional format is set to a column: if a cell value is in between today's date and 7 days from today's date, it is formatted to have a green background. I want this format to extend across the ROW in which the value turns green.
Please try:
where the three formulae are:
Green =$A1<TODAY()+7
Orange =$A1<TODAY()+15
Yellow =$A1<TODAY()+30
and I have assumed each 'row' spans A:Z and your dates are in ColumnA.
This will highlight dates earlier than today also (though could easily be adjusted).
Just change the Applies to range to all the columns you want to be colored. You'll need to make sure you lock down the reference of the date column in the Conditional Formatting rule.
For example:
If your data is in columns A:H, then your Applies to range will be =$A:$H
If your date column is column C, then your conditional formatting rule (for C1) would be something like:
=AND($C1>=TODAY(),$C1<=TODAY()+7)

column shading by date range

I have a spreadsheet that has various rows filled in colours while the columns are set to months in text form - 'mmm'
what I want to do is format the sheet so the column that is the current month is shaded - for example - March - to show it is the current month. This will change as we move into April etc etc
I only want Current Month column to be shaded but I need to keep my original 'filled rows' as shown in the below screen example as they highlight other important info.
example sheet:-
Can anyone point me in the correct direction?
All advice very welcomed.
I am using Excel 2011 for Mac.
my hoped for result is something along the lines of the below:
Here's another Conditional Formatting formula that works with your setup. Add this formatting rule from A2 to L22 in your case:
=LOWER(A$1)= LOWER(TEXT(NOW(),"MMM"))
Note that the conditional formatting with override your row colors.
You can do this very easily with conditional formatting.
Suppose all your dates are in column E, you could do a conditional formatting rule such as:
=MONTH($E1) = MONTH(NOW())
Set it to all the data you want highlighted and then just choose the fill color you want.
Hope this helps.
If you insert a second row (it can be hidden) with month number (A2 = 1, B2=2, etc) then you can apply the following conditional format
=month(now())=A$2
and then apply formatting as you like.
You need to make sure that this applies to the entire range.

Excel highlight the cell of the matched date

I just want to know if it is possible for a a certain cell to be highlighted based on date whenever I put notes into another cell? As you can see at the image below, there are set of calendar with dates.
Now what I want to achieve is to highlight those dates whenever I put notes into another cell as the image shown below
Let's say I input a note in 5-Jan, Saturday the cell in image 1 ( January 5 ) will be highlighted with background color
Your problem consists of two parts. First you need to know how to use conditional formatting based on a formula, then you need to map your calendar cells to the corresponding notes cells.
Conditional formatting based on a formula is documented on several places on the web, for example here. For your case, I have created a screenshot of a simple example:
The difficult part (or hard labour, depending on which route you choose) in your case is to map all cells in your calendar to the corresponding cells potentially containing the note. So you need a way to calculate which day in the year a particular cell is.
I think you could achieve that via 12 different conditional formatting formulas, where you refer to the contents of "this" cell using INDIRECT("RC",FALSE) to get the day of the month, and then add the number of days before that month (for which you need 11 different constants). That result can be used as the index into your array of potential notes. So for February, the formula to calculate the day of the year becomes:
31+INDIRECT("RC",FALSE)
Using that number to check the row in your notes column (let's say they are in column A), the conditional formula for all cells in February becomes
=NOT(ISBLANK(INDIRECT("A"&(31+INDIRECT("RC",FALSE)))))
Then do the same thing for each month, where the constant (like 31) is different for each of them.
Note that using "RC" in INDIRECT() like this only makes sense in a conditional formatting formula.

Resources