VLookup Syntax Assistance Please

DougStroud

Well-known Member
Joined
Aug 16, 2005
Messages
2,968
I am setting up a table for shipping costs on sheet 2. I want to pull the cost over when it matches the item and method of shipping.
Item is Shoes, Method is Ground, Cost is $8.00.

Sheet2 Organization is:

A1= Item
B1= Method
C1= Cost

Values:
A2= Shoes
B2= Ground
C2= $8.00

My formula is:
=VLOOKUP(A2:A10,Table!C2:C10,3,true)

I receive a #Value error.

thanks,

Doug
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Doug

The first argument of a VLOOKUP should be a single value not a range.
 
Upvote 0
If I am looking for the item and the method to pull the price, do I place a text string in the first criteria of the formula? I tried placing a cell reference of A2 and that returns a #Ref error. If I place the text string of Shoes I get #name error.

I am still not very good with the Vlookup function, your assistance is appreciated.

Doug
 
Upvote 0
DougStroud said:
I am setting up a table for shipping costs on sheet 2. I want to pull the cost over when it matches the item and method of shipping.
Item is Shoes, Method is Ground, Cost is $8.00.

Sheet2 Organization is:

A1= Item
B1= Method
C1= Cost

Values:
A2= Shoes
B2= Ground
C2= $8.00

My formula is:
=VLOOKUP(A2:A10,Table!C2:C10,3,true)

I receive a #Value error.

thanks,

Doug
Book11
ABCDEFGH
1ConcatItemMethodCost
2Shoes#GroundShoesGround$8.00ShoesGround8
Sheet2


A2, copied down:

=B2&"#"&C2

H2:

=VLOOKUP(F2&"#"&G2,$A$2:$D$2,4,0)
 
Upvote 0
sorry, Doug,

I didn't see the second error while the first was so obvious
the table is from column A to C
so you need
=VLOOKUP(A2,Table!A2:C10,3,true)

this wil work ;)
Erik

EDIT: unless I missed a part of the question which Aladin didn't (y)
 
Upvote 0
Erik,
Ain't happenin'. I am leaving work now and will get home and use html to post it up so you can see it, if you do not mind.

Doug
 
Upvote 0
Oh, hey Aladin.
I did not see your post. I will go over what you have mocked up, thanks.

BTW: Did you get my Private message a couple of days ago regarding the exporting of a worksheet with foreign language characters?

Doug
 
Upvote 0
DougStroud said:
Oh, hey Aladin.
I did not see your post. I will go over what you have mocked up, thanks.

BTW: Did you get my Private message a couple of days ago regarding the exporting of a worksheet with foreign language characters?
...

I've probably missed the PM, but I don't know how to tackle that question.
 
Upvote 0
Erik,
Ok so here is the html version.
Book1.xls
ABCDEFGHIJKLMNOPQRSTUVW
1DayDateOrder Taken byCustomerManufacturerItem PhotoItemSizeColorItem Costw/ TaxShipping MethodShipping CostTotal Purchase PriceDeposit AmountAmount DueDate OrderedWho OrderedCSR Accepting OrderReference#Date Scheduled to ShipReceived DateCustomer Notified
2Sunday9/25DougSpencer Brownes'Accel Plus9 1/2Gray/Black$57.99$60.89Ground#REF!#REF!$0.00#REF!
Sheet1


Table
Book1.xls
ABCD
1ItemMethodCost
2ShoesGround$8.00
Table


Cell M2 is where the VLookup formula resides and I receive the #Ref error.

Here is the formula.
=VLOOKUP(A2,Table!C2:C10,3,TRUE)
 
Upvote 0

Forum statistics

Threads
1,214,638
Messages
6,120,674
Members
448,977
Latest member
moonlight6

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top