I have a spreadsheet where a user will fill out a form which then outputs onto a google sheet with a timestamp. This is then concatenated with their name to get an input ID.
I have column A with the input ID and column B with the name of the person who is supposed to be in the columnID.
For example:
Column A: 11/11/11Bob Smith
Column B: Bob Smith
I would like to highlight any cell in column A that does not contain the contents of column B. There is a large amount of content in column B that changes on a weekly basis so it would not be worth the time to go through and set conditional formatting for each cell.
try:
=NOT(REGEXMATCH(A1, TEXTJOIN("|", 1, B:B)))*(A1<>"")
You can add conditional formatting to a whole range.
If data in column A should contain text of column B of the same row, this can be done with:
=not(REGEXMATCH(A1, B1))
Related
Say I have a column with Text data like:
A
B
A
D
I would like to create a new column so that the end result is:
A 0
B 1
A 0
D 2
What is the correct way do this is PowerBI Power Query Editor? I tried a few things like indexing but that gives a unique value to every row. Not very familiar with the API so am a bit stuck here.
We can do something like: List.PositionOf(List.Distinct(Table.Column( #"Table name", "Col")), [Col]))
where Col is the column name.
I have two lists of people - they will not be sorted in the same order. The second list is in a different sheet. If the person listed in column A shows up in Column A in the second sheet, I want column F to display "Y." If not, I want column F to display "N."
This formula: =ArrayFormula(vlookup(A2:A,Attendees!A2:A,1,0)) almost gets me there, but I can't figure out how to get it to return Y/N instead of the name of the Attendee or not.
Any ideas?
try:
=ARRAYFORMULA(IF(IFNA(VLOOKUP(A2:A, Attendees!A2:A, 1, 0))="", "No", "Yes"))
Using Google Sheets, I'm trying to do something specific that is apparently un-searchable (zero results).
Sheet 1 contains data in column A. I want to import the data in Columns A and B to their respective columns on Sheet 2, but only if that same row also has (literally any) data in Column C.
maybe this in Sheet2!A1:
=ARRAYFORMULA(IF(LEN(Sheet1!C:C), Sheet1!A:B, ))
or perhaps this:
=ARRAYFORMULA(IF(LEN(C:C), Sheet1!A:B, ))
i have two sheets. first column of both sheets has userids, but there is only some overlap of ids between the two sheets. i want to keep the userids in the first sheet, but in the second sheet, the second column has a point of data that i want. for those userids in the first sheet that are also in the second sheet, i want to get this data.
so, for say the first row's userid in the first sheet, how could i use vlookup to find that same userid in the second sheet (if it exists), get the value of the second column of that match, and bring it back to the second column of the first sheet?
thanks
Modify and put this formula into the first cell of the second column on the first worksheet. Then copy and paste it down the column:
=VLOOKUP(A1, Sheet2!A$1:B$100, 2, FALSE)
Let's look at the parameters for this function:
A1: This value, on this worksheet, is what we're searching for in the range given in the next parameter. When you copy and paste the entire formula down the column, it increments the row # with each row. In row 2, it will be modified to A2, and so on.
Sheet2!A$1:B$100 : This is the range that we are interested in, on the second worksheet. It is the top left to bottom right cell. The $ symbol tells Excel not to change the row #'s when you copy and paste the formula down the column. Modify B$100 to fit the range of data you are interested in... something like B$30 if you only have 30 rows of id's on the 2nd sheet.
2: This is the column you are interested in retrieving the value, relative to the above parameter. In this case, the 2 corresponds with column B.
False: This instructs Excel to find the exact match.
In one spreadsheet I have 3 columns with a first and last name of a person combined. In the 2nd spreadsheet, I have column a = first name and column b = last name.
I want to know which names in spreadsheet one cannot be found in spreadsheet two. I also need to verify the data to make sure that the formula was accurate on finding the correct lookup.
Do I have to combine my columns in spreadsheet 2 to make the first and last name in the same column to make this work?
Which formula would you use for either scenario?
Use this:
=ISNA(MATCH($A1&" "&$B1,Sheet2!$A:$A,FALSE)))
Where (in order):
A1 is the first name column in Sheet1
B1 is the last name column in Sheet1
Sheet2 is the sheet that has the data stored as names separately
$A:$A is the rows that have the two names together
FALSE is because it's an exact match
This will return FALSE if the element does not exist, and TRUE if it does
You can also use:
=VLOOKUP($A1&" "&$B1,Sheet2!$A:$D,3,FALSE)
If you want to retrieve data for a match.
Finally, if you need to do your lookups the other way, take a look at this thread for some ideas on how to split the string into two pieces.