I have a Job Estimate spreadsheet where the cost of lining several different diameter Pipes are all calculated separately according to their know Length, Labor, Equip and Material costs. These varring work costs are totaled in separate columns.
At times, I have additional work requirements such as precleaning, videoing, traffic control, etc, the cost of which, needs to be distributed to the cost of each Pipe. Currently, to prevent "Circular References," I simple tally the number of columns holding
the different pipe cost totals and divide the cost of the new work by this number which distributes the cost equally to each Pipe.
However, to be more accurate, I am trying to distribute the additional costs relative to the current cost of each pipe. To accomplish this, I add the total of all columns and divide the individual columns by the total number to obtain each one's relative
percentage of the total and place it in a cell at the bottom of each column.
As one of these additional work costs are added, my formula in each column now attempts to apply the current relative percentage to determind the distribution to be added to each pipe balance. To avoid the "Circular Reference" I turned on the formula option:
"Enable iterative Calculation" with Max Iterations: 100, and Max Change: 0.001.
As I applied the formula to each column, all the additional cost numbers changed to the new relative percentages and all worked perfectly and I could vary the numbers and every column would update automatically according to the changes - Just the way I wanted.
The problem occurred when I added a new work Item. All the new formulas turned to: #Value! - I changed the Max Iteration up to the maximum number and incleased the Max Change to 0.0001, but to no avail. Even when I deleted the new charge entry, the formulas
cells remain #Value! - The only way I can effect it is to delete and reenter the formula of each and then the numbers reappear. However when a new item is entered the #Value! returns.
Any ideas on how to prevent this from happening? or any Ideas on accomplishing the Relative Distribution another way?