Understanding a formula with a circular reference

gruntingmonkey

Active Member
Joined
Mar 6, 2008
Messages
434
Office Version
  1. 365
Platform
  1. Windows
Hello again,

I have a formula as below that works out the difference between two scores (1 to 5) which are placed between columns F & O. F being year 2017, g being 2018 etc.

It selects the last two columns and returns an icon of green arrow up, yellow stays the same and red down.

=IF(INDIRECT(SUBSTITUTE(ADDRESS(1,COUNTA(F46:O46)+5,4),"1","")&ROW())>INDIRECT(SUBSTITUTE(ADDRESS(1,COUNTA(F46:O46)+4,4),"1","")&ROW()),100, IF(INDIRECT(SUBSTITUTE(ADDRESS(1,COUNTA(F46:O46)+5,4),"1","")&ROW())=INDIRECT(SUBSTITUTE(ADDRESS(1,COUNTA(F46:O46)+4,4),"1","")&ROW()),50, 0))

I keep getting a circular cell calc error but cant work out where it is. Does anyone have any ideas?
 
Not sure if this helps, but the formula should be

Minimum
=IF(G46>F46,100, IF(G46=F46,50, 0))

Maximum
=IF(O46>N46,100, IF(O46=N46,50, 0))

The count bit just sees how many cells has been filled in the row and uses the last two figures.
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
So I did the following and I no longer get the message

Excel Options > Formulas, tick Enable iterative calculation
 
Upvote 0
soooo, I did the Math

=IF(INDIRECT(SUBSTITUTE(ADDRESS(1,COUNTA(H9:O9)+7,4),"1","")&ROW())>INDIRECT(SUBSTITUTE(ADDRESS(1,COUNTA(H9:O9)+6,4),"1","")&ROW()),100, IF(INDIRECT(SUBSTITUTE(ADDRESS(1,COUNTA(H9:O9)+7,4),"1","")&ROW())=INDIRECT(SUBSTITUTE(ADDRESS(1,COUNTA(H9:O9)+6,4),"1","")&ROW()),50, 0))

I decreased the CountA possibility and increased the minimum value to 7 meaning that it will never fall on E (5).
 
Upvote 0

Forum statistics

Threads
1,215,391
Messages
6,124,678
Members
449,179
Latest member
fcarfagna

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