A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Daniel wrote:
I have this formula =VLOOKUP(A54,Sheet2!A:D,4,FALSE) in a cell on Sheet1 to pull the dept to Sheet 1. [....] Why won't it pull the department correctly as well? Anybody know how to correct it?
Example:
Sheet 1
Name Sick Vac Dept
Torres, David 16.2 12 Payroll (should be Music)
Sheet 2
Name Sick Vac Dept
Torres, Sheila 3.2 4.2 Payroll
Torres, David 16.2 12 Music
My guess: even though you wrote VLOOKUP(...,FALSE) in your posting, you actually have VLOOKUP(...,TRUE) or you are missing the 4th parameter (defaults to TRUE) in your worksheet. Did you copy-and-paste the problematic formula from the Formula Bar into your posting, or did you retype here?
As you may know, if you use VLOOKUP(...,TRUE) with a lookup table that is not in ascending order, the results are unreliable. Sometimes they work; sometimes they return an Excel error; and sometimes they simpy return the wrong result.