How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask The-PC-Guy Your Own Question
The-PC-Guy
The-PC-Guy, Computer Manager
Category: Microsoft Office
Satisfied Customers: 2011
Experience:  20 years experience providing remote computer support
62934938
Type Your Microsoft Office Question Here...
The-PC-Guy is online now
A new question is answered every 9 seconds

I want to pick an item from a dropdown list and use as a lookup

This answer was rated:

I want to pick an item from a dropdown list and use as a lookup in a table. I made the dropdown list with a number of aplha nanes. the lookup is =Hlookup(the cell number of the drop down list, cell range array look up, rows to look up) I want to look up the drop down and return a number in row two of the array.
It keeps coming back with numbers that do not correlate to the look up name from the drop down list.
Is it because the drop downs are not in alphabetical order??? if i use numbers in the drop down it works.

The-PC-Guy :

Thanks for using JustAnswer. My name isXXXXX will do whatever I can to answer your question

The-PC-Guy :

could you provide a copy of your worksheet so I can visually see what is going on?

The-PC-Guy :

thanks

The-PC-Guy :

give me a minute to take a look at it

The-PC-Guy :

ok

Customer:

this is a simple version of the actual spreadsheet. I took most of the cells off to show the actual issue.

The-PC-Guy :

so you want when you change a1

The-PC-Guy :

that it returns the coresponding number in row 7

The-PC-Guy :

or value if its textual

Customer:

yes i want to use the drop down in A1 and get a cell in A2 that coralates to the dropdown

The-PC-Guy :

ok

The-PC-Guy :

i think i fixed this for you

The-PC-Guy :

let me send you the fixed copy

The-PC-Guy :

then I can help you integrate it into your sheet if you like

The-PC-Guy :

click that link

The-PC-Guy :

then click the download link

Customer:

ok. I should be able to put it into my sheet if i know aht i am doing wrong. if not is there a way to get back?

The-PC-Guy :

yes

The-PC-Guy :

even after you rate

The-PC-Guy :

you can still come back here and post

The-PC-Guy :

if you need me further

The-PC-Guy :

let me tell you what i think you did wrong

The-PC-Guy :

so you know

The-PC-Guy :

for the future

The-PC-Guy :

the formula is

The-PC-Guy :

=hlookup(lookup value,lookup range,row number, aprox/exact)

The-PC-Guy :

now you ommmited the 4th value

The-PC-Guy :

by default it goes to approx

The-PC-Guy :

and sometimes that causes wierd values

The-PC-Guy :

so in your case

The-PC-Guy :

=hlookup(a1,c6:h7,2,false)

The-PC-Guy :

should be the formula

The-PC-Guy :

now the 2

The-PC-Guy :

referes to the 2nd row in the array

The-PC-Guy :

so for example if you wanted to return the 3rd row if you had values in it

Customer:

what does false do?I think i tried it but i can look

The-PC-Guy :

you would change that to 3

The-PC-Guy :

that makes it do the exact lookup

The-PC-Guy :

inotherwords if you look for the name "charly"

The-PC-Guy :

it would return the coresponding row 2 values to charly

The-PC-Guy :

the first one it finds actually

The-PC-Guy :

or N/A

The-PC-Guy :

if it didn't

The-PC-Guy :

otherwise it would return a value that is close

The-PC-Guy :

if it were true

The-PC-Guy :

typically you would use true if you were working with decimal points

The-PC-Guy :

inotherwords if you look up 2.2

The-PC-Guy :

and want the value of 2

The-PC-Guy :

returned true would do that

The-PC-Guy :

but with text

The-PC-Guy :

you should always use false

Customer:

Ok i put it into my actual sheet and it looks like it does work. Thanks. How do I get back to you if it has a problem?if it has

The-PC-Guy :

just simply post back to this question

The-PC-Guy :

here is the url

The-PC-Guy :

http://www.justanswer.com/microsoft-office/80vny-want-pick-item-dropdown-list-use-lookup.html

Customer:

how?

The-PC-Guy :

i think you also were emailed

Customer:

ok thanks

The-PC-Guy :

if you bookmark this page

The-PC-Guy :

even after rating

The-PC-Guy :

you can still type in this box

The-PC-Guy :

if you need me further

The-PC-Guy :

i will be around

The-PC-Guy :

just let me know

Customer:

by

The-PC-Guy :

you can rate with the smileys under the chat window

The-PC-Guy and 5 other Microsoft Office Specialists are ready to help you