View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.programming
kounoike[_2_] kounoike[_2_] is offline
external usenet poster
 
Posts: 126
Default Trim pace not necceesary

typo:

put in any cell
=VLOOKUP(trimspace(" abc ") ,range("a2:c10"),2,false)


i mean
=VLOOKUP(trimspace(" abc "), A2:C10, 2, false)

in case of
or
trimspace("1. abc ") = "London"


=VLOOKUP(trimspace("1. abc ") ,range("a2:c10"),3,false)


and
=VLOOKUP(trimspace("1. abc "), A2:C10, 3, false)

also i'm expecting trimspace(" abc ") returns "abc" or
trimspace("1. abc ") returns "abc" respectively as you said.

if not, this would not work.

keizi

"kounoike" wrote in message
...
sorry for not reading your post precisely.
if your trimspace already can get correct data, how about using vlookup

function?