So I have 2 tables, the first has a list of acc numbers (column A) and Customer Name (column B). This list will have multiple entries of each customer. The problem is that this list is updated by multiple people who while gets the Acc number right they often mis-spell the customer name.
I have a second list that has the customer acc number and customer name spelt right.
What I want to do is take the customer name with the correct spelling from list 2 and replace the incorrect spelling in list 1.
You use the formula and copy/paste "values only" over WRONG names
=ArrayFormula(iferror(vlookup(A2:A,D2:E,2,0)))
copy/paste these "values only" over WRONG names
As there are probably many ways you can spell coustomer's name incorrectly, it's very difficult to make autocorrect in spreadsheet. Also it may be dangerous.
What I suggest is to use data validation set based on a column with customer names in 'second list'.
Menu --> Data --> Data validation
This method allows manual input or choosing from dropdown list.
It also let's add new customers but it will trigger the warning
Related
I've read a few similar questions, and I can't seem to find exactly what I'm trying to do.
I have a roster of employees in sheet "Roster" with their names in Column A. In sheet "Hours" I have a list of assigned jobs for tomorrow, with the assigned employee's name also in Column A. I'm trying to add a column of employees from the roster that are NOT in the list of employees on jobs.
The closest I've gotten is with this, on the Hours sheet:
=ARRAYFORMULA(VLOOKUP('Roster'!A2:A, A2:A,1,0))
which gives me a list of the entire roster, with the missing ones returning an #N/A error that tells me the missing name when I mouse over it and read the error code. Is there a way to just get a list of the errors? Would I be better off attacking this from a completely different angle?
EDIT: Sanitized example pictures. If what I was trying to do worked, it would return Bob and Jim in this example.
Assuming you're trying to return this list in the "Hours" sheet, you can build off what you had. Try this:
=ARRAYFORMULA(FILTER(A2:A,ISERROR(VLOOKUP('Roster'!A2:A, A2:A,1,0))))
Keep in mind that this formula was written sight-unseen. If it doesn't work as expected, consider sharing a link to a copy of your sheet (or to a sample sheet set up the same way and with enough sanitized but realistic data to illustrate the problem, along with the manually entered result you want in the range where you want it).
I ended up going a completely different route. I made a third "Under the Hood" sheet, pulled the two columns into it with queries, ran a match formula down the list and returned "" on errors, then ran a query on Hours to get the names where it had null for the match list.
I have a budget spreadsheet for simple money transactions. One of the columns is the transaction category (e.g. Grocery, Auto Supplies, Insurance, Entertainment, etc.)
Rather than spell out, let's say, Insurance, in a given cell, I would like a list of possible values to appear, so that I can select one of the values (e.g., Insurance) and have Excel put that value in the cell for me. That way I make sure that Insurance is spelled the same each time I use it.
Is there an easy way to set this up in my workbook, preferably without getting into VBA coding?
You can create a dropdown lists in Excel. What I found from this video:
"
Select the cells that you want to contain the lists. On the ribbon, click the DATA tab, and click Data Validation. In the dialog, set Allow to List. Click in Source. In this example, we are using a comma-delimited list. The text or numbers we type in the Source field are separated by commas. And click OK. The cells now have a drop-down list.
"
Is there a formula/function you know of that recognises if a cell content is generated from another formula and not directly input text/string?
I have a column with a formula that chooses an team member for a task to evenly distribute a task.
This column also has a data validation with the same team members names as choices.
If the team member accepts the task they choose their name from a dropdown box by data validation overwriting the formula so it doesn't change.
I am trying to create a bot (Zapier) that only sends a email when this last step happens, not when the formula selects the team member.
i.e. I was wondering if anyone knows if there is a formula that recognises if the team members are selected by the formula rather than selected by the data validation dropdown.
you can try:
=ISFORMULA(A1)
but note that this won't detect input created by arrayformula
I am creating a tool for a video game I play.
Link to the example spreadsheet (Please make a copy to edit so that this copy stays intact for additional helpers).
Sheet 1 is “Choose Owned”. It contains a list of all of the champions available in the game and includes their attributes.
Column A contains checkboxes. Checking a checkbox indicates that the user owns that champion, and brings it to Sheet 2.
Sheet 2 is called “Owned”. It contains a list of the champions checked off in “Choose Owned” (aka the champions the user owns). “Owned” includes the champion attributes too, as first seen in “Choose Owned”.
Beyond those same attributes, “Owned” contains 8 additional columns.
These columns are from Columns G:N and are labeled ‘Level’, ‘Rank’,
‘Ascension Lvl’, and ‘Team Label(s)’ (‘Team Label(s)’ takes up
columns J:N). This data is all unique information and requires the
user to input the information themselves depending on their
champions.
Because there are so many champions, I want the user to be able to use the Filter function in “Owned” so they can easily locate the champion they need or sort the table however they wish.
However, because I use the QUERY function to get the data from “Choose Owned”, the Filter function tends to break. The most obvious error comes when you try to sort A-Z or Z-A; this simply cannot be done. I was fine with this, and have even included a note at the top telling the user to avoid sorting alphabetically.
Everything else works correctly until the user tries to add a new champion from “Choose Owned”. When the champion is added to “Owned”, the additional, unique data in columns G:N go out of order because they don’t move with their original champions.
Example:
I choose my champions. These champions are copied to “Owned”.
I pick their relative data in columns G:N.
A few days later, I obtain new champions and check them off in “Choose Owned” so they are added to “Owned”. However, when I do this, the champions stay in the same order as they are in “Choose Owned”, and columns G:N do not move with their champions so now, that information is with the wrong champion.
I want the additional data (G:N) to move with their champions when the table is edited due to champions being added. Or, in other words, I want those columns to stay linked to the first columns.
If there is a different way to achieve all of this like if I have to use a function other than QUERY, that is fine!
Please share any solutions you may have. I would prefer to not use a script but will consider the idea if it works.
this is a common issue within Google Sheets and it's solvable in 2 ways:
either by introducing a common value (unique ID) and then linking the manual input to query and aligning it by ID
or easier approach in your case - using timestamp/linear ID so every new entry would be added to the bottom and then the query would be sorted based on this order.
(I apologize if this was answered somewhere else so if it was please share with me because I couldn't find anything)
I have two sheets, one with a long two-column list - first column: city, second column: office
I can't give away the details due to my job's privacy concerns but it is just to group certain cities with certain "offices" and I figured the easiest way to do this would just simply type the office name next to the city all the way down so I could use =lookup()
I have a dropdown list that references the range of cities on the next sheet (so all values match exactly as it is) and the cell next to it will populate the office name associated in the next column to the city name.
=LOOKUP(B2, Sheet2!A2:A, Sheet2!B2:B)
B2 being the cell with the dropdown list, Sheet2!A2:A being the list of cities and Sheet2!B2:B being the list of offices
There are no duplicates in the city list, I have removed them. Though currently, there is only one office type I have included on this sheet for now until I get this working.
Some dropdown items display the office name just fine, others (just random ones) display an error. I don't really understand since they're all in the same place.
I made a copy and moved it to my personal drive so you can look at it directly
https://docs.google.com/spreadsheets/d/1TF1bBQdC8ysA30YcGOmB1ojrvQGnfGrznWOrA1vzHZs/edit?usp=sharing
Thank you for any advice, I'm probably missing something simple or there is a better way to do this.
*update: there was really no point in editing this post but thanks?
use VLOOKUP instead of LOOKUP
=VLOOKUP(B2, Sheet2!A2:B, 2, 0)
if you have more cities you can use arrayformula:
=ARRAYFORMULA(IFERROR(VLOOKUP(B2:B, Sheet2!A2:B, 2, 0)))
Your lookup is not working because the search range is not sorted.
The documentation for LOOKUP has a note:
The LOOKUP function will only work properly if data in search_range or
search_result_array is sorted. Use VLOOKUP, HLOOKUP, or other related
functions if data is not sorted.
You can sort the cities in "Sheet 2", or you can use VLOOKUP instead since it supports unsorted ranges:
=VLOOKUP(B2, Sheet2!A:B, 2, FALSE)