Skip to main content
March 23, 2026/4 min read

Create Mixed References

Master Excel's Mixed Reference Formula Techniques

What Are Mixed References?

Mixed references combine absolute and relative references, allowing you to lock either the column or row while keeping the other flexible. This is essential for complex spreadsheet calculations involving multiple products and discount structures.

Reference Types in Excel

FeatureAbsolute ReferenceMixed Reference
Format$D$5$D5 or D$5
Column LockAlways lockedOptional lock
Row LockAlways lockedOptional lock
Use CaseSingle fixed cellFlexible calculations
Recommended: Use mixed references when you need to lock only one dimension of your cell reference

Creating Mixed References with F4 Key

1

Select Cell Reference

Click on the cell you want to reference in your formula

2

Press F4 Once

Creates full absolute reference like $D$5

3

Press F4 Twice

Creates mixed reference with absolute row like D$5

4

Press F4 Three Times

Creates mixed reference with absolute column like $D5

Mixed Reference Applications

Sales Tax Calculations

Apply a single tax rate stored in one cell to multiple line items. The tax rate cell remains constant while item prices change.

Quantity Discounts

Calculate different discount percentages across multiple products. Lock discount rows while allowing product columns to vary.

Pricing Matrices

Build complex pricing tables where unit prices stay fixed in columns while discount rates vary across rows.

Discount Structure Example

5% Discount (10-20 items)
5
10% Discount (21-50 items)
10
20% Discount (51+ items)
20
Formula Structure for Mixed References

The example formula =D5-($D5*E$4) demonstrates both types of mixed references: $D5 locks the column for unit prices, while E$4 locks the row for discount percentages.

Mixed Reference Best Practices

0/4

Mixed References vs Absolute References

Pros
More flexible for matrix calculations
Reduces formula complexity
Enables efficient copying in one direction
Perfect for pricing and discount tables
Cons
Requires understanding of dollar sign placement
Can be confusing for beginners
Mistakes harder to spot than simple references
Each unit price was multiplied by each of the 3 discounts, row by row, across all three columns thanks to mixed references
This demonstrates how mixed references enable complex calculations across multiple dimensions while maintaining formula accuracy and efficiency.

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.


Key Takeaways

1Mixed references combine absolute and relative references by locking either the column or row, but not both
2Use $D5 format to lock columns when copying formulas horizontally across rows
3Use D$5 format to lock rows when copying formulas vertically down columns
4The F4 key cycles through reference types: relative, absolute, and two mixed reference options
5Mixed references are essential for pricing matrices and discount calculations involving multiple products
6The formula structure =D5-($D5*E$4) demonstrates both column-locked and row-locked mixed references
7Fill handles work efficiently with mixed references to copy formulas across multiple cells
8Mixed references reduce formula complexity while maintaining accuracy in multi-dimensional calculations

RELATED ARTICLES