Excel - condtional formatting based on multiple strings - excel

I would like to fill the cells individually from C to L based on the 7 lists on the right. Unfortunately this isn't working too well.
Not every cell is getting filled and others are filled wrong/double.
I select the cells for the conditional formatting for the deep red list based on this:
=OR(ISNUMBER(SEARCH($M$2:$M$20; C2)))
I'd guess that here's a simple error in thought with the "C2"?. Thanks in advance!
Edit:
Link to the file
https://drive.google.com/open?id=1mtGdSlDCMdR1qXVU07Z-hGFyvtq21Hpb

The conditional format rule you are using applies to the range $C:$L. The first cell in this range is C1; substitute C2 in your formula with C1 and it should work as desired.

Related

Conditional formatting formula to highlight/color an entire row based on two different column values

I have searched far and wide but cannot seem to find a question that answers this.
I am trying to highlight/color an entire row in Microsoft Excel for Mac (16.33) based on two different values in two different columns.
This is my current forumla:
=AND(SEARCH("no",INDIRECT("C"&ROW())),SEARCH("yes",INDIRECT("D"&ROW())))
From my understanding, it is searching first in column C for "No", then proceeding to search column D for "yes". Enclosing this in AND() must ensure that both cases are true. If they are not, it returns false and does not apply the formatting.
This formula should return something like this, which works perfectly with the above example in Google Sheets:
Column D contains a yes, but Column C also contains a no, rendering the entire row yellow.
Since conditional formatting works top to bottom, it moves on to the next rule which is:
=SEARCH("yes",INDIRECT("D"&ROW()))
Hence, two "yes" return full green across the row.
I cannot get this to work in Excel with the same exact formulas. I have ensured the correct cell range has been selected for conditional formatting.
Why is such a complex formula needed? The following must work in Excel:
=($C1="N")*($D1="Y") - for yellow
=($C1="Y")*($D1="Y") - for green
Don't know about GoogleSheets

Conditional Format Based on User Input

I am trying to use conditional formatting but I am running in to issues.
I have a single range which is populated based on user selection for an ActiveX ComboBox. What I am trying to do is highlight rows if the single range of cells contains duplicate values, but if the cell is blank, contains the word "Value", or does not match another cell in the range then leave the cell and row as is.
Basically if Cell B4 equals B46 then highlight both rows.
I have tried the following formulas with no success.
=IF(AND($B$4:$B$50="",$B$4:$B$50="Value"),0,COUNTIF($B$4:$B$50,$B$4:$B$50,0))
=IF(AND($B$4:$B$50="",$B$4:$B$50="Value"),0,MATCH($B$4:$B$50:$B$4:$B$50,0))
=IF(AND($B$4:$B$50="",$B$4:$B$50="Value"),0,IF($B$4:$B$50=$B$4:$B$50,1,0))
I'm still learning excel and could use some help on this. Thanks in advance!
Eric
I suspect what you want is a CF formula rule something like:
=AND(NOT(OR(B4="",B4="Value")),COUNTIF(B$4:B$50,B4)>1)
applied to B4:B50.
Thank you everyone who provided a response. I was able to develop a solution that worked based on your responses. The following is the solution I used:
1.) Created a conditional format highlighting duplicate values.
2.) Created a conditional format using the below formula to highlight duplicate rows, ignore blank rows, and ignore rows with "Value" in cell B4:
=AND(COUNTIF($B$4:$B$63,$B4)>1,LEN($B4)>0,LEN($B4)-4>0)
Thank you once again for everyone's assistance.
Eric

Excel conditional formating - conditional on sum of all previous cells and total sum

I have a question with regards to conditional formatting which I simply can't seem to solve.
The aim is to format the background color for the left-most cells that are blank up until a cell contains a value - and after this there should be no more formatting in this row. You can see an image of the result I'm hoping for beneath:
So far I've managed to create the conditional formatting of the blank rows, but sadly haven't managed to create the "single-cell" formatting (in yellow) conditional of the sum of all the first cells being = 0.
I've created a formula which actually succeeds in calculating the sum of the previous cells, but this formula includes INDIRECT() which it seems that conditional formatting doesn't allow. At least I'm getting an error starting with the follow (translating the error from Danish to English might not be intuitive):
You cannot use reference operators such as.....
The formula I'm trying is the following:
=AND(SUM(A2:INDIRECT(IF(COLUMN(A2)>=27;CHAR((64-26)+COLUMN(A2))&CHAR((64-26)+COLUMN(A2))&ROW(A2);CHAR((64)+COLUMN(A2))&ROW(A2))))>0;$K2>0)
Where $K2 is the sum of the row.
Is there a way to SUM a range of cells by doing something similar to this:
=SUM(B2:CHAR((64)+COLUMN())&ROW();"")) to dynamically SUM the range from B2 to the current cell? The problem in this case is whether the part CHAR((64)+COLUMN())&ROW();"") can be converted into a legible cell such as B4 to make it work inside the =SUM() formula?
Sadly the =ADDRESS() formula cannot be used (as far as I know) as this will trigger the same error in conditional formatting as well.
For now I would like this to work with the regular Excel conditional formatting, but if anyone have a simple VBA this would also have interest - however, I would by far prefer the regular solution.
The question:
Is there a way to create a formula that doesn't trigger this error - maybe by refrasing the formula or doing something completely else?
It seems to me that this could be handled with a much simpler CFR formula like,
=and(not(sum($a2:a2)), $k2)
Am I missing something?

AND / INDIRECT Conditional Formatting

What I am trying to achieve is if a cell in column AB equals "Yes" and a cell in column AC is blank, then a certain range of cells will be formatted. Currently the rule is not formatting cells that it should. I am basing this code on another formatting rule I am using that works properly, but does not use AND().
=AND(INDIRECT("ab"&ROW())="Yes", INDIRECT("ac"&ROW())="")
I am sure this is an obvious syntax mistake, but I am still very new to Excel and can't figure out why this isn't working.
Try This:
=AND($AB1="YES",$AC1="")
Use the format painter to drag the formula around.
As Jeeped said, change the 1 in $AB1 and $AC1 to your first row.

How do I override excel conditional formating if one cell contains a value

I currently have a worksheet where column C changes to red if it is due in the next seven days. I would like to have the row change to a different format if I enter ANY date in column E. I have tried a bunch of different ways but I can only get the E cells to change or the entire worksheet and it seems to ignore the E entry.
Here is a link to the file:
http://mpereaseportfolio.weebly.com/uploads/2/5/6/2/25627115/summer_assingment_schedule.xlsx
Try this:
Select the whole range of data except headers, i.e. A2:H193
Now apply a new condition in conditional formatting using the formula
=$E2<>""
Select required format
Make sure that condition is at the top and tick "Stop if TRUE" so that other conditions are not applied
Note that you need exactly that formula including the $
Note also that the formula always refers to the first row of data but will work for the whole range
Please try a formula rule such as:
=(IFERROR(FIND(" AM",$E2),FIND(" PM",$E2))>0)
with applies to =$A$2:$H$200 or similar

Resources