a simple question....about string searching

D

deadfish

Hi,
I have a worksheet like this:

a 1
bx 2
cax 3

I would like to search the cell which just match the first character.
For example, I would like to search the cell start with "b" should
return "2" for me....

How to write the formula to acheive this?

Thanks!
 
A

Aladin Akyurek

=VLOOKUP("b"&"*",$A$2:$B$4,2,0)

or

=VLOOKUP(D2&"*",$A$2:$B$4,2,0)

where D2 houses a partial lookup string like "b" (without double quotes).
 
P

Peo Sjoblom

Home work?

--


For everyone's benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom
 

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

Top