Calculating causes formula results to disappear from all sheets

Gregory123987

New Member
Joined
Jun 23, 2020
Messages
33
Office Version
  1. 2016
Platform
  1. Windows
When I save the workbook excel triggers a calculation of the workbook. I have no problem with this and I can always turn it off.

When I go to each sheet and calculate the sheet the results remain visible on each sheet.
When a calculation is done on this workbook, the formula results disappear from each sheet. Specifically, the formulas are still there but the calculated results are not even after the calculation is complete. Is there some reason this happens, and can it be prevented?

Edit: Additional information: 200,000+ formulas on 12 tabs.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hard to trouble shoot without access to the workbook.
Is the workbook an xlsx file
OR xlsm / xlsb
If the latter do you have macros in the workbook and are any of them workbook events ?

Have you used VBA and know how to use the immediate window ?
If yes, then when you do a full calculate and the results don't show, what happens if you go to the immediate window and type or copy paste in the below and then hit enter ?
Application.Screenupdating = TRUE
Does anything change ?
 
Upvote 0
Hard to trouble shoot without access to the workbook.
Is the workbook an xlsx file
OR xlsm / xlsb
If the latter do you have macros in the workbook and are any of them workbook events ?

Have you used VBA and know how to use the immediate window ?
If yes, then when you do a full calculate and the results don't show, what happens if you go to the immediate window and type or copy paste in the below and then hit enter ?
Application.Screenupdating = TRUE
Does anything change ?

It is an xlsm file.
There are no workbook events. All UDFs are in Module1.

I entered the command both before and after calculating and nothing happens.

FYI, I use the buttons on the formulas tab Calculate Now and also Calculate Sheet. When I click Calculate Sheet for each worksheet "Jan" through "Dec" and all the sheets work and display as they should.

I can send you the workbook itself if you provide me a way to do it.
 
Upvote 0
If it makes a difference, I have multiple formulas, UDF to check the color in ranges, standard formulas, and complex conditional formulas as well.
 
Upvote 0
Edit: Additional information: 200,000+ formulas on 12 tabs.
When I see something like this, the first thing that pops in my head is "you may be using the wrong tool for the job".
Are a lot of your formulas VLOOKUP or INDEX/MATCH equations, linking data across worksheets?

If so, what you may really have is a Relational Database, in which case using a Relational Database program like Microsoft Access or SQL is much more efficient, as that is that those programs were designed for.

Note that Excel does have a limit regarding how many formula dependencies it can track (I think it is something like 1 million dependencies). After that, it takes a toll on performance, where any time any update is made, it recalculates everything (which is very SLOW). I am guessing maybe that is why you are messing with the Calculation settings. I don't know if this also has anything to do with the weird behavior you are seeing. But if I were you, I would probably strongly consider using another program for this project.
 
Upvote 0
When I see something like this, the first thing that pops in my head is "you may be using the wrong tool for the job".
Are a lot of your formulas VLOOKUP or INDEX/MATCH equations, linking data across worksheets?

Not a true database format. There are none of the db formulas. However, the data does link to the next tab, i.e., each month links to the next month.


If so, what you may really have is a Relational Database, in which case using a Relational Database program like Microsoft Access or SQL is much more efficient, as that is that those programs were designed for.

Note that Excel does have a limit regarding how many formula dependencies it can track (I think it is something like 1 million dependencies). After that, it takes a toll on performance, where any time any update is made, it recalculates everything (which is very SLOW). I am guessing maybe that is why you are messing with the Calculation settings. I don't know if this also has anything to do with the weird behavior you are seeing. But if I were you, I would probably strongly consider using another program for this project.
Not a true database. I have already suggested converting to a database application as their needs / wants are changing / increasing.

I intend to instruct the user to operate in manual mode for entering data, then switching to automatic mode for calculating, and to calculate the worksheets sequentially.

Below is a sample of the worksheet with 5 rows of data, which includes a sample of all the formulas. There are a total of 500 rows for data for each worksheet. The attached image show the Workbook Statistics for the worksheet "Dec". The sheet stats can be considered average for each sheet.

S2F Data Laps 20210922 Demo.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZ
9
10December 2021
11Member DataPrior Month TotalsTotalsTotals# Participants per Day Totals
12000018491235000018491235000000000000000000000000000000
13ACTIVE This MonthNew Member This MonthNameDOB Used for Statistical ReportingEthnicity Used for Statistical ReportingPRIOR MonthThis MonthYEAR TO DATEOther Earned LapsLAPS RUN
14WTHFSMTWTHFSMTWTHFSMTWTHFSMTWTHFPreviewIncentives 'earned' this monthIncentives Total of Previous month (YTD) Link to Prev Month TotalDetermines Incentives earned this Month ONLY IF Previous Month YTD is 0YTD Total of Previous and Current Month (max of 1) for link to next month
16FirstLastTotal LapsTotal MilesTotal # DaysConsecutive DaysTotal Miles YTDTotal Days YTDTotal Laps RunTotal Miles Run# of DaysConsecutive DaysTotal MilesTotal DaysRaces (Laps)Volunteer (hours)Yoga (laps)Sundays
17123467891011131415161718#21########31
18
19 YSeanRankin2/10/1980W000011700001170000110000001100
20 YJesseHighum3/5/1986W00005534000055340000111100001111
21 YAnalisaBocanegra2/16/2000H00002420000024200000111100001111
22 YRubenGaytan2/1/1983H00005236000052360000111100001111
23 YAndresDeleon12/17/1983H00009564000095640000111100001111
Dec
Cell Formulas
RangeFormula
G12:U12G12=SUM(G19:G518)
AA12:BA12AA12=COUNT(AA19:AA518)
S16:U16S16=Nov!S16
A19:A23A19=IF(SUM(H19,AA19:BA19)>0,"Y","")
B19:B23B19=IF(C19<>"","Y","")
C19:F23C19=IF(Nov!C19<>"",Nov!C19,"")
G19:L23G19=Nov!M19
M19:M23M19=SUM($AA19:$BA19)
N19N19=$M19*0.6213
O19O19=COUNT($AA19:$BA19)
P19:P23P19=IF(M19<>0,($BA$15-(MAX(($AA19:$BA19="")*($AA$15:$BA$15)))),0)
Q19:Q23Q19=+N19+K19
R19:R23R19=SUM(L19+O19)
N20:N23N20=M20*0.6213
O20:O23O20=COUNT(AA20:BA20)
BH19:BH23BH19=DFColor($AA19:$BA19,255)
BI19:BI23BI19=DFColor($AA19:$BA19,65535)
BJ19:BJ23BJ19=DFColor($AA19:$BA19,49407)
BK19:BK23BK19=DFColor($AA19:$BA19,15773696)
BM19:BP23BM19=Nov!BV19
BR19:BU23BR19=IF(BM19=0,IF(BH19>0,1,0),0)
BW19:BZ23BW19=IF(BM19+BR19>0,1,0)
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
BR19:BU518Cell Value>0textNO
BH19:BQ518,BV19:BZ518Cell Value>0textNO
BF19:BF518Expression=BZ19>0textNO
BE19:BE518Expression=BY19>0textNO
BD19:BD518Expression=BX19>0textNO
BC19:BC518Expression=BW19>0textNO
BF17Cellcontains a blank value textNO
BE17Cellcontains a blank value textNO
BD17Cellcontains a blank value textNO
BC17Cellcontains a blank value textNO
BZ17Cellcontains a blank value textNO
BY17Cellcontains a blank value textNO
BX17Cellcontains a blank value textNO
BW17Cellcontains a blank value textNO
BU17Cellcontains a blank value textNO
BT17Cellcontains a blank value textNO
BS17Cellcontains a blank value textNO
BR17Cellcontains a blank value textNO
BP17Cellcontains a blank value textNO
BO17Cellcontains a blank value textNO
BN17Cellcontains a blank value textNO
BM17Cellcontains a blank value textNO
BK17Cellcontains a blank value textNO
BJ17Cellcontains a blank value textNO
BI17Cellcontains a blank value textNO
BH17Cellcontains a blank value textNO
C19:D518Expression=ISFORMULA(C19)textNO
M19:M102Cell Value>=50textNO
AA19:BA518Expression=IF(AA19="","",IF(COUNTBLANK($AA19:AA19),IF(COUNT(OFFSET(AA19,,,,MATCH(2,1/($AA19:AA19=""))-COLUMNS($AA19:AA19)))>$J19+COUNT(OFFSET($AA19,,,,MATCH(TRUE,$AA19:AA19="",0))),COUNT(OFFSET(AA19,,,,MATCH(2,1/($AA19:AA19=""))-COLUMNS($AA19:AA19))),""),MOD(IF($J19<10,$J19)+COUNT($AA19:AA19)-1,IF(COLUMNS($AA19:AA19)<10,10,1E+100))+1))=10textNO
AA19:BA518Expression=IF(AA19="","",IF(COUNTBLANK($AA19:AA19),IF(COUNT(OFFSET(AA19,,,,MATCH(2,1/($AA19:AA19=""))-COLUMNS($AA19:AA19)))>$J19+COUNT(OFFSET($AA19,,,,MATCH(TRUE,$AA19:AA19="",0))),COUNT(OFFSET(AA19,,,,MATCH(2,1/($AA19:AA19=""))-COLUMNS($AA19:AA19))),""),MOD(IF($J19<10,$J19)+COUNT($AA19:AA19)-1,IF(COLUMNS($AA19:AA19)<10,10,1E+100))+1))=5textNO
AA19:BA518Expression=IF(AA19="","",IF(COUNTBLANK($AA19:AA19),IF(COUNT(OFFSET(AA19,,,,MATCH(2,1/($AA19:AA19=""))-COLUMNS($AA19:AA19)))>$J19+COUNT(OFFSET($AA19,,,,MATCH(TRUE,$AA19:AA19="",0))),COUNT(OFFSET(AA19,,,,MATCH(2,1/($AA19:AA19=""))-COLUMNS($AA19:AA19))),""),MOD(IF($J19<10,$J19)+COUNT($AA19:AA19)-1,IF(COLUMNS($AA19:AA19)<10,10,1E+100))+1))=3textNO
AA19:BA518Expression=AND(AA19<>"",($J19+COUNT(AA19:$AA19))=1)textNO
 

Attachments

  • Capture.JPG
    Capture.JPG
    21.3 KB · Views: 16
Upvote 0
Just for interest, what happens if you make a copy of the workbook and clear all the conditional formatting ?
Does the problem go away ?
 
Upvote 0
Just for interest, what happens if you make a copy of the workbook and clear all the conditional formatting ?
Does the problem go away ?
Most of the formulas rely on the conditional formatting. clearing all of them would be pointless. If you want, I can email you the workbook and you can try it.
 
Upvote 0
That certainly looks like a relational database to me, especially when you talk about data for different months.
If you find that most of these sheets are similar, and just "copies" of one another (i.e. for each month), you are probably actually dealing with a database structure.
 
Upvote 0
That certainly looks like a relational database to me, especially when you talk about data for different months.
If you find that most of these sheets are similar, and just "copies" of one another (i.e. for each month), you are probably actually dealing with a database structure.
Only forwarding client names / DOB / Ethnicity and accumulated totals to the next sheet. I have recommended to the client to convert to a relational database application.
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,139
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top