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 8040077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:46:42+00:00 2026-06-05T03:46:42+00:00

I have a weird issue with Excel calculation order – dependent cell gets calculated

  • 0

I have a weird issue with Excel calculation order – dependent cell gets calculated before preceding cell with empty parameter value when setting range dirty. Is there any way to detect those “fake” calls? It is critical for me as I run some clever business logic in real world application and those “fake” calls break all logic. In addition those “fake” calls if registered with RTD don’t bind it to the topic properly and thus don’t notify topic disconnect.

Excel 2010/32bit latest all.

To illustrate problem I have created simple function:

Function Fnc(param2 As String) As String
    Fnc = Application.ThisCell.Address
    Debug.Print (Application.ThisCell.Address & " - " & param2)
End Function

And procedure:

Sub SetDirty()
    Range("B1:C1").Dirty
End Sub

And simple sheet:

$A$1 =fnc(A1) =fnc(B1)

into cells A1, B1, C1.

And result obviously:

$A$1 $B$1 $C$1

If I recalculate (CTRL+Alt+Shift+F9) I get, as expected:

$B$1 – $A$1

$C$1 – $B$1

But, here goes the fun part. If I run SetDirty:

$C$1 – <—- Where does this come from?

$B$1 – $A$1

$C$1 – $B$1

Thanks for any input. I would prefer a solution which solves this issue, not a workaround as it is already part of bunch of workarounds.

  • 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-05T03:46:43+00:00Added an answer on June 5, 2026 at 3:46 am

    Cells often get recalculated more than once: Excel starts with a recalculation sequence which is the previous calculation sequence plus LIFO (last in first out) for all modified cells.
    This causes functions to be called and given uncalculated cells – the functions get called again later.
    You can detect uncalculated cells in your UDF using IsEmpty
    See http://www.decisionmodels.com/calcsecretsj.htm for details on UDFs and detecting uncalculated cells
    and http://www.decisionmodels.com/calcsecretsc.htm for details of Excel’s calculation sequence.

    BTW be careful with Range.Dirty – its a bit buggy

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

Sidebar

Related Questions

I have this weird issue in Magento when someone places an order using PayPal
I have a weird issue... I'm unable to find the simulator as a device
I have a weird issue. Here is the setup: I have a NSOperationQueue which
I have a weird issue with printing data out. I use printf to print
I have a weird issue. I have some icons that are being built based
I'm have a weird issue here. I have a UITableView using custom UITableViewCells. Everything
I am creating a store in Magento and have a weird issue with IE6
I have this very weird issue that I cant really get why it's not
Im have a really weird issue, my assets served really slow in development(10 sec
I have got one weird issue. I am working on an asp .net mvc

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.