I am aware in Microsoft Excel, we can use Conditional Formatting to highlight and find duplicate values.
Essentially, in Google Sheets what I want to do is using a second list - find all the values in the first list that are the same as the second and then only keep duplicates.
For example, in my google sheet I have the original list as:
Shoe Brand Location
Nike USA
Adidas Europe
Lacoste Europe
Ralph Lauren USA
Under Armour USA
Umbro USA
Puma Europe
Slazenger Europe
Timberlands USA
Crocs USA
CK USA
Then the second list in the same Google sheet has this:
Shoe Brand Location
Lacoste Europe
Timberlands USA
Slazenger Europe
Nike USA
Crocs USA
Effectively, I only want to keep the shoes that appear in the second list
Thanks
If I understood well, you want to create a new table that compare your first and second tables, and keep only the duplicated shoes (i.e. any shoe that is in the second table but not in the first should be ignored)
You can therefore try something like this:
= ARRAYFORMULA(SORT(IFNA(UNIQUE(VLOOKUP(F2:F,A2:B, {1,2}, 0)),""),1,0))
Related
I have a google sheet that users input data on. These sheet has complete town names. Eventually the data they input gets uploaded into a program which has the town names abbreviated. Im looking for a way to automate basically doing find and replace.
Sheet1- Users input
Town
Data
Washington Town Center
123345
Washington Town Center
988765
Fairland Heights
12345
Sheet2 - Reference to the correct names for program.
User
Program
Washington Town Center
Washington Twn Ctr
Fairland Heights
Fair Heights
I basically need to replace the Town names in Sheet1 with the names the Program uses and then all data with that row. A new sheet worth of data is sent every week, so Im looking for the most efficient way to change those names.
I have tried using QUERY and FILTER but cannot seem to find the best way to go about this.QUERY would find all the matches and add as multiple rows as the user sheets can have multiple entries for same town
=QUERY('Sheet1'!A:G,"select * where A like '%"&A2&"%'",0)
you need VLOOKUP:
={INDEX(IFNA(VLOOKUP(Sheet1!A:A, Sheet2!A:B, 2, ))), Sheet1!B:G}
So I am working on a Google Sheets project for a small business that I am going to be starting up. So I have Google sheet with 4 different sheets in it. Let me explain what each sheet is for:
1st sheet named "All Customers": This sheet will have a bunch of information about all the customers who are using our services (Name, Subject, Price, Location, Instructor).
The other 3 sheets are for the 3 instructors who would handle all the customers. The 3 instructors are Sam, Lucy, and Jason, and their Sheets are named Sam's Customers, Lucy's Customers, and Jason's Customers respectively.
I want a sorting system where I can put in the info of the customer in the "All customers" sheet and based on the instructor I assign to them, that customer's info gets sorted and appended into the assigned instructor's Sheet. SO here's an example:
Jordan who wants to learn math needs to pay $200 for tutoring by us. He is located in NY so I assign him to our instructor Lucy who resides in NY and can tutor him.
In this case, this is what the "All Customer" sheet would contain:
A B C D E
1 Name Subject Price Location Instructor
2 Jordan Math $200 NY Lucy
Now Based on the fact that Lucy was assigned as the instructor for Jordan, I want his select information to be added to the "Lucy's Customers" Sheet Like so:
A B C
1 Name Price Location
2Jordan $200 NY
That's what I'm trying to achieve. If Jordan was assigned Sam, the select information of Jordan would be added to the "Sam's Customer" sheet.
So I'd been at this for a while and based on my research I wasn't able to get anywhere. I was messing around with the following Formula: =IF(INDIRECT("All Customers!C1:C")="Lucy",INDIRECT("All Customers!A2:A")," ")
But I know this won't achieve what I'm doing.
Here is a link to the dummy spreadsheet for this project so anyone can mess around with it:
https://docs.google.com/spreadsheets/d/1TGS9thgt77DSLbOUC5V2tRyjrDqE9He5ET17bM7HhZU/edit?usp=sharing
The Query method works but it only mirrors the information. I have pre-made cells in the instructors' sheets where there are cells that record if the customers under that specific instructor has paid or not monthly. The query is basically mirroring the information instead of copy/pasting. So when I get rid of a customer or switch the instructor in the main record, it will disappear from under the respective instructor's sheet. If that's the case then the corresponding cells that record the monthly payments in the instructor's sheet will be messed up.
Any help would be appreciated. Thank You in advance!
I have introduced the queries in the sheet. Please have a look. The data can be retrieved using QUERY function of Google Sheets. example is given below
=QUERY('All Customers'!A:E,"SELECT A,C,D WHERE E CONTAINS 'Sam'",0).
Now, whenever you make new rows in "All Customers" sheet, data would automatically be updated in instructor sheet.
Hope it is clear.
Is it possible to have different prices calculated depending on the date of submission of the Google Forms in Google Sheets?
If parents register for summer camp before the 31st of May they get an early bird discount, if not they pay full price. I have the prices being called from a separate sheet, and can manually change them after the date but if I do that all of the prices before the date will be effected as well.
Here is a link to the spreadsheet: goo.gl/V0JRTz The formula is in row GZ.
Here are a couple of screenshots as well:
I could able to get unique values from one sheet. but need to exclude few values while getting them from another sheet.
For example, Ive got below details from one sheet by using =UNIQUE(Country!A1:A223). Now I need to exclude only India from this list . I tried with =UNIQUE(filter(Country!A1:A223="India") Which is not working.
India
China
US
UK
Australia
Singapore
How to exclude particular data from this list.
To exclude India use:
=UNIQUE(filter(Country!A1:A223,Country!A1:A223<>"India"))
If you want to exclude a list of countries you can create a sheet named Country (the list of countries including duplicates), a sheet named Exempt (a list of countries to exempt from the Country sheet) and then enter this formula where you want the new country list to appear (this can be a new sheet. The formula assumes row one on the Country and Exempt sheets is a header row.
=unique(filter(Country!A2:A, isna(match(Country!A2:A, Exempt!A2:A, 0))))
Thanks for your input. It really helps me. I've another concern now. =vlookup(C5,'Country'!$A1:$B20,2,false).
From the above macro, I need to increase the value only for C and A,B values should be same If I drop down this for another 100 fields.
How do I perform this selective highlighting if I have two plots that aggregates using somewhat unrelated information? I understand that sheets of a dashboard can be highlighted together when a user clicks on an item in any of the sheets.
For example, with the data below, I try to have 2 scatter plots of Quantity x Amount - 1 with Origin as the details/label, and another with the Categories. I put them in the same dashboard, and I want the user to be able to click on the Japan circle and see in which Categories we have Japanese products - i.e. highlight all the marks in the other chart where Japan is the Origin. The link to both charts is the Product IDs. This is a simplified example of what I want to do. I have a lot more records and sheets.
Product ID Origin Categories Quantity Amount
1 Japan Fruit W $10
2 China Fruit X $20
3 Japan Delicacy Y $30
4 China Delicacy Z $40
To put it another way, I want the highlighting action to also highlight the other sheets in the dashboard/workbook (whichever is feasible) based on the value of the attribute highlighted.