Highlighting cells in a column based on other cells dates in the same row - excel

I have a spreadsheet that is used to track the last date a set of logs was downloaded.
We need to take logs at around the 7 day mark if possible (not critical)..
We have approximately 170 assets that we do this to.
The way the spreadsheet is set up the new date is added to an ever expanding list (rather than just overwriting) i have used conditional formatting to show that a date is less than 7 days old but that cell can be 20 columns accross and is still hard to cross reference to the asset number. I want to highlight column A if any other cell in the same row is highlighted (unless you have a less clunky way of doing it, having the date highlighted really is unimportant it is simply as far as i can get on my own.
I even tried doing a sort by cell colour but that seems to require that i pick one coulmn only.
Thanks for your help.

Conditional formatting will do this for you. I used this example:Column A has dates, Columns B and C have miscellaneous gibberish. (click the link to view the image)
Select the entire range of cells you want to follow these rules (possibly just "select all" to be sure you are getting future additions as well, then choose Conditional Formatting from the ribbon.
Conditional Formatting > Use a formula to determine...
Then enter the following code. =TODAY()-$A2<7 Update $A2 with whatever cell contains your first date value, and be sure to put a $ in front of its column reference so that the formula references only your date column and doesn't wander.Code: =TODAY()-$A2<7
Click the "Format" button to set whatever format you like (I chose yellow fill).

Related

Conditional Format in Excel 2016

I am trying to right rules for a spread sheet containing the NFL season. I have it set up so that I have a week in one column. At the bottom I have a cell for selecting the one team I am picking that week. When that cell is empty, I want nothing to happen to weeks 2-17. When I put a team name in that cell, I want that team name to change color with a line through it for weeks 2-17.
So far I can make the rule for the last part but when I leave the cell blank, week 2-17 all change color with a line through it. I can't figure out how to get the blank cell to trigger no action
Any time I tried formulas with =ISBLANK($B$50) in it I was unable to trigger the rule as nothing I added to it from what I seen from googling/youtubing it worked. The only conditional format I have that works is Format only cells that contain =$B$50 which applies to =$C$2:$R$48
Keep in mind I am slightly above beginner with excel formulas/rules
If the cells change their format to something with a line through it, this is either a conditional format or the regular format of the cells. In either case, remove that format.
Then select the cells that you want to format and create a new conditional format with a rule that uses a formula. In the animated screenshot I am formatting the cells from D3 to F7. Select D3 to F7 and make sure D3 is the active cell. Then use the formula
=D3=$B$7
and set a format. Note how the reference to the cell to format does not have $ signs, but the cell where the comparison value is entered DOES have $signs.
If the cell B7 is blank, no conditional format will be applied, just the regular cell format will show.
Here is a screenshot of the Conditional Formatting Rules Manager.

Excel Conditional Formatting: Reference Column using NOW

I'm trying to highlight rows created within the past 7 day period (since the last time checked). The table is tied to an external source that formats the column based on NOW (i.e., m/d/yyyy h:mm). So far, I found that conditional formatting is quite finicky when using functions.
First, I'll give the two formulas, which are working now. These are both based on a TODAY() format (i.e., mm/dd/yyyy)
1. =today()>$g2 --- this highlights past due items
2. =DATEDIF(TODAY(),$G2,"d")<30 --- this highlights items due within the next 30 days.
Now I need to reference another column (M), which is based on the NOW format mentioned above. I want the whole row formatted, so I can't use the built in functionality. I've used variations of the above, interchanging NOW() and TODAY(). Additionally, I cannot seem to get AND() to work in conditional formatting of an entire row. Any assistance would be greatly appreciated.
Select the entire sheet first, as conditional formatting only works on selected cells.
Make sure all rows in your sheet are selected.
On the Home tab, in the Styles group, click the arrow next to Conditional Formatting > New rule.
In the New Formatting Rule dialog box, click "Use a formula to determine which cells to format".
Under Format values where this formula is true, type the formula: =$M1>TODAY() . (example provided as your required formula was not provided).
The formula uses the TODAY function to see if the dates in column M are greater than today (in the future). If so, the cells are formatted.
Click Format.
In the Color box, select your colour. Use other formatting commands as required.
Click OK until the dialog boxes are closed.
The formatting is applied to column M when the condition is met.

Excel Conditional Formatting - Highlight blank cells between

thanks in advance for the help.
I'm making a Gantt chart in Excel and am trying to integrate the capability to highlight the work week (WW). The idea is that one can select the WW from a drop down menu and the corresponding columns in the chart are highlighted. I am struggling with the conditional formatting formula to highlight the desired dates.
Here's a screen shot of how the chart is set up
I am able to highlight the column of the cell containing the WW value (e.g. in picture column I is highlighted as it contains "WW42" in cell I3. I would like to be able to highlight the days from Sunday to Saturday of each WW.
Most formulas (that I know) work on the value of the cells rather than their location or index. I have tried simply filling in all the blank cells with the WW value and then hiding the value, but the formatting isn't aesthetically pleasing and it's not efficient.
I have also tried merging the WW cells, but am unable to select all columns of the length of the merged cell, just the first column associated. For example, if I merged I3 to O3, conditional formatting will highlight that merged cell and only column I.
Any suggestions on how to approach this is greatly appreciated!
Attached is a screenshot of my structure with my conditional formating working as required. You'll need to adjust acording to your structure, but I used a formula-based conditional formating, with the rule:
=COUNTA($B$2:B$2)=$A$1 //Where A1 contains the workweek I want to highlight
Entered into cells $B$3:$V$6. Of course, in your case you'd have to change it to something like:
=COUNTA($B$2:B$2)+41-3=$A$1
Since your work weeks start at 42 and you have 3 extra headings you dont want added on your sum (ACTUAL START, ACTUAL DURATION and PERCENT COMPLETE). Also the header for the work week has to be a numeric value, but you can play around this to get what you need. Let me know if you'd need further help.
You do not need to use the third row for your conditional formatting, if row 4 has legal excel dates. The WEEKNUM() formula gives you exactly what you need.
If your Dropdown Menu is in cell B2 and consists of numbers from 1-52 then this should work for your conditional formatting:
=$B$2=WEEKNUM(D$1)
See attached photo.

Excel Conditional Formatting - Text contained in List?

Another Excel Conditional formatting, haven't been able to find a relevant answer yet.
I have two sheets with data. Sheet2 has simple list of finished items (all in Column B). The Sheet1 has a table of when an item needs to be done according to date - each new column is a date, and the rows underneath have items to be finished. I am hoping to have the items in Sheet1 be colored green once they are added to the finished list in Sheet2. The table in Sheet1 is tied to other spreadsheets, and updates daily, so I need something that is fluid (ie, I can't manually color the cells, as the item to be finished might change dates).
I have gotten this to work for single columns at a time using "=MATCH(B4, 'Sheet2'!B:B)" (for column B on sheet 1, where the items I need formatted begin on row 4). However, I can't enter in this conditional formatting for every column (well, I'd rather not). Is there a way to have every cell in Sheet1B4:Z41 look at Sheet2B:B, detect if that value is in Sheet2, and then be formatted (colored) appropriately?
Let me know if I need to clarify this more, busy day and I'm writing fast.
Thanks!
All you need to do is make the lookup range an absolute reference, i.e.
=MATCH(B4, 'Sheet2'!$B:$B, 0)
Conditional formatting rules also adhere to absolute and relative references so if you apply a rule A1=B1 to a range A1:C3 then C3 will check if C3=D3, in this case C4 checked Sheet2!C:C.
You should also use 0 for good measure unless you know the elements in Sheet2!B:B are ordered and a subset of elements in Sheet1.

How to conditional format based on multiple specific text in Excel

I have a spreadsheet that i use to determine when/what clients to contact when an issue arises. in the first workbook i insert a column every day and paste in information about any questionable habits from clients, including a client ID. unfortunately the data i am copying from also includes clients that are not to be contacted during an issue. i have a second page that has listed in column A all of the "dont check" client ids. is there a way to conditional format the original page to color any cells referencing a "dont check" client based upon the don't check listing in sheet 2?
EDIT: there is more than just client ID in the first sheet cells. client id is just included. the format is [(last file received date)(Client Name)(Client ID)(Last X file received date) (Last Y file received date)] all in one cell.
In theory what i would like is to go to conditional formatting, highlight cell rules, text that contains... then select A1-A45 on Sheet2 and click okay. obviously this is not possible. an error shows up stating "this type of reference cannot be used in a Conditional Formatting formula. Change the reference to a single cell, or use the reference with a worksheet function such as =SUM(A1:E5)
Thanks in advance.
You can use MATCH for instance.
Select the column from the first cell, for example cell A2 to cell A100 and insert a conditional formatting, using 'New Rule...' and the option to conditional format based on a formula.
In the entry box, put:
=MATCH(A2, 'Sheet2'!A:A, 0)
Pick the desired formatting (change the font to red or fill the cell background, etc) and click OK.
MATCH takes the value A2 from your data table, looks into 'Sheet2'!A:A and if there's an exact match (that's why there's a 0 at the end), then it'll return the row number.
Note: Conditional formatting based on conditions from other sheets is available only on Excel 2010 onwards. If you're working on an earlier version, you might want to get the list of 'Don't check' in the same sheet.
EDIT: As per new information, you will have to use some reverse matching. Instead of the above formula, try:
=SUM(IFERROR(SEARCH('Sheet2'!$A$1:$A$44, A2),0))
Suppose your "Don't Check" list is on Sheet2 in cells A1:A100, say, and your current client IDs are in Sheet1 in Column A.
What you would do is:
Select the whole data table you want conditionally formatted in Sheet1
Click Conditional Formatting > New Rule > Use a Formula to determine which cells to format
In the formula bar, type in =ISNUMBER(MATCH($A1,Sheet2!$A$1:$A$100,0)) and select how you want those rows formatted
And that should do the trick.

Resources