How to Keep a Cell Fixed in Excel Formula (4 Easy Ways)

Get FREE Advanced Excel Exercises with Solutions!

In Microsoft Excel, while working with a dataset, sometimes we need to use the same formula in multiple rows or columns. In this article, we will see how to keep a cell fixed in an Excel formula. We will illustrate this method to you with 4 easy examples with explanations.


How to Keep a Cell Fixed in Excel Formula: 4 Easy Ways

1. Use of F4 Key in Excel Formula to Keep a Cell Fixed

In this example, we will use the F4 key to keep a cell formula fixed. We have a dataset of fruits with their weight, unit price, and total price. Sellers will pay 5% tax over the total for all kinds of fruits. Let’s see why we need to fix the cell formula to calculate this:

Use of F4 Key in Excel Formula to Keep a Cell Fixed

  • In the beginning, select cell F5.
  • Insert the following formula:
=C5*D5
  • Press Enter.
  • So, we get the tax amount for the first fruit item.

Use of F4 Key in Excel Formula to Keep a Cell Fixed

  • Next, if we drag the Fill Handle tool, we don’t get any values.
  • Look at the corresponding formulas. The cell reference is changing downwards.
  • We need to fix the cell value D12 for all the formulas.

Use of F4 Key in Excel Formula to Keep a Cell Fixed

  • Now select cell F5. From the formula select the D12 part and press F4. The formula will look like this:
=E5*$D$12
  • Press, Enter.
  • Drag the Fill Handle to the end of the dataset.

  • Finally, we get the actual tax amount for all the fruits.

Read More: How to Make Different Types of Cell Reference in Excel


2. Freeze Only Row Reference of a Cell

In this example, we have the following dataset of six salespeople. Their sales commission rate is 5%. This value is located in Row 5. We will calculate sales commissions for all salespeople. So, we will fix Row 5. To perform this action just follow the below steps:

Freeze Only Row Reference of a Cell

  • Firstly, insert the following formula in Cell D6.
=C6*D5
  • We get the amount of sales commission for John.
  • Next, drag down the Fill Handle.

  • Here, we see the error. Because the reference of the value 5% is not fixed in the formula.

Freeze Only Row Reference of a Cell

  • To solve this select the formula of Cell D6.
  • Insert a ‘$’ sign before row number 5.
  • Hit Enter.
  • Drag down the Fill Handle.

  • Lastly, we can see that, we get the sales commission value for all the salespeople.


3. Keep the Column Reference Fixed in Excel Formula

In this example, we will keep the column reference fixed whereas we only kept the sale reference fixed in the previous one. We will add a new column 10% sales commission to our previous dataset. We will  go through the following steps to perform this action:

Keep the Column Reference Fixed in Excel Formula

  • First, select the cell range (D6:D11).
  • Drag the Fill Handle tool Horizontally.

Keep the Column Reference Fixed in Excel Formula

  • We can see that we get the 10% of the sales commission value of 5% not over the total sales value. This happens because the column reference doesn’t remain fixed.

Keep the Column Reference Fixed in Excel Formula

  • Now insert a ‘$’ sign before column number C to fix the column reference.
  • Select (D6:D11).
  • Drag the Fill Handle tool Horizontally.

  • Finally, we get the 10% sales commission for actual sales value.

Read More: How to Use Cell References in Excel Formula


4. Both Column and Row References of a Cell Fixed

In this example, we will fix the reference of a column and a row at the same time. We will use this method in our following dataset of workers to calculate their total income. Let’s see how can we do this following simple steps:

Both Column and Row Reference of a Cell Fixed

  • In the beginning, select cell D5. Insert the following formula:
=C5*C12
  • Press Enter.
  • Drag the Fill Handle tool to Cell D10.
  • Here, we don’t get the income for all the workers because the cell reference of Cell C12 is not fixed.

Both Column and Row Reference of a Cell Fixed

  • To fix the reference select the formula of cell D5. Insert dollar sign before C and 12. The formula will look like this:
=C5*$C$12
  • Press Enter and drag down the Fill Handle.

Both Column and Row Reference of a Cell Fixed

  • Finally, we get the total income for all the workers.


Download Practice Workbook

You can download the practice workbook from here.


Conclusion

In this article, we have tried to cover almost everything about how to keep a cell fixed in an excel formula. For greater efficiency, download our practice workbook added to this article and practice yourself. If you have any queries or have any kind of confusion just leave a comment below. We will try to reply to you as soon as possible.


Related Articles


<< Go Back to Cell Reference in Excel | Excel Formulas | Learn Excel

What is ExcelDemy?

ExcelDemy - Learn Excel & Get Excel Solutions Center provides online Excel training , Excel consultancy services , free Excel tutorials, free support , and free Excel Templates for Excel professionals and businesses. Feel free to contact us with your Excel problems.
Mukesh Dipto
Mukesh Dipto

Mukesh Dipto is an excellent marine engineer who loves working with Excel and diving into VBA programming. For him, programming is like a superhero tool that saves time when dealing with data, files, and the internet. His skills go beyond the basics, including Rhino3D, Maxsurf C++, AutoCAD, HTML, CSS, JavaScript, and WordPress. He got his B.Sc in Naval Architecture & Marine Engineering from BUET, and now he's switched gears, working as a content developer. In this role, he... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo