distributed alignment

jerry12302

Active Member
Joined
Apr 18, 2005
Messages
449
Office Version
  1. 2010
Platform
  1. Windows
I copied data from a Lotus spreadsheet into excel. I'm having horizontal alignment problems.

I want to align the contents of a cell so it is evenly spaced across 4 cells, in Lotus this is the "align across columns" option.

I tried highlighting the 4 cells involved and choosing the "distributed" option, but it doesn't work.

Any ideas?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
The data must be in the left-most cell of the range: select the whole range and right click on Format | Cells | Alignment and then in the "Horizontal" dropdown select "Center Across Selection"

There is an icon on the standard (? - I always customize mine, so it might be on "format" or something) toolbar that almost does this but it also merges the cell. Merged cells are evil because they interfere with Cut / Paste operations; I have assigned that icon to run the following Macro in my Personal.xls file...
Code:
Sub CenterAccrosColumns()

With Selection
    .HorizontalAlignment = xlCenterAcrossSelection
    .WrapText = False
    .MergeCells = False
End With
End Sub
 
Upvote 0
Thanks for the reply, but I don't want the contents centered across the selection, I want it to fill up the space entirely left to right.

Example, from this...

|column A|column B|column C|column D|
Text to fill across columns

to this...

|column A|column B|column C|column D|
T e x t t o f i l l a c r o s s c o l u m n s

This is simple in Lotus, I use it all the time, but there doesn't seem to be a way to do this in Excel 2003.
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

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