not sure what functions/code to use?

S

s&d

I was wondering if someone can gear me in the right direction with this.

I created a data-only worksheet with 2 columns as per below with all the
data: I called the worksheet "User Names"

in column A in column B

1 j. doe
2 k. anderson
3 l. wilson
4 m. robinson
5 n. woods

In a separate blank worksheet with the following headings, I would like to
retrieve the data from the "User Names" worksheet.

User Number User Name

For example: If I typed in the number "3" under "User Number" column, I
would like it to lookup the number "3" in the "User Names" worksheet and
retrieve the name "l. wilson" and insert it in the cell under "User Name".

Any information would be greatly appreciated, the whole purpose of this is
to save time from writing out the User names all the time.

Thanks,
Sherry.
 
B

Bob Phillips

=VLOOKUP(A2,'User Names'!A1:B20,2,False)

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
G

Guest

Providing that Column A contains unique values then I would recommend a
Vlookup Function. You can find it in the help.
 
R

Richard Buttrey

I was wondering if someone can gear me in the right direction with this.

I created a data-only worksheet with 2 columns as per below with all the
data: I called the worksheet "User Names"

in column A in column B

1 j. doe
2 k. anderson
3 l. wilson
4 m. robinson
5 n. woods

In a separate blank worksheet with the following headings, I would like to
retrieve the data from the "User Names" worksheet.

User Number User Name

For example: If I typed in the number "3" under "User Number" column, I
would like it to lookup the number "3" in the "User Names" worksheet and
retrieve the name "l. wilson" and insert it in the cell under "User Name".

Use the VLOOKUP formula.

Give a range name to the data in the User Names worksheet, say
"NameData"


Then in your seperate blank worksheet, assuming the "User Number"
heading is in A1 and "User Name" heading in B1, type the following in
B2.

=VLOOKUP(A2,NameData,2,False).

Then enter your number in A2

HTH

Regards

Any information would be greatly appreciated, the whole purpose of this is
to save time from writing out the User names all the time.

Thanks,
Sherry.

__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top