Copy, paste, freeze

A table you get from someone else is rarely easy to work with: the numbers are right, but handling it is a pain. The orders file below has four problems at once:

  • the client names are cut off and can't be read;
  • the Old amount column is left over from an earlier version and isn't needed anymore;
  • order 1014 went missing, and it needs a row in its proper place;
  • the table is long, and when you scroll, the header (the row with the column names) scrolls away.

Each one takes a couple of clicks to fix. Clean up the file step by step:

Widen the Client column
fx
A
B
C
D
E
F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Order
Client
Old amount
Amount, $
Manager
1001
Five Spoons Café
2200
2000
Emma
1002
Carter Consulting
3707
3370
Ben
1003
North Wind Trading LLC
5214
4740
Olivia
1004
Golden Wheat Bakery
6721
6110
Leo
1005
Lewis Home Repairs
8228
7480
Emma
1006
Pixel Design Studio
9735
8850
Ben
1007
Warm Home Interiors
11242
10220
Olivia
1008
Iris Flower Shop
2849
2590
Leo
1009
Sanders Accounting
4356
3960
Emma
1010
Bean & Brew Coffee
5863
5330
Ben
1011
Bookbinder Books
7370
6700
Olivia
1012
Owens Plumbing
8877
8070
Leo
1013
Curl Up Hair Salon
10384
9440
Emma
1015
Alpha Service Group
11891
10810
Ben
1016
Golden Wheat Bakery
3498
3180
Olivia
1017
Five Spoons Café
5005
4550
Leo
1018
Carter Consulting
6512
5920
Emma
1019
Pixel Design Studio
8019
7290
Ben
1020
Warm Home Interiors
9526
8660
Olivia
1021
Bean & Brew Coffee
11033
10030
Leo
1022
Lewis Home Repairs
2640
2400
Emma
1023
Iris Flower Shop
4147
3770
Ben
1024
North Wind Trading LLC
5654
5140
Olivia
1025
Curl Up Hair Salon
7161
6510
Leo
Sheet1
The client names are cut off: column B isn’t wide enough. Double-click the border between the letters B and C above the sheet, and the column adjusts to fit the longest name.

Rows and columns

Inserting and deleting live in the menu that opens when you right-click. On a Mac, click the trackpad with two fingers or hold down Control while you click. Which items the menu shows depends on where you click:

  • on a row number: Insert Rows Above and Delete Rows;
  • on a column letter: Insert Columns Left and Delete Columns;
  • on an ordinary cell: the same commands under Insert and Delete.

If you select several rows first, for example by dragging across the row numbers from 5 to 7, Excel inserts or deletes three rows at once.

Deleting removes the row across the whole width of the sheet, and the rows below move up to take its place. To erase just the values and leave the row empty, choose Clear Contents in the same menu or press Delete.

Column width

To change the width, drag the border between the column letters above the sheet. Point at the border, and the pointer turns into a double-headed arrow, then drag. Double-clicking the same border fits the column to the longest value in it.

Text that doesn't fit spills over into the next cell if that cell is empty, and gets cut off if it isn't. Numbers can't do that. When a number doesn't fit, Excel shows hash marks #### instead. The number itself is fine, the column just needs more room.

Keep the header in view

Freezing keeps the top row on the screen while you scroll down the sheet. On the View tab, click Freeze Panes and choose Freeze Top Row. A line appears under the first row: everything above it no longer scrolls away.

This doesn't change your data, only what you see on the screen. To unfreeze, go to the same place: Freeze Panes → Unfreeze Panes.

Copy and paste

Excel uses the same keys as other programs:

  • Ctrl + C copies the selected cells;
  • Ctrl + X cuts them: after you paste, they disappear from their old place;
  • Ctrl + V pastes what you copied into the selected cell.

On a Mac, press ⌘ instead of Ctrl. The same commands are in the right-click menu.

Copied cells get a moving dashed border. As long as you can see it, you can paste as many times as you like, and the Esc key removes it.

Sometimes a number in a cell isn't typed in by hand but calculated by a formula: an instruction Excel uses to work out the number by itself. On the sheet below, the total in B5 is calculated that way. If you paste a cell like that the usual way, the formula moves to the new place instead of the number, and there it calculates something else. To paste the number itself, right-click and choose Paste Special → Values.

fx
A
B
C
D
E
1
2
3
4
5
6
7
Product
Amount, $
For the report
Tea
1000
Coffee
1780
Sugar
570
Total
Sheet1