ElisabethC
New Member
- Joined
- Mar 14, 2017
- Messages
- 4
Hi,
I would like to compare column A and column B and calculate how much % B is of A.
So I added column C with formula "=B/A"
However some of the values in A and B are 0, which result in a statement "Not a number" in column C.
Unfortunately pivot tables can't handle this as a value.
So I tried to add column D that would copy C's value and would set 0 instead of "Not a number".
I used this formula, but it seems to be incorrect:
=IF([column C]="NaN (Not a number)";"0";"column C]")
Can anybody help with the formula? Or maybe I don't need column D and solve my base problem in another way?
Thanks!
I would like to compare column A and column B and calculate how much % B is of A.
So I added column C with formula "=B/A"
However some of the values in A and B are 0, which result in a statement "Not a number" in column C.
Unfortunately pivot tables can't handle this as a value.
So I tried to add column D that would copy C's value and would set 0 instead of "Not a number".
I used this formula, but it seems to be incorrect:
=IF([column C]="NaN (Not a number)";"0";"column C]")
Can anybody help with the formula? Or maybe I don't need column D and solve my base problem in another way?
Thanks!