I admit that I am pretty new to using formulas in Excel, so i am looking for some help. I tried looking at some other examples of similar questions and tried working through it before asking here.
Onto the question: Basically I fairly large data set. I am trying to match Names on files with Names on the employee list and then auto-fill what department they work in.
On one sheet (Lets call it Sheet1) I have HR Data the includes their name (column A) and department (Column B). On another Sheet (lets call it sheet2) I have all the file names (Column A) I want to match it to. On sheet 2 I did a vlookup to match the names on the files with the names on HR (Column B), no biggie there. But now I want to basically say IF the Name matches on Sheet2 to Sheet1, pull the value from Sheet1 Column B into Sheet2.
I tried to use an IF originally, but it seems like IF statments dont let you use a range (match Sheet2 B2 to Sheet1 A:A) and wants to match exact cells (Say Sheet2 A2 to Sheet1 A2) if that makes sense? There are people with multiple files belonging to them in sheet 2, but they are only listed once in Sheet 1.
Thank you for the help.
=VLOOKUP(A1,Sheet1!A:B,2,0)
where '2' means "give me the value from the second column in my defined range". – David