Forum Discussion
MiniWop
Feb 07, 2022Copper Contributor
Creasting a formula in Exce
I want cell G5=G5*F2 unless J5=F5 then G5 should be 0
HansVogelaar
Feb 07, 2022MVP
A formula in G5 cannot refer to G5 itself - that would cause a circular reference.
- MiniWopFeb 07, 2022Copper ContributorSorry, The formula for Cell G5 is: G2*F5
But if J5 is equal to F5 then I want G5 to be 0
Does that make sense now? If so what would that formula be for cell G5?- HansVogelaarFeb 07, 2022MVP
In G5:
=IF(J5=F5,0,G2*F5)
If you use comma as decimal separator, the formula should be
=IF(J5=F5;0;G2*F5)
- MiniWopFeb 07, 2022Copper ContributorThat works,
Thank you