Iterative Calculation #VALUE Error

jewkes6000

Board Regular
Joined
Mar 25, 2020
Messages
60
Office Version
  1. 365
Platform
  1. Windows
I have created a spreadsheet which purposely has a circular reference. To avoid issues, I turned on the "iterative calculation" function in the Excel options. I've included the file to download below. The formula giving the error happens in Column AA, Column AG and Column AM and goes all the way down starting at row 29. I have it set up so that if I change the value in the UoM column (two columns to the left; so in column AG, that would be column AE) to TCC or TC or TFC, then the formula calculates a percentage on the overall cost. This cost is part of the overall cost which is why it's a circular reference.

ANYWAYS, how I have it set up does in fact work. You can see in the Phase 1 and Phase 3 groupings in my spreadsheet, they currently work. BUT every so often (at least once a day or more), all of the rows which I've set to TCC, TC or TFC in the UoM column suddenly start giving the #VALUE error. I can fix the problem by changing all of the UoM values back to LS which then makes the error go away, and then simply change them back to the necessary units (TCCC, TC or TFC). The problem is that sometimes I have 10 to 15 rows which I have to do this with and it's cumbersome.

In the attached file, you will see that the Phase 2 grouping is currently giving an error. Yes, you can fix it by doing the above, but I am looking more for a permanent fix to stop this from happening at all.

This one has been driving me crazy and I can't find a fix! Any help is very much appreciated.

 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
It would be better if you posted a condensed sample (10-20 rows with only the columns relevant to the question) directly to the forum using XL2BB (link in my signature below). Many members are not able to download linked files due to security restrictions.

The #VALUE! error usually occurs when you attempt to perform a mathematical operation on a text string, the simplest example would be =A1+B1 where either of those cells contains a formula that uses "" to return a blank.
 
Upvote 0
@jasonb75 - I tried downloading the XL2BB and everything seemed to work until I went to "turn on" the add-in. The box is checked; however, the add-in doesn't appear in my ribbon.

So I did what you said and condensed the spreadsheet, but I simply uploaded to my Google drive account and you can download it below.

 
Upvote 0
The box is checked; however, the add-in doesn't appear in my ribbon.
Have you unblocked the add-in?
  • Find the Add-In file in Windows File Explorer
  • Right click - Properties
  • On the 'General' tab, is there an 'Unblock' box at the bottom?
  • If so, tick that box then click OK
 
Upvote 0
@Fluff - That did it. It worked

@jasonb75 - Here is what I got from the XL2BB

Qty UoM Unit Cost Total ($$$) Cost per A1 GSF Qty UoM Unit Cost Total ($$$) Cost per A2 GSF Qty UoM Unit Cost Total ($$$) Cost per A3 GSF
LS 280,000.00280,00024.03 LS 420,000.00420,00020.95 LS 200,000.00200,00099.90
TCC 0.50%8760.08 TCC 0.50%#VALUE!#VALUE! TCC 0.50%220.01
LS LS LS
8760.08#VALUE!#VALUE!220.01
LS LS LS
280,87624.11#VALUE!#VALUE!200,02299.91
TCC 4.50%7,8880.68 TCC 4.50%#VALUE!#VALUE! TCC 4.50%1950.10
TCC 5.00%8,7640.75 TCC 5.00%#VALUE!#VALUE! TCC 5.00%2170.11
LS 2,500.002,5000.21 LS 2,500.002,5000.12 LS 2,500.002,5001.25
TCC 4.00%7,0110.60 TCC 4.00%#VALUE!#VALUE! TCC 4.00%1740.09
11,651 GSF 0.505,8260.5020,049 GSF 0.5010,0250.502,002 GSF 0.501,0010.50
LS LS LS
TCC 1.30%2,2790.20 TCC 1.30%#VALUE!#VALUE! TCC 1.30%560.03
TCC 1.50%2,6290.23 TCC 1.50%#VALUE!#VALUE! TCC 1.50%650.03
TCC 3.00%5,2580.45 TCC 3.00%#VALUE!#VALUE! TCC 3.00%1300.07
10,1660.87#VALUE!#VALUE!2520.13
TCC 3.80%6,6610.57 TCC TCC
3,328 SF 38.00126,46410.85 SF SF
133,12511.43----
175,27915.04#VALUE!#VALUE!4,3382.17
175,27915.04#VALUE!#VALUE!4,3382.17
175,27915.04#VALUE!#VALUE!4,3382.17
Qty UoM Unit Cost Total ($$$) Cost per A1 GSF Qty UoM Unit Cost Total ($$$) Cost per A2 GSF Qty UoM Unit Cost Total ($$$) Cost per A3 GSF
280,87624.11#VALUE!#VALUE!200,02299.91
175,27915.04#VALUE!#VALUE!4,3382.17
456,15539.15#VALUE!#VALUE!204,360102.08
456,15539.15#VALUE!#VALUE!204,360102.08
456,15539.15#VALUE!#VALUE!204,360102.08
 
Upvote 0
I couldn't find anything from that but I was able to download your attachment on a different computer with more flexible security settings.

I've looked over the formulas and can see nothing standing out as a definite cause. Tracing the precedent cells of the first error in the sheet, I found that there are various SUBTOTAL formulas also with errors that appear to be forming part of the circuit.

I've tried changing SUBTOTAL to AGGREGATE and that has cleared the errors, although whether that is a permanent solution or a fix that will revert back to errors later remains to be seen.

As you have a lot of SUBTOTAL formulas in the sheet, the quick way that I used was find and replace.

First of all, make sure that the sheet is not protected and that only a single cell in the sheet is selected.

Press Ctrl h to bring up the find and replace window.
In the Find what: box, enter SUBTOTAL(9
In the Replace with: box, enter AGGREGATE(9,2
Make sure that the 'Match case' and 'Match entire cell contents' boxes are not checked (click on the Options>> button in the bottom right corner of the pop up box if these are not visible).
Click Replace all.

A message box should inform you how many have been replaced, then the sheet should recalculate.

AGGREGATE(9 and SUBTOTAL(9 are effectively the same, the additional option 2 with AGGREGATE tells the formula to ignore errors as well which, depending on the origin, may possibly prevent them from occurring to begin with.
 
Upvote 0
Solution
@jasonb75 - I'm still in the early phases of testing, but so far, the Aggregate formula is not producing errors. I'll keep my fingers crossed. Thank you again!
 
Upvote 0
Almost a month into it and still no errors with the Aggregate formula. Seems to be a workable solution. Thank you again!
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

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