Hi guys please ,
I would like some help
if cell A1 = 0 and A2= 0 and I want to divide A1/A2 it gives me #DIV/0!
I fact what I want is say , if either A1 or A2= 0 then show me nothing otherwise do the division A1/A2
THANKS
Hi guys please ,
I would like some help
if cell A1 = 0 and A2= 0 and I want to divide A1/A2 it gives me #DIV/0!
I fact what I want is say , if either A1 or A2= 0 then show me nothing otherwise do the division A1/A2
THANKS
Kind regardsPlease Login or Register to view this content.
Leo
try
IF(OR(A1=0,A2=0),"",A1/A2)
OR
IFERROR(A1/A2,"")
Wayne
if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here
If you have a solution to your thread - Please mark your thread solved do the following: >
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
IFERROR is the option I would use, as suggested by Wayne
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks