Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel F4 for Mac: How to Use Absolute Cell References

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To use the F4 function in Excel for Mac, press Command + T or fn + F4 to toggle between absolute and relative cell references. This shortcut allows you to lock a specific cell, row, or column in a formula so that it does not change when you copy or drag the formula to other cells.

In Excel, cell references are relative by default. This means if you have a formula in cell B1 that says =A1 and you drag it down to B2, the formula automatically changes to =A2. While this is helpful for calculating lists, it becomes a problem when you want every formula in a range to point back to one single constant value, such as a tax rate, a currency conversion factor, or a specific date. This is where the F4 functionality—known as creating an absolute reference—becomes essential for data integrity and efficiency.

What You'll Need

  • A Mac computer running macOS.
  • Microsoft Excel installed (works across most modern versions).
  • A keyboard with function keys (F1-F12).

Step-by-Step

  1. Open your Excel workbook and navigate to the cell where you want to enter or edit a formula.
  2. Start your formula by typing the equals sign (=) and then selecting the cell reference you wish to lock. For example, if your tax rate is in cell G1, type =A2*G1.
  3. Position the cursor. You must ensure the blinking cursor is either touching the cell reference (e.g., G1) or that the cell reference is highlighted in the formula bar at the top of the screen. If the cursor is at the end of the formula after a mathematical operator, the shortcut may not trigger.
  4. Apply the shortcut. Depending on your Mac keyboard settings, use one of the following combinations:
    • Command + T: This is the native macOS shortcut for toggling absolute references in Excel.
    • fn + F4: On most Mac keyboards, the top row keys are set to media controls (brightness, volume). Holding the fn key allows you to access the actual F4 function.
  5. Observe the dollar signs. As you press the shortcut repeatedly, Excel will cycle through four different reference types:
    • Absolute Reference ($G$1): Both the column and row are locked. No matter where you move the formula, it always points to G1.
    • Mixed Reference (G$1): The row is locked, but the column is relative. If you drag the formula horizontally, G changes to H, but the row stays 1.
    • Mixed Reference ($G1): The column is locked, but the row is relative. If you drag the formula vertically, 1 changes to 2, but the column stays G.
    • Relative Reference (G1): No locks are applied. Both row and column change based on where the formula is moved.
  6. Press Enter to complete the formula.
  7. Test the reference by clicking the fill handle (the small green square in the bottom-right corner of the cell) and dragging the formula down or across. Check the formula bar in the new cells to ensure the dollar signs remained in the correct positions.

Common Mistakes

One of the most frequent errors users make is attempting to use the F4 key without holding the fn key. Because Apple configures the function row for system shortcuts (like Mission Control or Volume), pressing F4 alone usually triggers a macOS system feature rather than an Excel command. If you see a search bar or a window management screen appear, you are not holding the fn key.

Another common mistake is applying the shortcut while the cursor is in the wrong place. If your formula is =A2*G1 and your cursor is at the very end of the line, pressing Command + T may do nothing or may affect the wrong part of the formula. You must click directly on the specific cell coordinate you intend to lock.

Users also often forget that the shortcut is a cycle. If you only wanted to lock the row (G$1) but you pressed the shortcut twice, you have now locked both the row and column ($G$1). If you press it three times, you have locked only the column ($G1). It is important to watch the formula bar to ensure you have stopped on the correct variation of the dollar signs.

Tips

If you find fn + F4 cumbersome, stick with Command + T. It is often faster for Mac users and avoids the need to reach for the bottom-left of the keyboard. This shortcut is specifically designed for the Mac version of Excel to mirror the F4 behavior on Windows.

For those who prefer a visual approach, you can always type the dollar signs manually. Typing a $ before the letter and a $ before the number (e.g., $B$5) achieves the exact same result as the F4 shortcut. This is sometimes safer when building very complex formulas with multiple nested functions where keyboard shortcuts might be confusing.

When working with large datasets, use absolute references for your "Constants Table." For example, if you have a table of shipping rates for different zones, lock the range of that table using absolute references. This allows you to use a VLOOKUP or XLOOKUP function and drag it down thousands of rows without the lookup range shifting and causing #N/A errors.

Troubleshooting

If the shortcut is not working, first check if you are in "Edit Mode." You cannot apply the F4/Command+T shortcut if you are simply selecting a cell; you must be actively editing the formula (either by double-clicking the cell or clicking into the formula bar). If the cell is not in edit mode, the shortcut will be ignored.

If fn + F4 still triggers a system command (like Launchpad), you can change your keyboard behavior in the macOS system settings. Go to System Settings > Keyboard > Keyboard Shortcuts > Function Keys and toggle the switch that says "Use F1, F2, etc. keys as standard function keys." Once this is enabled, you can press F4 without holding the fn key, though this will disable your brightness and volume shortcuts unless you hold fn for those.

If Command + T is not working, ensure that no other third-party software (such as a window manager or a clipboard manager) has hijacked that specific key combination. Some productivity apps override standard shortcuts, which can interfere with Excel's functionality.

If you see a formula error like #REF! after dragging a locked formula, it usually means the absolute reference is pointing to a cell that was deleted or a range that no longer exists. Double-check that the cell you locked still contains the necessary data.

Frequently Asked Questions

Does Command + T work on all versions of Excel for Mac?

Yes, Command + T is the standard macOS alternative to the Windows F4 key and is supported in all recent versions of Excel for Mac, including Microsoft 365 and standalone versions.

What is the difference between $A1 and A$1?

$A1 locks the column. If you copy the formula to the right, it stays in column A. A$1 locks the row. If you copy the formula down, it stays in row 1.

Can I lock a whole range of cells at once?

Yes. If you highlight a range (e.g., A1:B10) within your formula and then press Command + T or fn + F4, Excel will apply the absolute reference to both the start and end points of the range (e.g., $A$1:$B$10).

Why does my F4 key open a search bar instead of locking the cell?

This happens because your Mac is configured to use the F-keys for system shortcuts. You must hold the fn key simultaneously with F4 to tell macOS you want to use the actual function key for the application.

Can I use these shortcuts in Google Sheets on a Mac?

No, Google Sheets uses different shortcuts. While F4 often works in Google Sheets, the Command + T shortcut is specific to Microsoft Excel for Mac.