View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Die_Another_Day Die_Another_Day is offline
external usenet poster
 
Posts: 644
Default Make field Fixed lenght

="H" & Sheet1!B3 & LEFT(" ",30 - LEN("H" &
Sheet1!B3) - LEN(Sheet1!D3)) & Sheet1!D3

HTH

Charles

Juan wrote:
Hi there,
I have following formula in sheet2 A1 ="H"&Sheet1!B3&Sheet1!D3

Which I get HABC TEST20060817, but is it possible to always make the customer
name field lenght 30?
HABC TEST 20060817
HXYZRAY TEST 20060817

The actual customer name might be 7 digits, 10 digits or 15. So I'm trying
to make it fixed lenght of 30 digits.
B3 is the customer name field.

Would appreciate any info anyone might have. Not sure if this can be done.

Thank you,
J