Today, we are going to talk about mixed cell ref­er­ences and we will start with the sim­plest exam­ple, which is the mul­ti­pli­ca­tion table. Mul­ti­pli­ca­tion is sim­ple. We just have to mul­ti­ply the row head­er by the col­umn head­er. We are going to write a for­mu­la in cell B3, then we are going to copy the for­mu­la down and to the right. First, we are refer­ring to cell A3. Then we have to ask our­selves how our ref­er­ence should change while copy­ing it down and to the right. Let’s look at our data which we will be refer­ring to. We’re start­ing with row head­ers. Our row head­ers are in one col­umn and many rows (Fig. 1).

Mixed cell ref­er­ences, mul­ti­pli­ca­tion table and divid­ing profits
Row headers
Fig. 1 Row headers

It means that the rows are chang­ing but the columns stay the same. Thus, we have to lock the col­umn name, not the row num­ber. We can use the F4 key which cycles through cell ref­er­ence types. It turns out that we had to press the F4 key three times, so that the $ sign is before the col­umn name, not before the row num­ber (Fig. 2).

=$A3

Locked column name
Fig. 2 Locked col­umn name

It means that the col­umn name should stay the same, but the row num­ber should change. We want to mul­ti­ply them so we are adding cell B2. Let’s look at the head­ers once again. As we can see, our col­umn head­ers are placed in one row, but many columns. 

=$A3*B2

Column headers on one row
Fig. 3 Col­umn head­ers on one row

This time, we want to lock the rows, not the columns. We have to click the F4 key two times, so that the $ sign is before the row num­ber, not the col­umn name, which means that the rows should stay the same, but the columns should change (Fig. 4).

=$A3*B$2

Locked row number
Fig. 4 Locked row number

After enter­ing the for­mu­la, copy it down and to the right. We can see that the results are prop­er (Fig. 5)

Proper results
Fig. 5 Prop­er results

Let’s check the last cell. We can see that we have prop­er cell ref­er­ence to row head­ers, as we still refer to col­umn A, and the rows changed. Ana­log­i­cal­ly, for col­umn head­ers, we can see that the columns changed, and the row stayed the same (Fig. 6).

Proper cell reference
Fig. 6 Prop­er cell reference

That’s how mixed cell ref­er­ence works. It will work in many dif­fer­ent exam­ples, like the one below. We have to divide prof­its for share­hold­ers. The sit­u­a­tion is ana­log­i­cal. Our prof­its are in one col­umn and many rows (Fig. 7)

Profits in one column
Fig. 7 Prof­its in one column

We have to lock the col­umn name, i.e. the $ sign should be placed before the col­umn name, not before the row num­ber. Then, we want to mul­ti­ply it by per­cent­ages. They are in one row — row num­ber 3, which should­n’t change (Fig. 8).

=$B6*

Percentage in one row
Fig. 8 Per­cent­age in one row

So, when we refer to cell C3, we have to lock the rows, not the columns because they are chang­ing. Let’s press the F4 key twice and lock the rows (Fig. 9).

=$B6*C$3

Cell C3 reference
Fig. 9 Cell C3 reference

After copy­ing the for­mu­la down and to the right, we have prop­er results. 

Proper results
Fig. 10 Prop­er results

That’s how you use mixed cell references. 

https://www.youtube.com/watch?v=XEReV0n8zXc