VLOOKUP. I have read and followed the directions for VLOOKUP, but I cannot get it to work. - replace

I have read the other questions regarding Vlookup. I have my formula, but it is not working. I have a column of Zip-Codes in column e. I want to look for a matching zip-code in column m and then replace it with the county in column n. Please can you help me? Here is the formula:
=VLOOKUP(E2:E7807,M2:N962,2,false).
I have also tried using just 1 cell (E2) at the beginning of the formula instead of a range (E2:E7807).

Try below in the first cell.
=VLOOKUP(E2,$M$2:$N$962,2,false)
and copy and paste this cell in all required range of cells.

Related

Google Sheets - IF columns contains text and another columns contains number return total value of number column

I am trying to see if I am able to get the hours from one column only if it matches a word that is another column.
For example in the sheet link attached, if the word is Operations (Column A) I want to get the sum of all the hours (Column B) that correlate with that word.
https://docs.google.com/spreadsheets/d/1-1QCZsNTZ5xDcDryv8qg0YPtsoY3Erjz7ZNGUXds7HY/edit
Hope this makes sense.
Thanks in advance.
you can use:
=SUM(IFNA(FILTER(B:B,A:A=E1)))
OR
=SUMIF(A:A,E1,B:B)
Cell E1 has the word selection in the sample here

Google Sheets Arrayformula with some sort of concatenate/textjoin/something similar for all rows

I'm trying to do an arrayformula that goes down all rows. I want it to grab the text from a specific row if the row that it's on meets conditions.
Here's an example of what I'm trying to do: have a formula in G5 that iterates through A:F. If the cell = "N", the grab the text from row 4 and concatenate it into a single string, with the text separated by commas.
I've looked at other questions on stack overflow but they're not quite the same.
Here's a sample Sheet
I've gotten as far as the formulas in K4 and P4, but can't figure out how to make it all one formula.
Any suggestions on how to do this?
use:
=ARRAYFORMULA(REGEXREPLACE(TRIM(FLATTEN(QUERY(TRANSPOSE(
IF(A5:F="N", A4:F4&",", )),,9^9))), ",$", ))

START COUNTING IF VALUE EXISTS GOOGLE SHEETS

I have a column with ID'S this column is dynamic so it will grow up, next to it I have a count formula for the number of text appearing this one:
=COUNTIF(F3:F12,"?*")+COUNT(F3:F12)
I would like to have a formula to count just when exist an ID if not will be "".
Try below formula-
=COUNTA(IFERROR(INDEX($E$3:$K$18,,MATCH(A2,$E$1:$K$1,0))))
This is the formulas I was looking for:
=IF(A4<>"", (D4/$B$2), "")

Highlight duplicates when part of the cell matches in Google Sheets

I have searched as much as I can, and I have found solutions for similar problems, but I haven't been able to find a solution to my exact problem.
Issue: I would like to highlight the row when one cell in column A of that row is an exact match for another cell in that column, AND part of another cell in column B of that row is a match for part of another cell in that column, in Google Sheets. I would like to use conditional formatting, and only highlight the second occurence and on.
For example, is this "sheet":
A B C
1|John Smith|john#test.com|Test Co.
2|Jane Doe |jane#x.com |X Company
3|John Smith|j.s#test.com |Test Inc.
4|John Smith|jsm#test.com |Test Incorporated
I would like row 3 and row 4 to highlight, because column A3 is a duplicate of A1, and everything in B3 after # matches everything in B1 after #, and the same is true of row 4. Also, only rows 3 and 4 should highlight; not row 1, since it is the first instance. I understand regexes, and I've found how to highlight a row if one cell in column A and one cell in column B is an exact match with other cells is their respective columns, but I haven't figured out how to combine the two where I can search for one cell that is an exact match with another cell in that column AND for one cell that is a partial match with another cell in that particular column. Here is a link to a test sheet that contains the sample info from above. https://docs.google.com/spreadsheets/d/1neZd213C1ssY7bPeBfu2xI3WPCmt-oKkfbdrXrid9I8/edit?usp=sharing
use:
=INDEX(COUNTIFS($A:$A&REGEXEXTRACT($B:$B, "#.+"), $A1&REGEXEXTRACT($B1, "#.+"),
ROW($A:$A), "<="&ROW($A1))>1)*(A:A<>"")
Try the following custom formula applied to A1:C:
=index((countif($A$1:$A1,$A1)>1)*
(countif(regexextract($B$1:$B1,"#(.*)"),
regexextract($B1,"#(.*)"))>1))

Google Sheet Conditional Formula for IF function

Trying to make a Google Sheets Formula for Conditional Formula that when a cell in column "A" is equal to then change the background to red if Cell in the matching row in column "E" is empty
I started with REGEXMATCH but I couldn't figure out how to format it.
Basically, if the company's names match they require a PO# in which it would mark the cell red if not filled out
try:
=($A2<>"")*($E2="")
apply it on range A2:A