View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Brad Brad is offline
external usenet poster
 
Posts: 846
Default Address must be 18 characters long

=left(a1&rept(" ",18),18)

This will add spaced at the end

if you want spaces in front
=right(rept(" ",18)&a1,18)

--
Wag more, bark less


"Derek M" wrote:

Hi all again

I need the address to be 18 characters long i.e. if the address is over 18
characters then chop it, if its under, then add spaces

Is this possible?

Thanks as always

Derek