#1   Report Post  
Posted to microsoft.public.excel.misc
Tat Tat is offline
external usenet poster
 
Posts: 2
Default Formula Help

Hi,

I have a barcode label requirement that wants the field to be 20 characters
long and right justified with unused positions populated with blanks. There
is no additional info on whether the blanks should be leading or trailing the
numbers. If I want to make them trailing, what formula would I use to do
this? I have started with "=Space(20)- LEN" to count the length of my actual
number string but the output does not look correct. Any suggestions would be
greatly appreciated.
--
Thanks and have a wonderful day.
Tat
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default Formula Help

You can use a formula like:
=A1 & REPT(" ",20-LEN(A1))
In an different column.

Hope this helps,
Miguel

"Tat" wrote:

Hi,

I have a barcode label requirement that wants the field to be 20 characters
long and right justified with unused positions populated with blanks. There
is no additional info on whether the blanks should be leading or trailing the
numbers. If I want to make them trailing, what formula would I use to do
this? I have started with "=Space(20)- LEN" to count the length of my actual
number string but the output does not look correct. Any suggestions would be
greatly appreciated.
--
Thanks and have a wonderful day.
Tat

  #3   Report Post  
Posted to microsoft.public.excel.misc
Tat Tat is offline
external usenet poster
 
Posts: 2
Default Formula Help

Thanks for the suggestion Miguel.
My issue is outside of Excel though. The program uses formulas such as you
create in Expression Builder in an Excel macro or Access.
--
Thanks and have a wonderful day.
Tat


"Miguel Zapico" wrote:

You can use a formula like:
=A1 & REPT(" ",20-LEN(A1))
In an different column.

Hope this helps,
Miguel

"Tat" wrote:

Hi,

I have a barcode label requirement that wants the field to be 20 characters
long and right justified with unused positions populated with blanks. There
is no additional info on whether the blanks should be leading or trailing the
numbers. If I want to make them trailing, what formula would I use to do
this? I have started with "=Space(20)- LEN" to count the length of my actual
number string but the output does not look correct. Any suggestions would be
greatly appreciated.
--
Thanks and have a wonderful day.
Tat

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 09:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"