Ancient Wolf
Board Regular
- Joined
- Mar 17, 2009
- Messages
- 89
I really need some help on this one.
I'm working on a sheet that pulls up product numbers through a series of questions, and places the numbers in specific cells such as C170, and C171. It then uses the numbers in C170 and C171 to pull up the price of those products and place them in E170 and E171. Now, if a customer is going to have more than one product, they will get a special price on the second item depending upon which one costs less. So I then needed a formula, which I placed in G170, that would compare the prices. I created one that will determine which price was lower and then return a single letter in response for now. X if E170 > E171, Y if E170 < E171, and Z if E170 = E171. I then need my original formulas in C170 and C171 to look at G170 and determine which one if either should return the special product number 798. That is where the circular reference error comes in.
Does anyone know how I can fixe the error and still have it do as I described?
Here are the formulas I am using. I can't place the whole formulas that are in C170 and C171 because they are far too long.
C170: IF(G170="y","798"
C171: IF(OR(K171="x",K171="z"),"798",
E170 and E171: =IF(ISERROR(INDEX(Tables!BB2:BF185,MATCH(B171,Tables!BB2:BB185,0),K5)),0,INDEX(Tables!BB2:BF185,MATCH(B171,Tables!BB2:BB185,0),K5))
G170: =IF(AND(E170>E171,E171<>0),"x",IF(AND(E170<E171,E170<>0),"y",IF(AND(E170=E171,E170<>0,E171<>0),"z","")))
I'm working on a sheet that pulls up product numbers through a series of questions, and places the numbers in specific cells such as C170, and C171. It then uses the numbers in C170 and C171 to pull up the price of those products and place them in E170 and E171. Now, if a customer is going to have more than one product, they will get a special price on the second item depending upon which one costs less. So I then needed a formula, which I placed in G170, that would compare the prices. I created one that will determine which price was lower and then return a single letter in response for now. X if E170 > E171, Y if E170 < E171, and Z if E170 = E171. I then need my original formulas in C170 and C171 to look at G170 and determine which one if either should return the special product number 798. That is where the circular reference error comes in.
Does anyone know how I can fixe the error and still have it do as I described?
Here are the formulas I am using. I can't place the whole formulas that are in C170 and C171 because they are far too long.
C170: IF(G170="y","798"
C171: IF(OR(K171="x",K171="z"),"798",
E170 and E171: =IF(ISERROR(INDEX(Tables!BB2:BF185,MATCH(B171,Tables!BB2:BB185,0),K5)),0,INDEX(Tables!BB2:BF185,MATCH(B171,Tables!BB2:BB185,0),K5))
G170: =IF(AND(E170>E171,E171<>0),"x",IF(AND(E170<E171,E170<>0),"y",IF(AND(E170=E171,E170<>0,E171<>0),"z","")))