excel - Solve My Circular Reference via Non-Iterative Calculation? -


update - simplified more:

just in case people getting overwhelmed, here's super simple version of problem:

excel screenshot - circular reference problem simplified

please write me formulas columns c, d, , e where:

  • column c
    • if column b 0, if column 1, put 1, else 0.
    • if column b 1, if column 1 , column e 0, put 1, else 0.
  • column d
    • if column c 1, put 1, else 0.
  • column e
    • sum of column d.

but without circular references.

problem:

i have created circular reference on excel sheet, , understand why circular. when go circular reference cell, formulas tab, evaluate formula button, seems evaluate intended. therefore, i'm hoping propose non-iterative calculation solution me.

context:

i trying resolve medical claims rejected being duplicates.

i first check see if claim appears duplicate, then, if no duplicate claims found, check see if rejected claim duplicating against itself.

excel:

excel screenshot - circular reference problem

here see simplified image of 2 claims:

  • column s has criteria claim data (out of screenshot) qualify each claim duplicate.
  • column af, primary cause, checks if column s (and other similar classification columns have hidden purposes of illustration) 1. if yes, says 1, otherwise 0.
  • column ag counts how many 1s there in column af.

right now, changed formula column s, , yields circular reference warning columns s, af, , ag, rows have 0 in column r. formula in column s (using s3 example) is:

=if(and(or($r3=0,$ag3=0),[the other claims data criteria mark row duplicate]),1,0) 

the circular reference occurs when excel calculating row 0 in column r, 0 far in column ag, , 1 in column s (but isn't yet because hasn't been calculated). in case, both $r3=0 , $ag=0 evaluate true in column s formula, once evaluation finishes , column s marked one, column af becomes 1 , column ag becomes 1, , or() in column s goes being (true, true) (true, false). doesn't change net outcome of or(), making excel worried.

restate problem:

given this, , assuming iterative calculation not optimal solution (please let me know if is), how fix issue? have looked through several excel circular reference posts , keep looking.

edit: made correction description of column af , description of why circular reference occurs.

you have liar's paradox in case 4 cells in a2:b3 equal 1. formula have in column c depends on a,b (which same in both rows) sum of column c (which e holds). -- 2 values in column c same according own rules. if value 0, e 0, hence value 1 after all. if value 1, sum 2 (not 1) hence value 0 after all. values in c 0 if , if 1. unless impossible 4 values in a,b 1 @ same time, have inconsistent set of specifications.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -