I have a problem with Spreadsheets. In one of my sheets, I have two tables. The first contains the employee ID and the total hours; and the second has for each employee, his/her name and ID. Example:
!
I am trying to figure out a formula to look through the second table and if it sees a certain employee ID then it will assign that employee ID with the person's name. I would like to keep the column that lists the employee ID but to have a formula that places the person’s name near to his/her ID. The problem is that I do not know how to stick such information. For instance, in D4 should appear "Ben Hale" because the employee ID of E4 matches with the ID that appears in E25.
The expected output is in red (except the value of E18). I want to obtain such output using formulas.
Please try:
=index(F$22:F$37,match(E3,$E$22:$E$37,0))
copied down to suit.
In addition to the valuable contribution of pnuts, you could also use enter the following in D4:
=ArrayFormula(vlookup(E3:E17, E22:F37, 2,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}
I have set up a Sheets file to have a list of the personnel of a company. Each line corresponds to a person and each column to a data of this same person. There is the date of entry in the company, the name of the person, his first name, his department, ...
I am trying to set up indicators and one of them is a problem. I would like to have the list of departments for people who joined the company on a given date (link). Thanks to the formula in F2 in the previous file, I can obtain the value of line 2 but I would like to have all the values at once without having to apply my formula to each line.
Try this out
=filter(D2:D;A2:A=today())
Update I added a link to a Google sheet and the column id like to know how to create
https://docs.google.com/spreadsheets/d/1oIqPf1OffpeCeMJW6kMJztT3mAWCLBPE7f8Ohr066wo/edit?usp=sharing
I need to analyze communications between different team members and users and need a way to combine different contact methods into a single identifier. I have a sheet that lists all the different contact methods for a single person (email, slack, phone), but not a way to link that to the sheet that keeps track of communication. Here's how the problem is set up.
The first sheet has the method of contact for each row. So, if the same person was contacted once by email and then by phone, the email would be in one row and the phone number would be in the second row (both listed in the same column).
The second sheet would have the contacts identifier (a unique ID), along with their name, phone, email, and other contact info.
How would I create a column in the first sheet that lists the unique identifier associated with any type of contact to that person?
So, for instance, the ideal solution would have something like this for hypothetical two people (the third row represents another person, the first two rows are the same person).
Col1 ID
email#name 4
555-555-5555 4
SecondPerson 5
I'm familiar with both R and google sheets, so can take solutions to create this in either. Or, I can import them into an Airtable if that helps.
I tried to look up solutions for record linking, but since all of the contact types are listed in the same column, I couldn't find a solution. Thanks and let me know if I can make the question more clear.
=ARRAYFORMULA(IFERROR(VLOOKUP(B2:B, {contacts!B2:B,contacts!A2:A;
contacts!C2:C,contacts!A2:A;
contacts!D2:D,contacts!A2:A}, 2, 0) ))
I have an excel sheet which shows the names of 1,900 borrowers. The sheet is not sorted out in alphabetical order (and it does not need to be sorted in alphabetical order). What I am trying to perform is that I want to compare the two column and see if they match. If the two columns do not match I want that result to be shown either in separate column or those names of the countries and responsible person to be highlighted.
For example, the below screen shot shows that there are various countries in the list and there is various responsible person associated with each country. The idea is to identify the countries whose responsible person are not the same. So in this example countries USA & AUSTRALIA should not show up because they have the same responsible person but all other countries and responsible person should be identified. I appreciate and thanks for all the help.
You can solve this by creating a pivot table of your data. Insert pivot table and then add Country name and count of responsible person as grouping (assuming no duplicates) then anything with a count greater than 2 is an issue.
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.