Circular Reference situation

smcghee

New Member
Joined
Sep 6, 2012
Messages
7
All,

I need severe help with completing this issue. I am trying to do a weird calculation that should work but I keep getting a circular referece error and I do not know why.

For example I have several columns from a - p and they contain data regarding testing. the first 5 columns require entry from the user, the next colum takes the previous column and calculates the average based on the previous row(s) and the current row. The next column does the percent of the average versus the input. I also added in an extra column (q) to see if the percentage is over 70% (this was done with an if statement).

So what I would like to do is create a running average if in another column but I keep getting a circular reference number. I have an overall sum that calculates the average based on whether or not it is over 70% and is on going but I need to apply that same rule to the entered values on that row. I keep getting a circular reference each time I try and apply the calculation. My guess is that I do not have predetermined values and it causes the error.

I was wondering if someone has a way around this. I included an example of the data. Let me know if you need further explanation.

DateQC# /Lims #Control LotTest LotCtrl Cell Density (10e5)Ave. to date (10e5)Current Control/ Ave.Control IgG 1 (ug/mL)Ave. to date (ug/mL)Current Control/ Ave.Control IgG 2 (ug/mL)Ave. to date (ug/mL)Current Control/ Ave.Ctrl Cell Viability %Ave. to date Current Control/ Ave.Cell Density Greater Than Average
16-Feb-998985T13803T1601217.1017.10100.0%75.40N/AN/A103.90N/AN/A yes
8-Jun-999364T16012U1670212.8014.9585.6%74.3774.8999%151.98127.94119% yes

<COLGROUP><COL style="WIDTH: 51pt; mso-width-source: userset; mso-width-alt: 2486" width=68><COL style="WIDTH: 64pt; mso-width-source: userset; mso-width-alt: 3108" width=85><COL style="WIDTH: 61pt; mso-width-source: userset; mso-width-alt: 2962" width=81><COL style="WIDTH: 47pt; mso-width-source: userset; mso-width-alt: 2267" width=62><COL style="WIDTH: 75pt; mso-width-source: userset; mso-width-alt: 3657" width=100><COL style="WIDTH: 63pt; mso-width-source: userset; mso-width-alt: 3072" width=84><COL style="WIDTH: 69pt; mso-width-source: userset; mso-width-alt: 3364" width=92><COL style="WIDTH: 70pt; mso-width-source: userset; mso-width-alt: 3401" width=93><COL style="WIDTH: 63pt; mso-width-source: userset; mso-width-alt: 3072" width=84><COL style="WIDTH: 69pt; mso-width-source: userset; mso-width-alt: 3364" width=92><COL style="WIDTH: 62pt; mso-width-source: userset; mso-width-alt: 3035" width=83><COL style="WIDTH: 63pt; mso-width-source: userset; mso-width-alt: 3072" width=84><COL style="WIDTH: 69pt; mso-width-source: userset; mso-width-alt: 3364" width=92><COL style="WIDTH: 48pt" width=64><COL style="WIDTH: 77pt; mso-width-source: userset; mso-width-alt: 3730" width=102><COL style="WIDTH: 82pt; mso-width-source: userset; mso-width-alt: 3986" width=109><COL style="WIDTH: 98pt; mso-width-source: userset; mso-width-alt: 4790" width=131><TBODY>
</TBODY>

<TBODY>
</TBODY>
 
In 2010 go to File/Options/Formulas --upper right side is a checkbox for "Enable iterative calculation"
In early versions of excel its under Tools/Options/Calculation

Only do this if this was intended as an iterative calculation. This does not solve the problem other than covering it up if there really is just a formula error somewhere.
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I know...I said the same thing several times while creating the spreadsheet. The CR is applied because of how the AIF is being applied. Because the AIF is included in the range of values the CR is implied. For example for one line out of the spread sheet; If I tell the calculated values to get something that has yet been defined or is based on a value from that line, I get a CR. Not certain why because the values are defined based on the entry and for some reason a CR is applied each time. Maybe its because I am using Excel 2007.

Maybe it's just me but I can't figure out what your problem is at its root. Your AverageIF looks fine to me to set up a running AverageIf and when I post that formula into a new sheet I don't get a CR. Can you post your AverageIf as it appears in your expression (ie including the Sheet references) and tell me cell(s) the AverageIf is in (you state that it is on another sheet).

Cheers, :)
 
Upvote 0
Maybe it's just me but I can't figure out what your problem is at its root. Your AverageIF looks fine to me to set up a running AverageIf and when I post that formula into a new sheet I don't get a CR. Can you post your AverageIf as it appears in your expression (ie including the Sheet references) and tell me cell(s) the AverageIf is in (you state that it is on another sheet).

Cheers, :)

shawnhet,

Try to place the AIF within cell F, if I am not mistaken. The running AIF that I have seperate from the data works perfectly but I need that number to also display within the F cell. So when I place an AverageIf within the F cell, I receive a CR.

So again just in case. In cell E data is entered from the user, Cell F calculates the Average based off of the entry and the previous running Average. The problem I have is that the Average should be an AIF because if the data entered is below 70% (based on Cell G which is implied from the entry Cell E and the running Average in Cell F) it would exclude it from the calculation. The running Average can not do this but the seperate AIF that I have applied does. So this means I would need to include a running AIF but when I do I receive a CR from the data.
 
Upvote 0

smghee,

I still don't follow what you are saying exactly, can you try and post the expression you are *trying* to execute that gives you the CR? Trying to guess exactly what is causing you the problem is pretty difficult.

Cheers, :)
 
Upvote 0

Forum statistics

Threads
1,216,091
Messages
6,128,775
Members
449,468
Latest member
AGreen17

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