Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8172777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:53:35+00:00 2026-06-06T21:53:35+00:00

In Excel it’s possible to locate formulas that have references to empty cells. For

  • 0

In Excel it’s possible to locate formulas that have references to empty cells.

For example

A1 = 1

B1 = Empty

C1 = .5

D1 = A1 + B1 + C1

D1 will correctly calculate the value to be 1.5
However, error checking will identify that there is an error in the formula D1 and it can draw an arrow to this cell.

I need to alert the user if they have a reference to an empty cell.

When I try to record myself using the feature I get this

With Application.ErrorCheckingOptions
    .EvaluateToError = False
    .TextDate = False
    .NumberAsText = False
    .InconsistentFormula = False
    .OmittedCells = False
    .UnlockedFormulaCells = False
    .ListDataValidation = False
    .InconsistentTableFormula = False
End With

ActiveSheet.ClearArrows

The options for only checking for empty cells are setup correctly but the actual execution of the “Trace” function is completely ignored. Is there any way to cause this to happen automatically and then check the result of the test?

The function is “Formulas Tab” “Error Checking” “Formulas referring to empty cells” “Trace Empty Cell”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:53:36+00:00Added an answer on June 6, 2026 at 9:53 pm

    Here is a VBA method to check Formulas referring to empty cells. This will not only tell you which formula it is but also which cell is empty.

    To test this, in Sheet1, Cell A1 put this formula

    =F1+G1+H1
    

    Keep H1 Empty and fill F1 and G1

    In Cell A5, put this formula

    =A1*D5
    

    Keep the Cell D5 empty.

    Now paste this code in a module.

    Option Explicit
    
    Sub Sample()
        Dim ws As Worksheet
        Dim RngFormulas As Range, fCell As Range, _
        DPrcd As Range, aCell As Range
    
        Set ws = Sheets("Sheet1")
    
        With ws
            On Error Resume Next
            Set RngFormulas = .Cells.SpecialCells(xlCellTypeFormulas)
            On Error GoTo 0
    
            If Not RngFormulas Is Nothing Then
                For Each fCell In RngFormulas
                    On Error Resume Next
                    Set DPrcd = fCell.DirectPrecedents
                    On Error GoTo 0
                    If Not DPrcd Is Nothing Then
                        For Each aCell In DPrcd
                            If IsEmpty(aCell.Value) Then
                                Debug.Print aCell.Address & " in " & _
                                fCell.Formula & " is empty"
                            End If
                        Next
                    End If
                Next
            End If
        End With
    End Sub
    

    When you run the macro, you will see the output in the immediate window.

    SNAPSHOT

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Excel we have the VLOOKUP function that looks for a value in a
Excel 2003 Question: I'd like to have one cell represent a range of cells.
Excel has a lookup function that finds a specified value in a row or
In Excel Formulas there are so many different functions, that I am not sure
Excel 2002 VBA. I have a macro that launches an external script whenever a
Excel 2007 I have a row of cells with variation of numbers and letters
Using Excel 2002 and have a VBA app that has some UserForms. The main
Excel-VBA 2007 appears to have a 64k limit on the size of arrays passed
When Excel determines the axis values it will use to represent your data in
In Excel I have attached a picture to a cell using the following Sub

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.