Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Align Objects in Excel: Step-by-Step Guide

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To align objects in Excel, select two or more shapes, pictures, text boxes, or other supported objects, then choose Shape Format or Picture Format > Align and select an alignment or distribution command. You can align objects to one another or to the worksheet; the key is choosing the correct reference before applying the command.

What You'll Need

  • Excel for Microsoft 365 on Windows. The ribbon commands described here also apply to many recent desktop versions of Excel.
  • At least two objects on a worksheet, such as shapes, pictures, icons, or text boxes. Alignment commands may be unavailable when only a cell or an unsupported item is selected.
  • Optional: the Selection Pane, useful when objects overlap or are difficult to click. Find it under Home > Find & Select > Selection Pane.

Step-by-Step

  1. Open the worksheet and identify the objects. Click the sheet containing the items you want to line up. Excel objects are separate from cell contents: selecting a cell with text does not select a shape or picture placed over it. If you need to move objects with their cells later, you can set that behavior separately in the object’s formatting options.
  2. Select the first object. Click its border, not an editing handle or the text inside it. You should see selection handles around the object. If the object is behind another item, open the Selection Pane from Home > Find & Select > Selection Pane, then click its name in the list.
  3. Add the other objects to the selection. Hold Ctrl on Windows and click each additional object. On a Mac, hold Command while selecting items. You can also drag a selection box around several objects, but this can include objects you did not intend to select. Confirm that every desired item shows selection handles. The Align command generally requires multiple selected objects.
  4. Open the alignment controls. With the objects selected, click the contextual Shape Format or Picture Format tab, depending on the selection, and choose Align in the Arrange group. If you have a mixed selection, Excel may show a different contextual tab or a combined format tab; look for Align in its Arrange controls. On some Mac versions, the tab is named Shape Format or Picture Format as well.
  5. Choose how Excel should calculate alignment. In the Align menu, check whether Align to Selected Objects or Align to Sheet is active. Choose Align to Selected Objects when lining up items relative to the group’s outer edges. Choose Align to Sheet when an alignment command should use the worksheet area as its reference. The available options and their effect depend on the selection, so check this setting before clicking an alignment command.
  6. Apply an edge or center alignment. Choose Align Left, Align Center, or Align Right to line up objects horizontally. Choose Align Top, Align Middle, or Align Bottom to line them up vertically. For example, select three icons and use Align Middle to place their vertical centers on the same horizontal line. Alignment moves objects; it does not resize them.
  7. Space objects evenly if needed. Select at least three objects, open Align, and use Distribute Horizontally or Distribute Vertically. Excel spaces the objects evenly across the span between the outermost selected objects. Distribution is different from alignment: it adjusts spacing, not necessarily the objects’ common edge or center. For a tidy row, first align the objects along the desired axis, then distribute them along the other axis.
  8. Check the result and make small adjustments. Click a blank cell to deselect the group and inspect the layout. If an item needs a slight nudge, select it and use the arrow keys. On Windows, hold Ctrl while pressing an arrow key for a smaller movement; on Mac, use Option with an arrow key where supported. Keyboard movement can vary with Excel version and object type, so use the arrow keys and inspect the result rather than assuming a particular distance.
  9. Save the workbook. Press Ctrl+S on Windows or Command+S on Mac. If the layout is important for printing, use File > Print to preview it; objects can look aligned on the worksheet but shift visually when the print area or scaling changes.

Common Mistakes

  • Selecting cells instead of objects: Clicking a cell selects worksheet content, not the shape placed over it. Select the object’s border or use the Selection Pane.
  • Choosing the wrong reference: Aligning to the sheet can move objects toward worksheet edges rather than lining them up with each other. Check the Align menu’s reference setting first.
  • Using distribution with only two items: Distribution is intended to space a group across its span and is most useful with three or more objects. With two, there is no intermediate spacing to even out.
  • Expecting alignment to resize objects: Align commands move objects into position. If their sizes need to match, set their height and width through the Format controls separately.
  • Accidentally selecting an unwanted object: A drag-selection box may catch hidden or nearby items. Review the selection, or use the Selection Pane to select objects by name.
  • Confusing object alignment with cell alignment: The Home tab’s horizontal and vertical alignment buttons format text inside cells. Use the contextual Format tab’s Align menu for floating objects.

Tips

  • Rename items in the Selection Pane to labels such as “Logo,” “Title box,” or “Chart icon.” Clear names make it easier to select the correct object later.
  • Group objects that should stay together. Select them, then use Shape Format > Group > Group (or the corresponding Picture Format control when available). Grouping is useful for moving a finished diagram, but align items before grouping if you still need to adjust them individually.
  • Use the same object sizes when a row or column should look especially uniform. Alignment alone does not make differently sized pictures or shapes identical.
  • For more precise placement, open an object’s formatting pane and enter its position or size where those fields are available. This can be more reliable than dragging by eye.
  • Excel for the web may provide fewer object-formatting controls than desktop Excel, and the exact ribbon layout can differ. If you cannot find Align or a required distribution option, open the workbook in the desktop app.

Troubleshooting

  • Align is missing or disabled: Make sure at least two selectable objects are selected. If you are editing text inside a text box, press Esc once to leave text-editing mode, then select the object border. Also confirm that the objects are not locked or on a protected sheet that prevents editing.
  • Objects moved to the wrong place: Undo immediately with Ctrl+Z on Windows or Command+Z on Mac. Reselect the objects, reopen Align, choose the intended reference—usually Align to Selected Objects for lining up a group—and apply the command again.
  • You cannot click an object: Use the Selection Pane to select it. If the sheet is protected, check Review > Unprotect Sheet; you may need the password. On a protected sheet, object selection and editing may be restricted.
  • Spacing still looks uneven: Check that you selected every intended object and that none is much larger than the others. Distribution spaces object boundaries evenly; different widths or heights can make the visible gaps between edges appear unequal.
  • The objects look different in print or after reopening: Review print scaling and the objects’ properties. Right-click an object, choose Format Shape or Format Picture, and look for size and properties options such as whether it moves or sizes with cells. These settings affect how it behaves when rows or columns change.

Frequently Asked Questions

Can I align a picture and a shape together?
Usually, yes. Ctrl-click the picture and shape on Windows (Command-click on Mac), then use the contextual Format tab’s Align menu. If the command is unavailable, select them separately through the Selection Pane and check that the sheet is not protected.

What is the difference between Align and Distribute?
Align places selected objects along a shared edge or center, or relative to the sheet. Distribute spaces three or more objects evenly across the distance between the outer items.

How do I align objects to the worksheet instead of each other?
Select the objects, open the contextual Format tab’s Align menu, choose Align to Sheet if available, and then choose the alignment command. Check the result because the reference setting changes where objects are placed.

Can I align objects to cell borders?
Excel’s Align menu aligns objects to other selected objects or, where offered, to the sheet; it does not provide a general snap-to-cell-border alignment command. Drag objects while viewing gridlines, or enter position values in the formatting pane for more controlled placement.

Does aligning objects change the cells beneath them?
No. Shapes, pictures, and text boxes are floating objects, so alignment moves the objects rather than changing cell values or cell formatting.

Can I align objects in Excel for the web?
Some object selection and formatting features are available in the browser, but controls can be limited or arranged differently. Use Excel for Microsoft 365 on Windows or Mac if the needed Align or Distribute command is not shown.