Vlookup Help

JLouis

Active Member
Joined
Jan 1, 2004
Messages
295
Office Version
  1. 365
Platform
  1. Windows
I am trying to lookup a value in a separate workbook whose value contains a forward slash. The lookup value is "Total Disc / Coup" and the lookup doesn't work with the forward slash in it.

Here's formula:
=VLOOKUP("Total Disc / Coup",'C:\FH276 QB WEEKLY 2017\Royalty\[report.xls]sheet1'!$A$1:$N$50,14,FALSE)

Thanks for any assistance.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I have the range correct, Excel doesn't allow a lookup with values containing a forward slash.
 
Upvote 0
I have the range correct, Excel doesn't allow a lookup with values containing a forward slash.

I wasn't talking about the correctness of "the range". If you get #N/A, that's because the match-range. i.e. the first column of your table range, does not house the string Total Disc / Coup, not because Excel does not allow for this string a forward slash...

Example:

Row\Col
A​
B​
C​
D​
E​
1​
2​
x
100​
300​
3​
jad
200​
4​
Total Disc / Coup
300​
5​
vad
400​
6​
7​

E2 houses a formula similar to yours:

=VLOOKUP("Total Disc / Coup",Sheet1!$A$1:$B$20,2,0)
 
Upvote 0
It's returning a "0". I have the other sheet open. I tried the formula on the same sheet and got a zero. When I take out the forward slash it works. A Space problem perhaps? I actually copied and pasted the value into the formula so the text would be exact.
 
Last edited:
Upvote 0
$52.81

Total Discounts $15.68
Total Coupon $37.13
Total Disc / Coup $52.81
Charge Deposits
Visa $1,006.56
Diners / Misc
 
Last edited:
Upvote 0
"A20" is the text and "N20" is the value
 
Last edited:
Upvote 0
BTW, I went to my laptop and was able to do as you say across two workbooks without problem. I am exporting the sheet off the internet in xls format. Would that affect the behavior of the worksheet?
 
Upvote 0

Forum statistics

Threads
1,213,526
Messages
6,114,122
Members
448,550
Latest member
CAT RG

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