Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
grammy
 
Posts: n/a
Default setting up columns

trying to set up a file with information for electronic transfer of data.
The columns needs to be set at specific width, so I need to be able to add
spaces before text, i.e. " left". Is there a way to do this without
having to manually add spaces?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default setting up columns

Not sure what this has to do with the width of the column, but if you need
the cell to contain a certain number of characters, say 30, you could try
something like this:

=REPT(" ", 30 - LEN(B8)) & B8

You may want to use a helper column and then afterwards do a copy/paste
special values.
If you just need the column width to be a certain number, select the column,
and hit format column width and type the number you need it to be.

--
Kevin Vaughn


"grammy" wrote:

trying to set up a file with information for electronic transfer of data.
The columns needs to be set at specific width, so I need to be able to add
spaces before text, i.e. " left". Is there a way to do this without
having to manually add spaces?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
grammy
 
Posts: n/a
Default setting up columns

Thanks, this is exactly what I needed.

"Kevin Vaughn" wrote:

Not sure what this has to do with the width of the column, but if you need
the cell to contain a certain number of characters, say 30, you could try
something like this:

=REPT(" ", 30 - LEN(B8)) & B8

You may want to use a helper column and then afterwards do a copy/paste
special values.
If you just need the column width to be a certain number, select the column,
and hit format column width and type the number you need it to be.

--
Kevin Vaughn


"grammy" wrote:

trying to set up a file with information for electronic transfer of data.
The columns needs to be set at specific width, so I need to be able to add
spaces before text, i.e. " left". Is there a way to do this without
having to manually add spaces?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default setting up columns

You're welcome. Glad it worked for you.
--
Kevin Vaughn


"grammy" wrote:

Thanks, this is exactly what I needed.

"Kevin Vaughn" wrote:

Not sure what this has to do with the width of the column, but if you need
the cell to contain a certain number of characters, say 30, you could try
something like this:

=REPT(" ", 30 - LEN(B8)) & B8

You may want to use a helper column and then afterwards do a copy/paste
special values.
If you just need the column width to be a certain number, select the column,
and hit format column width and type the number you need it to be.

--
Kevin Vaughn


"grammy" wrote:

trying to set up a file with information for electronic transfer of data.
The columns needs to be set at specific width, so I need to be able to add
spaces before text, i.e. " left". Is there a way to do this without
having to manually add spaces?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
grammy
 
Posts: n/a
Default setting up columns

Kevin, this justifies the data to the right. What do I change to justify it
to the left?

"Kevin Vaughn" wrote:

You're welcome. Glad it worked for you.
--
Kevin Vaughn


"grammy" wrote:

Thanks, this is exactly what I needed.

"Kevin Vaughn" wrote:

Not sure what this has to do with the width of the column, but if you need
the cell to contain a certain number of characters, say 30, you could try
something like this:

=REPT(" ", 30 - LEN(B8)) & B8

You may want to use a helper column and then afterwards do a copy/paste
special values.
If you just need the column width to be a certain number, select the column,
and hit format column width and type the number you need it to be.

--
Kevin Vaughn


"grammy" wrote:

trying to set up a file with information for electronic transfer of data.
The columns needs to be set at specific width, so I need to be able to add
spaces before text, i.e. " left". Is there a way to do this without
having to manually add spaces?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default setting up columns

Try this one instead:

=B8 & REPT(" ", 30 - LEN(B8))

This will put the spaces at the end.
--
Kevin Vaughn


"grammy" wrote:

Kevin, this justifies the data to the right. What do I change to justify it
to the left?

"Kevin Vaughn" wrote:

You're welcome. Glad it worked for you.
--
Kevin Vaughn


"grammy" wrote:

Thanks, this is exactly what I needed.

"Kevin Vaughn" wrote:

Not sure what this has to do with the width of the column, but if you need
the cell to contain a certain number of characters, say 30, you could try
something like this:

=REPT(" ", 30 - LEN(B8)) & B8

You may want to use a helper column and then afterwards do a copy/paste
special values.
If you just need the column width to be a certain number, select the column,
and hit format column width and type the number you need it to be.

--
Kevin Vaughn


"grammy" wrote:

trying to set up a file with information for electronic transfer of data.
The columns needs to be set at specific width, so I need to be able to add
spaces before text, i.e. " left". Is there a way to do this without
having to manually add spaces?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default setting up columns

Hi

Am best you separate data entry and transfer data. On input sheet, enter all
values aot padded. On transfer sheet, calculate values from according cells
on input sheet - like:
=IF(Input!A2="","",RIGHT(REPT(" ",20) & Input!A2,20))


Arvi Laanemets



"grammy" wrote in message
...
trying to set up a file with information for electronic transfer of data.
The columns needs to be set at specific width, so I need to be able to add
spaces before text, i.e. " left". Is there a way to do this

without
having to manually add spaces?



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 swap rows and columns? [email protected] Excel Discussion (Misc queries) 5 September 21st 05 08:07 AM
Hiding columns and custom views problem Bettergains Excel Discussion (Misc queries) 2 April 12th 05 11:48 PM
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns foofoo Excel Discussion (Misc queries) 1 April 2nd 05 12:02 AM
Tallying columns based on values of 2 different columns Mctabish Excel Worksheet Functions 1 January 30th 05 10:40 AM
Counting the Contents of Two Columns Molochi Excel Discussion (Misc queries) 6 December 22nd 04 08:13 PM


All times are GMT +1. The time now is 04:01 PM.

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

About Us

"It's about Microsoft Excel"