Vlookup

G

Guest

I am using a vlookup function with an array as the number I am searching for
is an a text range ("1-2","5-10","20-30") so Im taking the value of the cell
until the dash.

{=VLOOKUP(Q13,VALUE(LEFT(C20:I23,SEARCH("-",C20:I23,1)-1)),1)}

my problem is that it only allows me to offset the vllokup by 1. when I go
for more than 1 I get an error.
Any idea whats wrong with my syntax?
Thanks.
 
D

Dave Peterson

I'm not sure I understand, but how about:

=vlookup(q13&"-*",c20:i23,2,false)
to return the value in column D (the ,2, in that formula).

(maybe you don't want that false, too?)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Indirect/Vlookup/??? 2
Some rules about Vlookup REPOSTED 6
Duplicate value causes VLOOKUP issue... 6
Excel Vlookup Help 0
Vlookup multiple changes 3
How can I use OFFSET and VLOOKUP together 1
vlookup 6
vlookup 1

Top