Circular Reference/Iterative Problem

InOverMyH3ad

New Member
Joined
Sep 17, 2018
Messages
8
I am killing myself trying to solve a problem of pennies!


Source 1 is a pricing sheet that has a total at the bottom. We frequently use goal seek to adjust margin to get a desired number.

Accounting 2 is a sheet for accounting that takes numbers from Source 1 and regroups them. The numbers from Accounting 2 should match the total to Source 1.

There is a simple check on sheet two that says Source 1 total price - Accounting 2 total price and has conditional formatting if it doesn't =0

Due to rounding on Accounting 2, I'm running in to scenarios where I can be .01 off. I would like to take whatever the resulting difference is in my check and add it to one of my groups on the Account 2 sheet to make the difference 0. The problem is this creates a circular reference. I started looking in to iterative functionality but the problem is when I perform goal seek on the source sheet, the difference is stored every iteration goal seek does until it reaches the goal number; I just need it to be done at the very end.

Is this possible?
 

Some videos you may like

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
1,830
Office Version
  1. 365
Platform
  1. Windows
If you're willing to accept the .01 difference, why not test for that. IF(ABS(A1-A2)<.02,"OK","Not OK")

My experience with rounding is problematic. I tend to use number formatting to display the rounding during the process. It isn't until I get the final result do I actually round the value to a certain decimal place. You may want to do that so that until your balance test is complete and then round the value.

Jeff
 

Watch MrExcel Video

Forum statistics

Threads
1,122,228
Messages
5,594,939
Members
413,953
Latest member
Arthur1471

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
Top