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
 
Aladin,

I have not solved this as of yet. Here are two sheets, worksheet and table.
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#N/A#N/A$0.00#N/A
Sheet1
Book1.xls
ABCDEFG
1ConcatItemMethodCost
2Shoes#GroundShoesGround$8.00ShoesGround
Table


Formula:
=VLOOKUP(F2&"#"&G2,Table!$A$2:$D$2,4,0)

residing in cell M2 on Sheet1
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
DougStroud said:
Aladin,

I have not solved this as of yet. Here are two sheets, worksheet and table.

...

Formula:
=VLOOKUP(F2&"#"&G2,Table!$A$2:$D$2,4,0)

residing in cell M2 on Sheet1

The Table Sheet
Book11
ABCDE
1ConcatItemMethodCost
2Shoes#GroundShoesGround$8.00
3Accel Plus#GroundAccel PlusGround$7.80
4Shoes#AirShoesAir$18.65
5
Table


A2, copied down:

=B2&"#"&C2
Book11
CDEFGHIJKLM
1Order Taken byCustomerManufacturerItem PhotoItemSizeColorItem Costw/ TaxShipping MethodShipping Cost
2DougSpencer Brownes'Accel Plus9 1/2Gray/Black$57.99$60.89Ground$7.80
3JonSpencer BrownqwShoes42Black$124.88Ground$8.00
4
Sheet1


M2, copied down:

=VLOOKUP(G2&"#"&L2,Table!$A$2:$D$4,4,0)
 
Upvote 0
Aladin, Yee Haw!
Following your example I got it to work on my end.
What is the # doing here for the result to work?

Thanks for you assistance.

Doug
 
Upvote 0
DougStroud said:
Aladin, Yee Haw!
I following this I got it to work on my end.
What is the # doing here for the result to work?

Thanks for you assistance.

Doug

Works like a separator...
 
Upvote 0
PaddyD,
Got it now. I did not get the concept that the lookup started with the value in the current worksheet. I was looking to the table initially. I would not have gotten how to look for two values had Aladin not shown me how to combine two values on the table.
With the reference link you provided, which explains the VLookup very clearly and Aladin's solving the 2nd part I have gotten the concept down better now.


Thank you,


Doug
 
Upvote 0

Forum statistics

Threads
1,215,372
Messages
6,124,537
Members
449,169
Latest member
mm424

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