View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Piotr (Peter)[_2_] Piotr (Peter)[_2_] is offline
external usenet poster
 
Posts: 27
Default return a text that is before "/"

Dear All,

I have tried MID, FIND, LEFT function but to no avail as the length of a
string can vary:

97/2008
98/2008
99/2008
108/2008
109/2008
495/2008
496/2008
CORRECTION 3/2008
498/2008


What I need to achieve is to have a function that will return everything
before "/" and without any "space" at the end: e.g. it will return 498 only
without emtpy space (something like TRIM).

Any help appreciated.