Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default format to a specific number of spaces

I need to format general content aligned left cells to add spaces after the
content so that the general content and the spaces after that content are
equal to a specific number.

For example:
total = 10
content = x00xxx
cell value = x00xxx****
where the *'s indicate a space

The number of content characters may vary from 1 to 10 in the above example

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default format to a specific number of spaces

In A1 if you have the value try the below

=A1&REPT("*",10-LEN(A1))

If this post helps click Yes
---------------
Jacob Skaria


"tallguy2u" wrote:

I need to format general content aligned left cells to add spaces after the
content so that the general content and the spaces after that content are
equal to a specific number.

For example:
total = 10
content = x00xxx
cell value = x00xxx****
where the *'s indicate a space

The number of content characters may vary from 1 to 10 in the above example

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default format to a specific number of spaces

Thanks, I generated an extra column with that method containing the correct
spacing, but the formula worked. I'm using this to generate a flat file for
EDI purposes, and was hoping there might be a way to do the same thing with a
conditional formatting rule in order to avoid the extra column that a formula
requires, but at least now I'm just a copy and paste away.

Thanks again

"Jacob Skaria" wrote:

In A1 if you have the value try the below

=A1&REPT("*",10-LEN(A1))

If this post helps click Yes
---------------
Jacob Skaria


"tallguy2u" wrote:

I need to format general content aligned left cells to add spaces after the
content so that the general content and the spaces after that content are
equal to a specific number.

For example:
total = 10
content = x00xxx
cell value = x00xxx****
where the *'s indicate a space

The number of content characters may vary from 1 to 10 in the above example

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
How to create a specific phone number format Access Joe Excel Discussion (Misc queries) 2 November 29th 07 04:00 PM
how to change number to text with specific format in function ViestaWu Excel Worksheet Functions 4 June 26th 07 04:38 AM
how to format only a specific character or number in each cell withina range of cells Colleen Excel Worksheet Functions 1 September 12th 05 05:44 PM
how 2 Count number of cells that have specific condition format? daveydavey Excel Worksheet Functions 2 May 4th 05 02:06 PM
How do I format cells to a specific number of digits? Gabriele Excel Discussion (Misc queries) 3 February 5th 05 03:17 PM


All times are GMT +1. The time now is 12:19 PM.

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"