yellowcedar
New Member
- Joined
- Jan 26, 2024
- Messages
- 6
- Office Version
- 2021
- Platform
- Windows
Currently I am trying to have variable decimal formats displayed across a range of cells. The amount of decimals will depend on how large the numbers are. The numbers range from 100,000.00 to .000000001. I can get this formula to work properly and it displays the decimals as I have anticipated, however when I now try to reference any of these cells elsewhere it always sees the cell as having a value of 1.
I have used the following formula in each cell within my range:
For example if Cell A9 has a value of 100 and cell Q9 has the above formula in it, and I try to do an set B9 to =PRODUCT(A9,Q9) it will return a value of 100 for B9. The value displayed in cell Q9 is 10,000.00 and so the result should be 1,000,000.00 in B9. It seems like it is displaying one value but calculating other formulas using another hidden value.
What am I doing wrong here? and is there a better way for build this formula that would prevent this?
I have used the following formula in each cell within my range:
Excel Formula:
=IF(VLOOKUP(C9, Totals!$A$2:$P$6251, 2, FALSE) >= 100, TEXT(VLOOKUP(C9, Totals!$A$2:$P$6251, 2, FALSE), "###,##.00"),IF(VLOOKUP(C9, Totals!$A$2:$P$6251, 2, FALSE) >= 0.1, TEXT(VLOOKUP(C9, Totals!$A$2:$P$6251, 2, FALSE), "###,##.00000"),IF(VLOOKUP(C9, Totals!$A$2:$P$6251, 2, FALSE) >= 0.0001, TEXT(VLOOKUP(C9, Totals!$A$2:$P$6251, 2, FALSE), "###,##.00000000"),IF(VLOOKUP(C9, Totals!$A$2:$P$6251, 2, FALSE) >= 0.000000000000000001, TEXT(VLOOKUP(C9, Totals!$A$2:$P$6251, 2, FALSE), "###,##.0000000000"),""))))
For example if Cell A9 has a value of 100 and cell Q9 has the above formula in it, and I try to do an set B9 to =PRODUCT(A9,Q9) it will return a value of 100 for B9. The value displayed in cell Q9 is 10,000.00 and so the result should be 1,000,000.00 in B9. It seems like it is displaying one value but calculating other formulas using another hidden value.
What am I doing wrong here? and is there a better way for build this formula that would prevent this?