Hello Shaherukh,
Let's say you have below values;
A1 = 1, B1 = 2
Then in C1 : =A1/B1 = 50%
A2 = 1, B2 = 0
C2: =A2/B2 =#DIV/0!
The error because you are dividing a value by zero. If this is your issue; you can use IFERROR
=IFERROR(A1/B1,0)
So this way will display zero instead of error
or if you have a total cell at bottom ie: A10 then you are using cell value/Total
=A1/A10
You have to use absolute reference to A10. otherwise when copy down A10 will be, A11, A12, A13....
So you have use A1/A$10 (a $ sign require here to stop changing the reference)
Hello Shaherukh,
Let's say you have below values;
A1 = 1, B1 = 2
Then in C1 : =A1/B1 = 50%
A2 = 1, B2 = 0
C2: =A2/B2 =#DIV/0!
The error because you are dividing a value by zero. If this is your issue; you can use IFERROR
=IFERROR(A1/B1,0)
So this way will display zero instead of error
or if you have a total cell at bottom ie: A10 then you are using cell value/Total
=A1/A10
You have to use absolute reference to A10. otherwise when copy down A10 will be, A11, A12, A13....
So you have use A1/A$10 (a $ sign require here to stop changing the reference)