Excel tutorial
/

Excel basics

Intermediate

Mixed references in Excel, $A1 and A$1: explained with a multiplication table

What a mixed reference is, $A1 vs A$1, the four-press F4 cycle, a multiplication table and a discount matrix — a whole table from one formula.

An absolute reference ($A$1) locks both the column and the row. But when a formula is copied in two directions — down and across — you often need to lock only one of them. That is what a mixed reference does:

  • $A1 — column locked, row shifts
  • A$1 — row locked, column shifts

Once mixed references click, you can fill a table of 25 or 2,500 cells with a single formula. It is the skill that separates confident users from beginners.

Книга1 - Excel
—☐✕
D4fx=$A4*D$1
ABCDEFG
1×123245
2112345
32246810
4313691215
5448121620
65510152025
7
Готово
All 25 cells hold one formula. D4 has =$A4*D$1: the row number comes from column A, the column number from row 1

Building a multiplication table with one formula

1

Enter the numbers 1 to 5 in B1:F1 and in A2:A6. These are the two “axes” of the table.

Книга1 - Excel
—☐✕
B1fx1
ABCDEFG
1×12345
21
32
43
54
65
7
ГотовоСреднее: 3Количество: 5Сумма: 15

2

Type =A2*B1 in B2. Put the cursor on A2 and press F4 three times — it becomes $A2. Then move to B1 and press F4 twice — B$1. Result: =$A2*B$1.

Книга1 - Excel
—☐✕
B2fx=$A2*B$1
ABCDEFG
1×122345
2111
32
43
54
65
7
Готово
$A2 always reads from column A; B$1 always reads from row 1

3

Copy B2 with Ctrl + C, select B2:F6 and press Ctrl + V. (Or drag the fill handle right to F2 first, then down to row 6.)

Книга1 - Excel
—☐✕
B2fx=$A2*B$1
ABCDEFG
1×12345
2112345
32246810
433691215
5448121620
65510152025
7
ГотовоСреднее: 9Количество: 25Сумма: 225

4

Check the farthest corner — select F6. The formula is =$A6*F$1, the result 25. If the corner cell is right, the whole table almost always is.

Книга1 - Excel
—☐✕
F6fx=$A6*F$1
ABCDEFG
1×12345
2112345
32246810
433691215
5448121620
655101520254
7
Готово

The F4 cycle: four presses, four states

While a formula is being edited and the cursor is on a reference, each press of F4 moves it to the next state:

  1. A1 → $A$1 — everything locked
  2. $A$1 → A$1 — only the row locked
  3. A$1 → $A1 — only the column locked
  4. $A1 → A1 — relative again

Easy to remember: $ locks whatever comes right after it. $A — the column never leaves A; $1 — the row never leaves 1.

Книга1 - Excel
—☐✕
C3fx=B3*C2
ABCDEFG
1×12345
2112624120
32242457669120
4
5
Готово
A formula copied without $: C3 holds =B3*C2 — neighboring results get multiplied instead of the headers

A practical example: a discount table

A shop wants to see each product’s price at 5%, 10% and 15% off. Prices are in column A, discounts in row 1. One formula in B2 is enough:

=$A2*(1-B$1)

$A2 always takes the price from column A, B$1 always takes the discount from row 1. Copy it to B2:D5 and you are done. If a 20% column appears tomorrow, you just extend the formula one more column.

Книга1 - Excel
—☐✕
D4fx=$A4*(1-D$1)
ABCDE
1Price / Discount5%10%15%
2120 000114 000108 000102 000
385 00080 75076 50072 250
4240 000228 000216 000204 000
556 00053 20050 40047 600
6
Готово
D4 holds =$A4*(1-D$1): 240,000 UZS at 15% off is 204,000 UZS

Pro level: “growing” ranges with mixed references

The most useful application of mixed references is a range with a locked start and a moving end:

  • =СУММ($B$2:B2) — year-to-date total (a running total).
  • =СЧЁТЕСЛИ($A$2:A2;A2) — which occurrence of this customer this is. 1 means first time, 2 or more means a repeat purchase.
  • =ЕСЛИ(СЧЁТЕСЛИ($A$2:A2;A2)=1;"New";"Repeat") — flag duplicates without deleting them.

Another pro move is a two-way report: =СУММЕСЛИМН($C:$C;$A:$A;$E2;$B:$B;F$1). The customer comes from $E2 (moves down), the month from F$1 (moves right) — an entire summary from one formula.

Книга1 - Excel
—☐✕
B4fx=СЧЁТЕСЛИ($A$2:A4;A4)
ABCD
1CustomerOccurrenceStatus
2Aziz1New
3Dilnoza1New
4Aziz2Repeat
5Javohir1New
6Aziz3Repeat
7
Готово
B4 holds =COUNTIF($A$2:A4,A4): the range runs from A2 to the current row — this is Aziz’s 2nd appearance

Try it in the simulator

Type =$A2*B$1 in B2. Copy B2 and paste it into B2:F6 (or fill right first, then down). If F6 shows 25, everything is correct.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1×12345
21
32
43
54
65
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

20 / 154