I'm trying to get a column to highlight cells with duplicate values, but NOT the blank cells. I have seen a lot of information for older Excel programs, but I'm working specifically with Excel 2016.
I have tried =COUNTIF, but I just can't seem to get it to work without error. I know how to get Excel 2016 to highlight duplicates, just not while also excluding blank cells.
Thanks in advance for any help or suggestions you have!
There is a really simple solution to this that doesn't involve formulas. Create two conditional formatting rules over the specific range, in the following order:
Cell Contains a blank value -> no formatting -> stop if true
Duplicate value -> custom formatting
Related
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.
I would be very grateful for help with this conditional formatting problem as I'm terrible with excel but learning.
I have a large data set which I want to count specific OPCS codes (Classification of Interventions and Procedures). The issue is, that in some rows there are multiple OPCS codes that I am searching for and I need to find these rows and then manually decide which is most appropriate so figured highlighting the offending rows would be best.
I previously did this manually by using a simple conditional formatting formula to highlight all the OPCS codes I was interested in, then just scrolled down and made changes. However now I have ~8000 rows which makes this prone to error.
Is it possible for a conditional formatting formula to highlight rows which contains multiple OPCS codes that I am searching for? For reference columns I-U contain the OPCS codes and my lookup OPCS codes I am searching for are in a separate table.
It may be that conditional formatting can't be used for this so alternatives solutions would be much appreciated.
Many thanks!
Spreadsheet image example
I would say this is too complicated to do with a single formula. However, if you are willing to additional 13 columns to your table, can you get the info you need. Let's say you put the first formula in AI2 and fill it across to AU2 and then down to all rows:
=IF(ISERROR(MATCH(I2,$H2:H2,0)),IFERROR(MATCH(I2,TableOfInterestedCodes[OPCS Code Field Name],0),""),"")
This will display only the unique values of any OPCS codes that you are interested in. Now you can apply the conditional formatting formula as follows:
=COUNT($AI2:$AU2)>1
Select the area to be formatted and use the formula shown below (suitably adjusted to your actual layout)
I have an Excel sheet that does not contain tables just separated cells and was wondering whether there was a way that when you select a cell, cells with the same value also become highlighted. I've tried a bit with conditional formatting but that only seems to work permanently, I only want the highlighting to occur when a cell. Is there a way to do this?
Thanks in advance!
Tomas
Hoping I can get some help with this.
I need to apply conditional formatting to a block of cells (E21:F27) based on one cell value condition (E23>0), which I can do. I then need to copy this 'block' multiple times across, which I've managed to do too - using 2 conditional format rules:
Conditional Formats
Rows to be copied
I now want to copy & paste rows 21-27 and have the conditional formats update the row numbers automatically.
If this possible? I have googled my little heart out but can't find anything on it...
Your help is much appreciated!!! :)
I've been searching around here but I can't find anything quite like what I'm after.
In excel I have one column with a drop down list of a dozen different initials, with conditional formatting on those cells. I would also like to format another column based on those initials, but don't want to set up a dozen rules on each cell, one by one. If I set up the top cell with the correct rules I cannot fill the formatting in because the formula is not updated on a row by row basis, but en bloc for the range.
I have no real experience with VBA or macro's, is there a way to do this more elegantly than brute force?
Thank you very much in advance. This forum has always been a great help, hopefully you can help this, too!
I hope I'm not misunderstanding your question. You can copy the formatting to the other columns if you have set up the format as a formula. For example, if A is your column with initials, and you have a data cell in B2, then you can set a formula in B2 as A2="ER", for example, with the formatting you want, and do the same for the rest of your matches on A2. Then, you can copy the format down column B (unfiltered) using Paste Special Format. You can copy the conditional formats across as long as you make sure that your format in the conditional formatting rule is anchored on column A (i.e., $A2="ER").