#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kepf
 
Posts: n/a
Default Lookup function


I am very new to the lookup function, so if there is a better way than
LKUP to accomplish this, let me know.

I have an excel file containing my item number in one row (column?),
and how much it costs for the item in the next row (column?) over.

What I want to do is "marry" these somehow so that on another excel
sheet it will automatically tell me what the item cost is based on the
item number.

What steps would I take to go about doing this, or is it even
possible?

Thanks,
- Excel Novice


--
Kepf
------------------------------------------------------------------------
Kepf's Profile: http://www.excelforum.com/member.php...o&userid=30611
View this thread: http://www.excelforum.com/showthread...hreadid=502635

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Lookup function

Assume your item numbers are in cells A1 to A20 on Sheet1, and prices
are in B1 to B20. In a separate sheet you can use A1 to type in the
item number, and in B2 you would need this formula:

=VLOOKUP(A1,Sheet1!A1:B20,2,0)

If the item number you enter into A1 does not exist in your table, this
will return #NA, otherwise it will return the appropriate price.

Hope this helps.

Pete

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Lookup function

Sorry, typo - you would normally enter the formula into B1 of the
second sheet.

Pete

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kepf
 
Posts: n/a
Default Lookup function


thank you for such a quick reply.

But just so I learn to do it myself and not simply "copy," in the line
you quoted to me above...:

=VLOOKUP(A1,Sheet1!A1:B20,2,0)


...what do each of these represent? I think I know a few, but if I am
wrong please tell me.

A1
Sheet1 - name of sheet being "looked up"
A1
B20
2
0


Thanks again for your patience with my "novice-ness."


--
Kepf
------------------------------------------------------------------------
Kepf's Profile: http://www.excelforum.com/member.php...o&userid=30611
View this thread: http://www.excelforum.com/showthread...hreadid=502635

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Lookup function

We were all novices once - you will quickly learn to distinguish "row"
and "column" properly.

The first A1 refers to the cell in the second sheet into which you type
the item number you are interested in.

The second A1 is part of the range A1:B20 in Sheet1, and this refers to
the block of cells starting with A1 and going to B20 (i.e. 2 columns
wide and 20 rows deep). I have assumed that your item numbers and
prices occupy this block of cells, so if it was longer (say, 50 rows)
you would refer to this as A1:B50. Two or more columns like this are
refered to as a table - this is your lookup table.

The number 2 indicates which column in the table the value should be
returned from. You may have wider tables with more columns, so changing
this parameter would enable you to fetch data from a different place in
another situation.

The 0 at the end means that you want an exact match.

Hope this helps your understanding.

Pete



Reply
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
Lookup Function help marlea Excel Discussion (Misc queries) 2 August 23rd 05 07:30 PM
Lookup Function Problems FFW Excel Worksheet Functions 2 August 21st 05 04:22 PM
Complicated lookup function chrisrowe_cr Excel Worksheet Functions 4 July 19th 05 05:52 PM
lookup function 1 Colboyfx Excel Worksheet Functions 4 July 15th 05 09:15 AM
How do I use 3 cells to create the string for a lookup function? Bencomo Excel Worksheet Functions 1 May 15th 05 07:17 AM


All times are GMT +1. The time now is 07:10 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"