A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

vlookup



 
 
Thread Tools Display Modes
  #1  
Old June 25th, 2004, 09:32 PM
vw
external usenet poster
 
Posts: n/a
Default vlookup

I have two worksheets one with the prices for lookup and one that I would like to type in the part # and then it looks up the price from the other. I can get it to do it for a single cell if it matches the exact row but not for numerous.
=VLOOKUP(B1:B10,mat!A1:C157,3,FALSE) It will only fill in B1 if the number matches. What am I doing wrong
Thanks in advance
  #2  
Old June 25th, 2004, 10:06 PM
Juan Sanchez
external usenet poster
 
Posts: n/a
Default vlookup


vw

You are asking Vlookup to look for a range of cells, this
is possible in an array formula but it will only return
the first value of the array if typed only into one cell.

See if this works, say yo have Items on B1:B10 that you
want to get prices for, on cell C1 Type:

=VLOOKUP(B1,mat!$A$1:$C$157,3,FALSE)

And then select from C1 to C10 and fill down, this will
change automatically the B1 part because its relative (no
$ signs) but keep fix the $A$1:$C$157 part because of the
dollar signs...

See if that helps, if not... post back in the same
thread...

Cheers
Juan

-----Original Message-----
I have two worksheets one with the prices for lookup and

one that I would like to type in the part # and then it
looks up the price from the other. I can get it to do it
for a single cell if it matches the exact row but not for
numerous.
=VLOOKUP(B1:B10,mat!A1:C157,3,FALSE) It will only fill

in B1 if the number matches. What am I doing wrong
Thanks in advance
.

  #3  
Old June 25th, 2004, 10:30 PM
vw
external usenet poster
 
Posts: n/a
Default vlookup

Juan - Here is a copy of the one worksheet. It works for #10000 but won't lookup the cost of the following #'s. We have different #'s for different material. Here is the formula I typed =VLOOKUP(B1,mat!A1:B157,2,FALSE) I thought that I could type B1:B5 but that did not work as it returned 2.62. Please help.
Thanks vw

Cross-Arm 10000 2.62
12100 2.62
12100 #N/A
13400 #N/A
13700 #N/A


--
vw


"Juan Sanchez" wrote:


vw

You are asking Vlookup to look for a range of cells, this
is possible in an array formula but it will only return
the first value of the array if typed only into one cell.

See if this works, say yo have Items on B1:B10 that you
want to get prices for, on cell C1 Type:

=VLOOKUP(B1,mat!$A$1:$C$157,3,FALSE)

And then select from C1 to C10 and fill down, this will
change automatically the B1 part because its relative (no
$ signs) but keep fix the $A$1:$C$157 part because of the
dollar signs...

See if that helps, if not... post back in the same
thread...

Cheers
Juan

-----Original Message-----
I have two worksheets one with the prices for lookup and

one that I would like to type in the part # and then it
looks up the price from the other. I can get it to do it
for a single cell if it matches the exact row but not for
numerous.
=VLOOKUP(B1:B10,mat!A1:C157,3,FALSE) It will only fill

in B1 if the number matches. What am I doing wrong
Thanks in advance
.


  #4  
Old June 25th, 2004, 11:01 PM
Harry Bo
external usenet poster
 
Posts: n/a
Default vlookup

VW,
Make sure this part of the formula covers all your prices:
=VLOOKUP(B1, - mat!A1:B157 - ,2,FALSE)
and make it absolute mat!$A$1:$C$157
Put the dollar signs around

Harry
"vw" wrote:

Juan - Here is a copy of the one worksheet. It works for #10000 but won't lookup the cost of the following #'s. We have different #'s for different material. Here is the formula I typed =VLOOKUP(B1,mat!A1:B157,2,FALSE) I thought that I could type B1:B5 but that did not work as it returned 2.62. Please help.
Thanks vw

Cross-Arm 10000 2.62
12100 2.62
12100 #N/A
13400 #N/A
13700 #N/A


--
vw


"Juan Sanchez" wrote:


vw

You are asking Vlookup to look for a range of cells, this
is possible in an array formula but it will only return
the first value of the array if typed only into one cell.

See if this works, say yo have Items on B1:B10 that you
want to get prices for, on cell C1 Type:

=VLOOKUP(B1,mat!$A$1:$C$157,3,FALSE)

And then select from C1 to C10 and fill down, this will
change automatically the B1 part because its relative (no
$ signs) but keep fix the $A$1:$C$157 part because of the
dollar signs...

See if that helps, if not... post back in the same
thread...

Cheers
Juan

-----Original Message-----
I have two worksheets one with the prices for lookup and

one that I would like to type in the part # and then it
looks up the price from the other. I can get it to do it
for a single cell if it matches the exact row but not for
numerous.
=VLOOKUP(B1:B10,mat!A1:C157,3,FALSE) It will only fill

in B1 if the number matches. What am I doing wrong
Thanks in advance
.


  #5  
Old June 25th, 2004, 11:18 PM
Juan Sanchez
external usenet poster
 
Posts: n/a
Default vlookup

vw

If it shows #N/A it means it's not finding the item, make
sure that all the items you are looking for are actually
in the looked up matrix...

Use the dollar signs on the looked up matrix so that it is
fix when you fill down...

Cheers

Juan


-----Original Message-----
Juan - Here is a copy of the one worksheet. It works for

#10000 but won't lookup the cost of the following #'s. We
have different #'s for different material. Here is the
formula I typed =VLOOKUP(B1,mat!A1:B157,2,FALSE) I
thought that I could type B1:B5 but that did not work as
it returned 2.62. Please help.
Thanks vw

Cross-Arm 10000 2.62
12100 2.62
12100 #N/A
13400 #N/A
13700 #N/A


--
vw


"Juan Sanchez" wrote:


vw

You are asking Vlookup to look for a range of cells,

this
is possible in an array formula but it will only return
the first value of the array if typed only into one

cell.

See if this works, say yo have Items on B1:B10 that you
want to get prices for, on cell C1 Type:

=VLOOKUP(B1,mat!$A$1:$C$157,3,FALSE)

And then select from C1 to C10 and fill down, this will
change automatically the B1 part because its relative

(no
$ signs) but keep fix the $A$1:$C$157 part because of

the
dollar signs...

See if that helps, if not... post back in the same
thread...

Cheers
Juan

-----Original Message-----
I have two worksheets one with the prices for lookup

and
one that I would like to type in the part # and then it
looks up the price from the other. I can get it to do

it
for a single cell if it matches the exact row but not

for
numerous.
=VLOOKUP(B1:B10,mat!A1:C157,3,FALSE) It will only

fill
in B1 if the number matches. What am I doing wrong
Thanks in advance
.


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP confusion Bill Dedman Worksheet Functions 1 April 15th, 2004 07:10 PM
Vlookup within a vlookup function James Lee Worksheet Functions 7 April 1st, 2004 01:31 PM
vlookup question, kinda. more of a question about referencing rows drabbacs Worksheet Functions 1 December 11th, 2003 09:53 PM
VLookup Help Robert Worksheet Functions 5 December 3rd, 2003 12:57 AM


All times are GMT +1. The time now is 04:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.