Highlight the cell, row, and column under the mouse in real time


When working with a large, data-dense Excel sheet, it’s easy to lose your place without highlighting. If you can highlight the cell, row, and column under the mouse in real time, reviewing data becomes much more effective. How do you set that up?

Highlight the cell, row, and column under the mouse in real time

  1. Select A1:M20
  2. Home → Conditional Formatting → New Rule
  3. Use a formula to determine which cells to format
  4. Enter the formula:
    =OR(CELL("row")=ROW(), CELL("col")=COLUMN())
    
    
  5. Format → Fill → select a color
  1. Select A1:M20
  2. Home → Conditional Formatting → New Rule
  3. Use a formula to determine which cells to format
  4. Enter the formula:
    =AND(CELL("row")=ROW(),CELL("col")=COLUMN())
  5. Format → Fill → select a color
  • CELL("row") — gets the row number of the cell under the mouse
  • ROW() — returns the row number of the cell containing the formula
  • CELL("row")=ROW() — the row number of the cell under the mouse equals the row number of the cell with the formula
  • CELL("col") — gets the column number of the cell under the mouse
  • COLUMN() — returns the column number of the cell containing the formula
  • CELL("col")=COLUMN() — the column number of the cell under the mouse equals the column number of the cell with the formula
  • OR(condition1, condition2) — returns TRUE if either condition1 or condition2 is met
  • The formula means that when a cell's row or column number equals the row or column number of the cell clicked with the mouse, the condition is true and the entire row or column of the clicked cell will use the specified fill format.
  • AND(condition1, condition2) — returns TRUE only if both condition1 and condition2 are met
  • This formula means the condition is met when a cell's row and column numbers both equal those of the mouse-clicked cell; the clicked cell will then use the specified fill format.
Click any cell with the mouse, then press F9 — the cell and its row and column will be highlighted.
[Hide] Join our 'Office Suite Real-Time Support' free Facebook group to learn more about Office. View details

Comprehensive Technical Support Solutions

We provide a range of technical support solutions to meet your needs.
Explore our core services:

man and woman wearing headphones while working in the office

Get on-demand assistance with Microsoft Excel, Word and PowerPoint. Send your question via WhatsApp, and we will help you resolve it promptly.

serious diverse students looking at laptop

Join our Online Learning Group Facebook page. Explore more than 200 tutorials and a comprehensive library of instructional videos at your own pace.

woman in yellow blazer doing a presentation

Build your team’s skills with tailored corporate training programmes. Our courses are designed around your organisation’s needs and equip employees with practical, up-to-date tools.