LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default VLookup: Can formula use value loaded from a drop down list?

I created a Travel Expense form for my small company. I want values to be
filled in automatically once the person types in their Name on the first
worksheet. (Name is filled in via a drop down list in B2. All Reference data
is on additional sheets, but for this example, "Employee Name" and "Employee
#" is on the worksheet titled Employee.)

Formula used: =vLOOKUP("b2",Employee!a:b,2,FALSE)

"B2" is populated by the drop down and is the Employee Name. Employee
worksheet looks like this:

Employee Name Employee #
Joe Schmoe 001
Bob Smith 002

I have inserted this formula in B3, because that's where I want the Employee
# to populate. However, after inserting the formula, it gives me the dreaded
#n/a response. I've stepped through the formula and I see that it is reading
the name from the drop down properly, so what am I forgetting to check? I
also removed the quotes around the B2...but then I get the #REF!
error...which is worse, I think.

Could it be that my numbers in the employee number column are text? (I need
it to be because some have letters in their ID.) I did change it to see if
it made a difference, but it did not. I am stumped.

Thank you for your time.
J.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vlookup (a drop list) john Excel Discussion (Misc queries) 2 May 20th 07 05:36 PM
Can I add a drop-down list to a Vlookup? dsharb52 Excel Worksheet Functions 1 July 11th 06 11:28 PM
Can I add a drop-down list to a Vlookup? dsharb52 Excel Worksheet Functions 0 July 11th 06 10:44 PM
Drop Down List + VLOOKUP Bonbon Excel Worksheet Functions 1 March 12th 06 04:42 PM
VLOOKUP? Need to have value returned when select from drop-down list Budamon Excel Worksheet Functions 2 November 13th 05 09:05 PM


All times are GMT +1. The time now is 05:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"