Google Spreadsheets - highlight if same cell is exist - google-sheets

I have spreadsheet with two tabs (House1, House2).
Example: https://docs.google.com/spreadsheets/d/1ZaYgBEfqe9S9Qc526HjkhquJMDQKitvv8khjQIyZfMA/edit#gid=0
In House2 tab I have some names database.
In House1 tab I write new names.
Question:
How set highlight if new name in House1 tab will same like some name in tab House2?

Set up conditional formatting on the range A:A in Sheet1. Use as a custom formula
=countif(indirect("House2!A:A"), $A2)>0
and see if that works?
Check out the spreadsheet you shared and check out the conditional formatting applied to column A in sheet 1.

Related

How to use conditional formatting to color cells if the value of that cell is in another list in another sheet

I have 1 list of all members (sheet1)
And another list in another sheet (sheet2) where their names can come up multiple times
My question now is, how do i use conditional formatting to check if the names in Sheet 2 are also in the list of Sheet 1 (by coloring in those who are not in the list of sheet 1)
You can't reference other sheets when using conditional format by default, but there is a workaround (using INDIRECT).
Custom Formula:
=IF(A:A<>"", IFNA(NOT(MATCH(A:A,INDIRECT("Sheet1!A:A"),0)), TRUE), FALSE)
Output:
Conditional Format:

To identify same words in two tabs in a google sheet

My Query is i want to highlight the duplicates in the two tabs in a sheet. My sheet is attached along with this question. In that "Sheet A" & "Sheet B" have common names in it i want to color it for the duplicates.
Sheet : https://docs.google.com/spreadsheets/d/1hL64Q7REorVkjJNKAEGPFBdinlIn8VwnE6H7L9fYB2c/edit#gid=0
If it is possible, is there any option to find the duplicates between two google sheets ?
if yes then pls help me to find duplicates in Sheet A in Match 1 sheet and Sheet C in Match 2 Sheet.
Sheet 2 : https://docs.google.com/spreadsheets/d/1xAUmvmaZPvfJwCHD_esrshLccgKM3VmP1CI46mMoRB8/edit#gid=0
I have an answer that shows how this can be done. See the tab I added, "Sheet 1-GK", into your sheet.
The formula in C1 looks at the data from Sheet 2 to see whether each name in Sheet 1 column A is found in Sheet 2.
Here is the primary formula:
=ARRAYFORMULA(IFERROR(
IF(MATCH(A2:A9,IMPORTRANGE("https://docs.google.com/spreadsheets/d/1xAUmvmaZPvfJwCHD_esrshLccgKM3VmP1CI46mMoRB8/edit","'SHEET C'!A$2:A$8"),0),
"Y",
"N"),
"N"))
In the sheet, I have wrapped it in an array, {...}, to also add the column header text.
Then a conditional formatting rule is used to highlight the rows that have "Y" in column C.
Note that you can either hide column C, or incorporate its formula logic into the conditional formating rule, to do everything there.
Is this what you were looking for, or did you need something else?

Google sheet formula that finds row name and returns column headers based on marked cells

I'm trying to return the column headers for a row that is marked with an x. The row is selected from a name in the left column. I'm stuck here.
I can illustrate what I want to do by showing these images:
Start table
The result I want is this:
Outputs of the possibilities for the first sheet
I have put more information in my Example Sheet.
Link to editable example sheet
This formula should create a table (with a single formula) with the months in one column and the headers in the second column.
=ArrayFormula({A4:A15\ substitute(transpose(query(transpose(if(B4:G15="x";B3:G3&char(10);));;rows(A4:A15)));" ";)})
If you'd want to 'lookup' the months you manually type in you can wrap the above in a vlookup. Example:
=ArrayFormula(if(len(L4:L); vlookup(L4:L; {A4:A15\ substitute(transpose(query(transpose(if(B4:G15="x";B3:G3&char(10);));;rows(A4:A15)));" ";)}; 2; 0);))
You can check out both formulas in the copy of the sheet I've made in the spreadsheet you shared.

Highlight cell if same value present in another sheet's cell

Example -
Client has a master list of client's hosted domains in sheet 1.
Client keeps list of actual A record verified domains in use in sheet 2.
What I need is to highlight domains in sheet 2 which match domains in sheet 1 using a color, and highlight domains in sheet 2 a different color if they do not appear in sheet 1.
(Domains in master list which match A record entered domains in sheet 1 appear in Green, domains which do not match list appear in red)
The column names on both sheets are "domain".
Add a helper columns in each, say H, with formulae like:
=--countif(Sheet1!B:B,B1) >0
copied down to suit (assuming domains are in ColumnB - change Sheet1 to suit actual sheet names).
Then apply Conditional Formatting rules of:
=H1
and:
=H1<>TRUE
to Ranges B:B
with colours to suit.
Correction
The above was based on my misreading the question (I thought some highlighting was to apply to each sheet): Instead please try, in say H1 of Sheet2 and copied down to suit:
=--countif(Sheet1!B:B,B1) >0
and these two rules:
where the first is:
=and(H1<>"",H1<>TRUE)
(the first part of which is to avoid blank cells being highlighted).

Google spreadsheets: conditional formatting with custom formula based on values from different sheet

I have a google spreadsheet with two sheets. On the first sheet, the items are listed in column A, and their types are in column B.
On the second sheet, I reference to the first sheet's column A with the formula: =UNIQUE(Sheet1!A:A).
Then I want to color the items in the 2nd sheet based on the item type (1st sheet's column B*). I try to add conditional formatting using the formula =Sheet1!$B:$B="Type1", but when I try to save rules, it says the formula is invalid.
What would be the correct formula for this case?
You cannot reference cells directly in the conditional format formula. Also, I do not think that formula would work.
First, you need the VLOOKUP function to get the object's type.
Here's an example of using this function. The difference would be that the corresponding data in the first parameter would be preceded by the sheet name in your case.
See this image:
As you can see, VLOOKUP searchs for the item from D in the matrix A2:B4, and then returns the corresponding value (the value in the same row) in the second column of the matrix, which is column B.
So if you to apply this formula to conditional formatting, you would have:
=VLOOKUP($D$2:$D;$A$2:$B$4;2)="Dragon"
The first parameter of VLOOKUP has to be a range, and I started it from D2 so it would not match the header. In your case, it would become:
=VLOOKUP($D$2:$D;Sheet1!$A$2:$B$4;2)="Dragon"
But as you cannot use references directly, you need to use the INDIRECT function. It receives a cell range as a string and returns a reference to that range. It's the same as using references directly, but in this case you add an extra step (go figure). So the formula finally becomes:
=VLOOKUP($D:$D;INDIRECT("$A$2:$B$4");2)="Dragon"
You can choose any range to apply the format if you are using the new version of Spreadsheets. You could, for example, color the entire row or just a single cell.

Resources