Fixed length cells

compyr

New Member
Joined
Feb 1, 2005
Messages
8
Hello All!

I'm sure this is very simple but I can't figure it out. I need to create a column and put exactly 2 spaces in it. Creating the column is no big deal but it seems that I cannot put 2 CHAR(32) in the same cell. What am I missing? THX!

compyr
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi compyr,

If you are dead set on entering the spaces using a formula and the CHAR function, you should be able to do

=CHAR(32) & CHAR(32)

But if you don't have to use the CHAR function you could just do

=" "

And if you just want two spaces in the cell as a constant, rather than a formula, just type two spaces in the cell.

Damon
 
Upvote 0
Thank you for the reply. I did finally figure it out. What I am trying to do is to import a text file, delete all info execpt for what I need, and then make a fixed length record to be sent to the mainframe and checked for accuracy. I am sure that this has to be done with VBA but I'm not very good at it yet. I was trying to find the quick and dirty solution but I guess I'll just have to hit the books harder.

compyr
 
Upvote 0

Forum statistics

Threads
1,203,244
Messages
6,054,365
Members
444,718
Latest member
r0nster

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top