Creating Mixed References

Building on absolute references—which lock specific cells in formulas to prevent unwanted changes during copy operations—mixed references offer a more nuanced approach to formula construction. While absolute references lock both column and row coordinates (like $G$2), mixed references selectively lock either the column or the row, giving you surgical precision over which parts of your formula remain constant when copied across worksheets.

This technique proves invaluable in complex financial models, pricing matrices, and any scenario where you need formulas to behave differently when copied horizontally versus vertically. In Excel, mastering mixed references separates casual users from power users who build sophisticated, scalable spreadsheets.

Consider a practical application: calculating sales tax across multiple line items. To apply a single tax percentage stored in cell G2 to every purchased item, you'd make G2 an absolute reference by pressing F4 when adding that cell to your formula. This ensures that regardless of where you copy the formula, it always references your tax rate in G2.

As you can observe in the demonstration, after copying the formula down the column for remaining line items, each iteration correctly references cell G2 for the tax percentage, while the product-specific values update appropriately for each row. This behavior exemplifies how absolute references maintain consistency across calculations.

Now, let's explore the more sophisticated application of mixed references using a quantity discount matrix—a common scenario in B2B pricing, wholesale operations, and volume-based sales models.


Our worksheet contains quantity discounts for multiple products, structured as a two-dimensional lookup table. We'll demonstrate mixed references in two distinct ways: first, to lock column references while allowing rows to vary, and second, to lock row references while permitting columns to change. This dual approach showcases the flexibility mixed references provide in real-world business scenarios.

For our first calculation—determining the 5% discount price for purchasing 10-20 units of the initial product—we begin with a strategic formula structure:

Starting with = D5, we immediately add a dollar sign before the D ($D5), creating our first mixed reference. This locks the column while leaving the row flexible—exactly what we need since we'll be copying this formula horizontally to calculate different discount levels, but we always want to reference the unit price in column D.

The formula continues with a minus sign, followed by an opening parenthesis and another reference to $D5. This repetition ensures we're calculating the discount amount based on the original unit price.

Next comes the multiplication operator (*) to apply our discount percentage from cell E4. Here's where the second mixed reference becomes crucial: we add a dollar sign before the row number (E$4), locking row 4 while allowing the column to vary. Alternatively, pressing F4 twice cycles through reference types, landing on this mixed reference format.


This E$4 mixed reference enables horizontal copying across discount columns (5%, 10%, 20%) while maintaining the correct row reference for our discount percentages. It's this precision that makes mixed references so powerful in matrix calculations.

After closing the parentheses and pressing ENTER, the discounted price appears. The formula =$D5-($D5*E$4) now contains two mixed references working in harmony—one locking the price column, another locking the discount row.

To apply this logic across all discount levels for our first product, we drag the fill handle horizontally through cells F5 and G5. Watch as the mixed references work their magic: the column-locked reference ($D5) ensures we always pull from the unit price, while the row-locked reference (F$4, G$4) correctly applies each discount percentage.

The final step demonstrates the true power of mixed references: selecting all three calculated prices (E5:G5) and dragging down through row 11 applies our formula logic to all seven products simultaneously. This single action creates a complete pricing matrix—21 individual calculations executed flawlessly through intelligent reference management.

Examining the completed matrix reveals the elegance of mixed references in action. Each cell maintains the correct mathematical relationship: unit prices from column D multiplied by appropriate discount percentages from row 4, creating accurate pricing for every product-discount combination. The color-coded cell references clearly illustrate how mixed references maintained the proper relationships across both dimensions of our data table, transforming what could have been tedious manual calculations into an automated, error-resistant system.