Compare two sheets of data and highlight difference - excel

I need to find a way to compare two sheets of data in a workbook. The columns are exactly the same. However, the rows are not the same. The conditional formatting would have to compare the cell to all of the cells in a column on another sheet to see if there was a match if yes then color red. If no, then color green.
I have tried another solution provided here but it didn't work since the rows were different.
Is this possible?
This is what I have tried.
Formula:
=AND($C1<>"",COUNTIFS($C:$C,$C1,'Existing Data'!$C:$C,$C1)=0)
Highlight is green.
I'm trying to find the ones that are not already in the existing data.
I tried the formula I entered in above.

Related

Is there a way to highlight all identical cells to that of the cell selected in Excel?

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

excel conditional formatting comparing different rows and columns

I'd like to change background color of cells if the value of $E2=$F1 (comparing different row and column). The range I have selected is =$E:$F.
I want the background color changed in both same value cells or at least on the first column cell. The problem is that I don't know of to tell excel to change the "1st. column, 2nd. row" of every comparison. Excel is changing only the cells of the first row and not the cells that have the same value.
Excel Sheet
Formula
I don't speak English, I hope you can understand what I am saying. :-)
Thank you!!!
Create a custom formula rule as =$E1=$F1, and apply it to the range =$E:$F.
Be careful that this will see two blank cells as equals and turn them red, so you're better off doing =$E3=$F3 applied to the range =$E3:$F12.
EDIT
Now I understand your question, just create two different rules,
=$E4=$F3 applied to range =$E4:$E12
=$E4=$F3 applied to range =$F3:$F12

Conditional formatting cells with lowest value per row excluding specific columns

I've looked around but haven't been able to find an exact answer to this question without learning everything there is to know about excel formulas.
I'm trying to use one conditional formatting rule to highlight one specific cell in each row in a dataset.
I've got that working with this: =AND(D5<>0,D5<=SMALL(IF($D5:$W5<>0,$D5:$W5),1))
The next part is having the formula exclude hidden columns/columns that have the header "USA" for that I have this formula: =SEARCH("US",D3)=1
Which works to highlight the cells with USA written in them.
I need to combine these two formulas to have it highlight the single lowest value in each visible row.
On a separate note I then want the highlighted value displayed at the end of the data set. This way if I update the document with a lower price it will automatically update the rest of the sheet with this information.
I am not sure of your ultimate objective (eg mention of hidden columns/columns that have the header "USA" - is that one condition or two? - and each visible row - is that because part of each row is hidden or are rows hidden as well as columns?) but your immediate requirement seems to be to combine two formulae into one for CF and for that the following may suit, assuming from D5 to Wn is selected first:
=AND(D$3<>"USA",D5<>0,D5<=SMALL(IF($D5:$W5<>0,$D5:$W5),1))

Using conditional formatting to compare multiple cells in one row to another

I'm trying to figure out what formula I can use to highlight duplicates in a spreadsheet.
I want to compare data across multiple cells to see if it matches with other sets of cells with the same data.
For example, given this data:
Name, Food, Animal
Donald, Hamburger, Alligator
Rupert, Sushi, Alligator
Christie, Hamburger, Panda
Donald, Hamburger, Alligator
I want to make excel highlight the 1st and 4th cells as all values are the same across all three cells. I've tried countif to create rules to highlight the duplicate cells but I cannot seem to get excel to compare across three cells. Is the only solution to use IF AND to compare each column one by one? The data set is several hundred rows long so I am trying to figure out a quick way I can repeat this check across multiple workbooks. I've tried to use the basic conditional formatting options provided by excel but haven't been able to get a good result using those.
Thank you!
If Name is in A1, please try a Conditional Formatting formula rule of:
=AND(COUNTIF($A$1:$A$100,$A1)>1,COUNTIF($B$1:$B$100,$B1)>1,COUNTIF($C$1:$C$100,$C1)>1)
with Applies to: =$A:$C.

Excel conditional formatting of adjacent cells from a drop down list

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").

Resources