Date Function (conditional Formatting)
Sep 24, 2008I would like a date in a cell to flag up in a colour (say, red) once the date has expired by a certain period (e.g 7 days). How can I do this (conditional format).
View 2 RepliesI would like a date in a cell to flag up in a colour (say, red) once the date has expired by a certain period (e.g 7 days). How can I do this (conditional format).
View 2 RepliesIn Mr Excel's Pod Cast on April 12th, he showed how to use the OFFSET function to define a range inside a SUM function. Then he had Conditional Formatting that would highlight the range that was being summed. Can anyone tell me what the formula would be inside the Conditional Formatting dialog box to get the OFFSET range to have a certain format?
View 9 Replies View RelatedI am trying to nest an IF function with a CEILING function. If C10 is < 3.5, make it 3.5, however, if C10 > 3.5, CEILING (C10, 5)
right now it looks like:
If (C10
A little background on what i am doing. I have a spreadsheet that tracks when i have blown the dust out of our computers. I have set up conditional formatting so that the text turns red after 300 days and the cell turns yellow after 600 days. However, some computers are in high dust environments. I would like the spreadsheet to tell me to blow the dust out of these sooner. see the attached sheet.
dust 1.xlsx
I would like to use conditional formatting to highlight the max value if the constraints are not violated.
For example,
Row 91 - Profit
Row 94 - Constraint A (750<=A<=855)
Row 95 - Constraint B (12<=B<=17)
So, I tried to type this in conditional formatting but it didn't work ><
=MAX(IF(AND(B94>=750,B94<=855,B95>=12,B95<=17),$B$91:$Q$91,0))
Is it possible to use OR function in Conditional Formatting? I want to do the following.
If A1 = 1, A2 cell is filled in Red
If A1 = 2, A2 cell is filled in Red
If A1 = 3, A2 cell is filled in Green,
If A1 = 4, A2 cell is filled in Green,
I only managed to do the above for 3 conditions as Conditional Formatting only allows me to no more than 3.
I have three columns named "Type" , "start_date" and "end_date".
Type column can hold only "A","B" and "C".
start_date and end_date columns are time stamps. ex: 9/14/13 9:35 AM
I want to do conditional formatting like,
If type = "A" and (end_date - start_date) value between 30 and 40 (in hrs) then it should be amber.
I did for greater than and lesser than values, but I am facing problem while doing the above one.
Can I have more than 3 conditions for the conditional formatting function?
View 9 Replies View RelatedI have an "actual build" worksheet, which allows the user to select which materials were used, material properties (e.g. material grade etc.), including its corresponding length. The user can enter all these in manually, or select the material name from a pre-defined list (Reference worksheet contains this information), and then the associated properties are automatic lookups from the Reference worksheet.
So all this is fine / completed, and the LOOKUP returns its theoretical length from the reference table. However, its actual material lengths will almost never match the theoretical length, so what I want to happen is for a conditional format to highlight the cell, to notify the user that they need to enter a manual value. The auto-looked up length is still useful a proposed build on the worksheet, but having it highlighted to ensure it is manually entered later is the objective.
The other thing is it can't just check if it's a formula, it has to check if it is a formula with a MATCH/LOOKUP function. E.g. it needs to be unhighlighted if someone has a basic formula, ie = 2*0.42 if there two of the item etc..
Hence, I was thinking of having a conditional formula that "format only cells that contain" and then format only cells with "specific text" and "containing" and "MATCH(" text function, however this doesn't seem to work.
Length cell formula:
=OFFSET('Reference- Materials'!$N$5, MATCH($BO32, Materials_Item_Number, 0), 0) * $AH32
Using Excel 2010.
The background to this question is that I'm trying to replicate conditional formatting using a user VBA function, because I require a thick border around the cells (and the conditional formatting within Excel only has thin borders)
In the final function, there will be 9 combinations of formatting {Red, Amber, Green} interior with {Red, Amber, Green} thick borders.
The formatting is determined by a number in another cell (the "target" cell), which returns a value 0,...,8
I've only got as far as filling in the interior for the first combination, but the function returns an error "Application-defined or object-defined error".
VB:
Function VBA000_003_SetRAG(strTargetRange As String) 'strTargetRange is the reference for the target cell that contains the value 0,...,8
On Error Goto handler [code]....
There is not a problem with the target range, if I remove the two lines relating to rngCaller then the function works OKExecuting the rngCaller.Interior.Color = RGB(255, 0, 0) command through the Immediates window works OKI've tried calling a subroutine & passing the range across
Same errorChanging the range in the subroutine to an absolute range (eg. Sheet1.range("A1")) also causes the
same errorExecuting the subroutine on its own (with the absolute range) works OK
So my guess is that it's a bug/limitation with Excel VBA when trying to execute commands from inside a user function
When I hit the macro code you see below I get both columns D and E, starting from row 18, to get 'filled down' to the specified spot. Every second row has a conditional format (when a value is entered in column A) to change the row to the color grey, and every row between it has a conditional format (when any value is entered in column A as well) to have the row changed to the color red. The issue here is that the Macro code messes up the conditional formatting and uses the conditional formatting of those two cells, which are being dragged down, for those entire filled-down columns! This is what I am starting off with test1.xlsm and this is what I end up with using the macro code below (or doing it manually)
test2.xlsm
Is there a way for the Macro code to bypass this issue?
I have a very large spreadsheet that looks like this
wew.png
What I would like to highlight those cells in green that got to their current state before their due date.
So the date in F is before the Date in H and highlight those in red that did not get to their date in F before the date in H..
Can you have a conditional format that formats the cell one way before a certain date and then another way on and after that date?
View 7 Replies View RelatedI have set up a spreadsheet with a set of dates occurring in one column.What I would like is for the cell to highlight in yellow if the value is 3-6 months ago more from today's date and then highlight in red if the value is 6 months or more from today's date.I'm using office 2013 if that makes a difference
View 4 Replies View RelatedI will like colour of the cell (column M) to change if the SOS (column M) date is in 7 days and their is no scope column D.
View 1 Replies View RelatedConditional Formatting for Due Dates. I have A1 which is due date and I want A1 to be formatted with red text if it is 2 days before the due date.
View 11 Replies View RelatedI have a column contain cell with value of dates. The value is from Vlookup formula. The problem is when I try to do color code to yellow for any past date from current date to all cells that contain the date value in that column, I dont see any change.
The formula I used for past date from current is =today()-1 (so that should be correct). So, I am wondering why none of the dates that past do not change the color thru the conditional formatting I did.
The Conditional formatting formula I used:
"Format only cells that contain" -- > Cell Value -- > less than or equal to -- > =today()-1
I have 2 columns that I need to set conditional formatting for. In one column (D) I have a date of when a person needs to be paid. In the next column (E) I have when the date of payment was or nothing indicating I have still not paid this person. What I need column D to do is have conditional formatting (im assuming this is the right way to do this) color the cell if we are late or if the person has not been paid yet according to the date in the E cells. Here is what I have so far:
(in cell D1)
Condition 1:
Cell Value is greater then =$E1
Color grey
Condition 2:
Cell value is less than =$E1
Color pink
He is where im running into the trouble. Condition 1 indicates that if cell D is greater then cell E then I have paid the person on time or sooner (grey). Condition 2 shows that if cell D is a date before the date in cell E then it turns pink indicating I was late on payment.
What I also need the condition to do is change cell D pink if there is no info in cell E, which is indicating that I still need to pay someone. So I tried a 3rd condition, but it doesn’t coincide with condition 1. I tried:
Condition 3:
Cell value is greater then 0
Color pink
What I need the 3rd condition to do is say if cell E has nothing in it then I need cell D to change to pink. Im assuming I need 3 conditions for this to work, but im not to sure.
I have a column of dates in column M, and in A1 I have the formula =TODAY() for today's date. I would like to conditionally format all of column M (up to row 198) so that it turns orange if the date in M is before today and after or equal to 3 working days before the date in M.
I have this
=AND($A$1<M2,$A$1>=(WORKDAY(M2,-3)))
But it doesn't appear to be working because it's highlighting dates after todays date.
I have two date columns named "start_date" and "Dead_line".
Both the columns are in the date format. Ex: 9/14/13 9:14 AM
i want the third column to be the "status" column.
if sysdate-dead_line < 30 % of (dead_line - start_date), then the status column should become green. if sysdate-dead_line is between 30 % and 70 % of (dead_line - start_date), then the status column should become amber. if sysdate-dead_line > 70% of (dead_line - start_date), then the status column should become red.
First the dead_line - start_date to be converted to hours, then have to do conditional formatting like mentioned above.
I want set a condition in a cell that contains a date , to change to a colour when this date has passed another date by 3 days. E.g. order date received date if the received date has gone over 3 days past the order date i want it to flag up and change colour.
View 3 Replies View RelatedDespite 'Google is my Friend' and lot of test, I got a bug in my formula. I'd like to colorize date between (Today + 30) and (Today + 60) The line with the xlsBetween operator, fail...
[Code] ......
Existing solution : I know how to bypass this issue, but it's really an awfull solution : fill all column with orange, and then the Conditional formating will overrun the orange color when nedeed. Works but I don't like it ...
I feel like this is a pretty simple question to answer but I cant find an answer to it anywhere or I'm just not skilled enough to understand it. I have two columns D and E that have dates in them. Column D is the purchase date of a computer and column E is how many years months and days its been since it was purchased. I want both columns to be the same color. If the computer is 2 years old or less I want it green, 3-4 yrs old yellow and 4+ red. I have it working for column D but I can't figure out how to apply it to column E.
View 7 Replies View RelatedI need to know if new entries are made within the last 7 days. I do not need the date posted to my viewing just a highlight in my choosing of color. I only want the conditional format to last 7 days then it can go away to normal format. Is this possible or is there an alternative function available to solve same problem?
View 4 Replies View RelatedI am trying to use conditional formatting to highlight items that are either past due or coming due soon. The data to be evualuated is in a report that I extract from another system and run bi-weekly or monthly. The dates included in the report represent the date in which something was last updated, certified, tested, etc. All dates expire one-year from when they were last completed. The colors that I want are as follows:
If something is past due (date shown is more than 1 year old) or due within 30 days = RED.
If something is due within 31-60 days = YELLOW
If something is due within 61-90 days = GREEN
So, if an item on a report is showing it was "LAST UPDATED" on 2/21/2007 it should show up RED because it is due within the next 30 days.
If an item is not expired (less than 1-year old) and falls outside of the defined 90 day window then it should just remain as is with no formatting.
how the scrolling date bar in the attached is achieved. I am not asking for a step by step with code I am just after the basics of how this was achieved and i will research the rest. Most importantly is how to associate the dates with the rest of the cells in the column, as I imagine this is how I am going to fill the cell...The purpose is to add this scrolling date bar to my workbook, also attached.
View 2 Replies View RelatedShort Version: I need to find a way to have the date in a cell be used for both a calculation (one date subtracted from another) AND a conditional format (Cell changes color based on the month). Cell format is mm/dd/yy
Explanation: We enter information for each work order on a row in our Master Work Order List. For each new work order we start a new row at the bottom of the sheet.
We calculate each work order's throughput time by having a formula in column F that subtracts the Start Date in column D from the Complete Date in column E.
F#=E#-D#
All date values are entered as mm/dd/yy and the cell format is mm/dd/yy.
At the end of the month, we put an AVERAGE formula into a cell in column H and, for the sources, use all cells in column F that represent work orders that were completed for THAT month. The problem is not all work orders complete in the order they started and some can start in one month but not complete until 2 months later, so we can't just click-drag a bunch of cells in a column. Sorting doesn't work because after we click and drag a bunch of cells and get the average, when we re-sort back to Sort by Work Order Number, the clicked-cells don't move, but the data does.
We end up just looking up and down column E looking for dates from this month and hope we got them all.
So I thought, "Hey, I know, I'll put conditional formats into column F so that if the date in column E starts with 01 (January), the cell in column F will turn Red, and if it's 02 (February), the cell will turn Orange and so on through the end of the year! That way we could just look for a given color each month and are MUCH less likely to get it wrong!
I added conditional formatting using the LEFT(E#,2) formula, hit [Enter] and... nothing.
I thought, "I"ll set the cell formats to TEXT so the LEFT formula 'sees' the month number!"
So I set the cell formats to TEXT and then the conditional format 'sees' the '01' for January and changes color!!
But now the Throughput Time formula (=E#-D#) doesn't work.
I think it's because Excel can DISPLAY a date as mm/dd/yy (due to Date Format), but it actually calculates date information based on a number that REPRESENTS the mm/dd/yy. I read that Excel 'sees' each date as a number representing time passing, not as "mm/dd/yy" and uses that number for calculations.
SO, is there a way to have a cell's date be 'calculatable' and still have it change color based on the month?
I have a column of cells containing dates. I need to change the colour of any cell which is 7 days older than todays date. I would like to leave the header and any blank cells unchanged. Every formula I've tried has changed the enire column, or if I selected a range, the entire range.
View 5 Replies View RelatedI am trying to get conditional formatting to work on this problem but I am getting nowhere fast,
In A1 I have a start date, I want B1 to turn Green if A1 is less that 1 year old, C1 to turn Yellow if A1 is between 1 - 3 years old and D1 to turn red if A1 is more then 3 years old.
I am using Excel 2002. I have a spreadsheet with a list of dates. How can I get conditional formatting to highlight the cell, if the date listed is before the current date.
View 9 Replies View Related