Rows vs Columns in Excel: The Difference, With Examples
By ExcelReady TeamUpdated 8 min read
The short answer
In Excel, a row runs across the sheet and has a number, such as row 3. A column runs down the sheet and has a letter, such as column B. A cell is where a row and a column meet, so B3 means column B, row 3. Put each record in a row and each field in a column.
Key takeaways
- Rows run across and have numbers. Columns run down and have letters. A cell address is column first, then row: B3.
- A sheet has 1,048,576 rows and 16,384 columns (A to XFD) in Excel 2007 and later.
- Shift+Space selects the current row and Ctrl+Space selects the current column.
- For data, put one record in each row and one field in each column, with headers in row 1.
- To swap rows and columns, use Paste Special with Transpose or the TRANSPOSE function.
On this page+
The short answer to rows vs columns in Excel: a row runs across the sheet and has a number, and a column runs down the sheet and has a letter. Where they meet is a cell, named column first and row second, like B3. This guide is for beginners and anyone preparing for an Excel test who wants the difference, the shortcuts for each and the right way to lay out data.
Rows vs columns at a glance#
Rows and columns are the two directions of the grid. Almost everything else in Excel builds on them.
| Feature | Rows | Columns |
|---|---|---|
| Direction | Horizontal (left to right) | Vertical (top to bottom) |
| Label | Numbers: 1, 2, 3 … | Letters: A, B, C … |
| Where the label sits | Down the left edge | Along the top |
| How many (Excel 2007 and later) | 1,048,576 | 16,384 (A to XFD) |
| Place in a cell address | Second: the 3 in B3 | First: the B in B3 |
| Whole-row or whole-column reference | 3:3 | B:B |
| Select the current one | Shift+Space | Ctrl+Space |
| Size setting | Row height (in points) | Column width (in characters) |
| In a data table, it usually holds | One record (one sale, one person) | One field (date, name, amount) |
A memory trick: columns stand up, like the columns of a building. Rows lie flat, like rows of seats in a cinema.
What is a row and what is a column in Excel?#
A row is a horizontal line of cells and a column is a vertical one. Each has a different job in a well-built list.
What is a row?#
A row is one horizontal line of cells, and its number appears in the grey area on the left of the sheet. Row 1 is at the top. When you press Enter, Excel moves down to the next row in the same column.
In a well-built list, each row is one complete record: everything about one order, one employee or one day. Here is a small staff list:
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Dept | City | Salary |
| 2 | Ana | Sales | Leeds | 41000 |
| 3 | Ben | HR | York | 38000 |
| 4 | Chloe | IT | Leeds | 52000 |
Row 3 holds everything about Ben. If you sort the list, Excel moves whole rows, so Ben's department and salary stay with his name.
What is a column?#
A column is one vertical line of cells, and its letter appears along the top. After Z, Excel continues with AA, AB and so on, up to XFD. When you press Tab, Excel moves right to the next column in the same row.
In a list, each column is one field: one kind of information. In the table above, column D holds every salary and nothing else. That is what lets a formula like =SUM(D2:D4) add all the salaries (131,000) or =AVERAGE(D2:D4) average them.
The first row usually holds the column headers, the names of the fields. Headers tell readers, filters and pivot tables what each column means. To keep them visible while you scroll down, use View > Freeze Panes > Freeze Top Row.
How cell addresses combine rows and columns#
Every cell address is the column letter followed by the row number. B3 is column B, row 3, and the address is never written the other way round (3B doesn't work). A range like A2:D4 covers columns A to D and rows 2 to 4.
You can also refer to a whole row or column:
=SUM(D:D)adds every number in column D.=SUM(2:2)adds every number in row 2.
Dollar signs lock one direction when you copy a formula. In $B3, the column is fixed and the row can change. In B$3, the row is fixed and the column can change. The guide to how cell references work covers this in detail.
A few functions also work in each direction:
| Function | What it returns | Example | Result |
|---|---|---|---|
| ROW | The row number of a cell | =ROW(B3) | 3 |
| COLUMN | The column number of a cell | =COLUMN(B3) | 2 |
| ROWS | How many rows a range covers | =ROWS(A2:D4) | 3 |
| COLUMNS | How many columns a range covers | =COLUMNS(A2:D4) | 4 |
How to select, insert and delete rows and columns#
The steps are the same for both. Only the shortcut to select differs.
| Task | Rows | Columns |
|---|---|---|
| Select with the mouse | Click the row number | Click the column letter |
| Select with the keyboard | Shift+Space | Ctrl+Space (Mac: Control+Space) |
| Insert (after selecting) | Ctrl+Shift+= (Mac: Control+Shift+=) | Same keys |
| Delete (after selecting) | Ctrl+- (Mac: ⌘-) | Same keys |
| Where the new one appears | Above the selected row | Left of the selected column |
To insert several at once, select that many rows or columns first. Selecting rows 5 to 7 and inserting adds three blank rows. The full set of keys is in the guide to inserting and deleting rows and columns, and the guide to selecting an entire row or column covers selecting large blocks.
To move along a row or column quickly, hold Ctrl and press an arrow key (Mac: ⌘ and an arrow). Excel jumps to the edge of the data in that direction.
When to use rows#
Use rows for the things you count, add up and sort: one row per item.
- One transaction per row. Each sale, expense or ticket gets its own row, and a new one goes in at the bottom.
- Lists that grow. Lists get longer more than they get wider, and there are far more rows than columns.
- Sorting and filtering. Sort and filter work on rows. A filter hides whole rows that don't match.
- Pivot tables and Excel tables. Both read each row as one record.
When to use columns#
Use columns for the types of information that every record has.
- One field per column. Date, Region, Product and Amount each get their own column, with a header.
- Calculated fields. A new formula column, such as Amount × Tax rate, sits next to the data and is filled down.
- Short side-by-side reports. A small summary that compares a few months or regions can spread across columns, as long as it is a report and not the raw data.
The same data as rows and as columns#
Sometimes data arrives sideways, with months across the top. Here are three months of sales laid out both ways:
Wide (months in columns):
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Region | Jan | Feb | Mar |
| 2 | North | 1200 | 1350 | 1100 |
Long (months in rows):
| A | B | C | |
|---|---|---|---|
| 1 | Region | Month | Sales |
| 2 | North | Jan | 1200 |
| 3 | North | Feb | 1350 |
| 4 | North | Mar | 1100 |
Both show the same total, 3,650. The wide layout is easy to read as a report. The long layout is better for analysis: adding April means one new row, and =SUMIFS(C2:C4,B2:B4,"Feb") can pick out any month.
To flip a block from one layout to the other, copy it, right-click the destination and choose Paste Special > Transpose (Windows: Ctrl+Alt+V; Mac: Control+⌘+V). The guide to TRANSPOSE shows the formula version, which updates when the source changes.
Common mistakes with rows and columns#
These slips cause most beginner problems:
- Mixing up the names. "Column 3" is column C, while "row C" doesn't exist. Rows always have numbers.
- Writing the address backwards. It is B3, not 3B.
- Blank rows inside the data. A blank row splits a list, so sorting, filters and Ctrl+arrow jumps stop at the gap.
- Two kinds of data in one column. A column with both dates and notes can't be summed or sorted properly. Give each field its own column.
- Totals in the middle of the data. Put totals below the list or on a separate summary, not between records.
- Confusing columns with sheets. A worksheet is a whole grid of rows and columns, and a workbook is the file that holds the sheets. See workbook vs worksheet if those terms are new.
Our recommendation#
Learn the labels first: numbers for rows, letters for columns, column first in an address. Then use the standard layout for every list you build: one record per row, one field per column, headers in row 1, no blank rows. That layout works with sorting, filters, pivot tables and formulas without any extra effort. Spread data across columns only for a final report that people will read, not for the data you calculate from.
Practise it#
The fastest way to make this automatic is to click around a real grid. Practise cells, rows and columns in a live spreadsheet: you find cells by address, select ranges and type into them, and each step is checked instantly. Then practise moving around the sheet from the keyboard with Enter, Tab and the Name Box. If you're not sure where your skills are, the Excel level test gives you a starting point.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Each employee in this list is one row. Click F2 and use ROWS on A2:D7 to count how many employee records there are, then press Enter.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Salary | ||||||
| 2 | Records | ||||||
| 3 | |||||||
| 4 | |||||||
| 5 | |||||||
| 6 | |||||||
| 7 | |||||||
| 8 | |||||||
| 9 | |||||||
| 10 |
Tip: ROWS counts how many rows a range covers. Leave out the header row, so start at row 2.
Practise this in a lesson
Frequently asked questions
Are rows horizontal or vertical in Excel?
Rows are horizontal: they run across the sheet from left to right. Columns are vertical: they run down the sheet. A quick memory trick is that columns stand up like the columns of a building.
How do I know if something is a row or a column in Excel?
Look at the label. Rows are labelled with numbers down the left edge of the sheet. Columns are labelled with letters along the top. If the label is a number, it's a row; if it's a letter, it's a column.
How many rows and columns does Excel have?
Since Excel 2007, every worksheet has 1,048,576 rows and 16,384 columns, which run from A to XFD. The old .xls format had 65,536 rows and 256 columns.
Should data go in rows or columns in Excel?
Put each record, such as one sale or one employee, in its own row, and each type of information, such as date or amount, in its own column. Sorting, filters, pivot tables and most formulas expect this layout.
How do I switch rows and columns in Excel?
Copy the range, right-click the place you want the result, choose Paste Special and tick Transpose. For a result that updates when the source changes, use the TRANSPOSE function instead.