a simple question....about string searching

  • Thread starter Thread starter deadfish
  • Start date Start date
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!
 
=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).
 
Home work?

--


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

Regards,

Peo Sjoblom
 
Back
Top