Hihglight duplicate cells from two different sheets in Google Sheets - google-sheets

I am trying to highlight duplicate cells of Column A in sheet 1 by matching Column A in sheet 2. I used this formula in conditional formatting in sheet 1.
=countif(INDIRECT("2!A:A"),A1)>1
But it not working.
In sheet 1 Column A has these items
In sheet 2 Column A has these items
Here is the formula
Here is the google sheet
I check other links, but couldn't complete the task. So I am posting a new post.

your formula should be:
=COUNTIF(INDIRECT("2!A:A"),A1)>0

Related

Column to row formula in Sheets [duplicate]

The Google Sheets formula below is located in column A1 of my Google Sheet. This formula creates data in column A & B. I need to transpose this data into 1 row
=GOOGLEFINANCE(A2,"price",TODAY()-30,TODAY())
=TRANSPOSE(GOOGLEFINANCE(A2,"price",TODAY()-30,TODAY()))
The transpose formula successfully transposes the data in the 2 columns to 2 rows, as it should. My question is, will there be a way to transpose two columns of data into 1 single row - I have searched around for a solution for Google Sheets without any Luck.
you can use famous "double query smush" like:
=QUERY(TRANSPOSE(QUERY(TRANSPOSE(GOOGLEFINANCE(A2, "price", TODAY()-30, TODAY())),,999^99)),,999^99)

Google Sheets Query using important range and a dynamic cell reference

I have a roster of students (Sheet 1) and I need a formula to search another sheet (Sheet 2) to see if each student on Sheet 1 is also on Sheet 2 and if they return the word "yes"/ if they are not I would like the cell to remain blank.
This is the formula I have:
=QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1395p5J5oN4vYLPeyAdUQDZluwxWU53NYJPiqeHdXSEw/", "Quarter 3!A3:H"), "Select 'yes' where Col1="&$A7&"")
The formula is not working properly.
For students that are on Sheet 2 the formula is returning two rows of data (two rows of "yes) and the first instance of "yes" include characters that I did not include in the query:
For students not on Sheet 2, the formula is returning a yes with the extra characters "yes"().
I feel like I should be using an IF function, but I could not get it to work with IMPORTRANGE
use:
=QUERY(IMPORTRANGE(
"1395p5J5oN4vYLPeyAdUQDZluwxWU53NYJPiqeHdXSEw", "Quarter 3!A3:H"),
"select 'yes' where Col1="&$A7&"
label 'yes''')

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.

Formula to search for a matching item on two Google sheets and then fill in a third value if a match is found

I have two google sheets.
-Sales Sheet
-Goal sheet
On the sales sheet:
Column I has a list of items
Column J is blank
On the goal sheet:
Column A has a list of items
Column I has a list of values.
I need a formula to enter on the Sales sheet, which will search for the item listed in column I for a matching item on column A of the goal sheet.
When a match is found, it needs to take the value found in column I of the goal sheet and place it into column J of the sales sheet.
I've tried several formulas using MATCH but I just can't seem to get it to work. Any help would be sincerely and greatly appreciated!!
I tired this formula, but it seems to be filling in the value from column A instead of the corresponding value from column I. I know I'm missing a step here, but I don't know where to start:
=INDEX(IMPORTRANGE("[Sheet ID]","Page!I1:I500"),MATCH(A121,A1:A500,0))
I figured it out:
=INDEX(IMPORTRANGE("[sheet ID]","Goal-sheet!$I$2:$I$500"),MATCH(I5,IMPORTRANGE("[sheet ID]","Goal-Guide-Internal!$A$2:$A$500"),0))

Resources