Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello this is my original formula =(A1-B1)/A1. This is Ok except that
sometimes I get #DIV/0!. so I tried to fix the formula to this =IF(ISERROR(A1-B1)/A1,"",(A1-B1)/A1).. What I'm I missing? thanks in advance |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You are missing a set of parenthesis
=IF(ISERROR((A1-B1)/A1),"",(A1-B1)/A1) -- HTH Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk "Wanna Learn" wrote in message ... Hello this is my original formula =(A1-B1)/A1. This is Ok except that sometimes I get #DIV/0!. so I tried to fix the formula to this =IF(ISERROR(A1-B1)/A1,"",(A1-B1)/A1).. What I'm I missing? thanks in advance |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this
=IF(A1<0,(A1-B1)/A1,"") Mike "Wanna Learn" wrote: Hello this is my original formula =(A1-B1)/A1. This is Ok except that sometimes I get #DIV/0!. so I tried to fix the formula to this =IF(ISERROR(A1-B1)/A1,"",(A1-B1)/A1).. What I'm I missing? thanks in advance |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Firstly the parameter which you have supplied to ISERROR is (A1-B1), but I
guess that you aren't getting an error on the subtraction. The error you are looking for is in the division, so the parameter for ISERROR should be ((A1-B1)/A1), so the formula then becomes: =IF(ISERROR((A1-B1)/A1),"",(A1-B1)/A1) Secondly, with the use of ISERROR you might hide other errors which you ought to investigate separately, so you would be better just trapping for the specific #DIV/0! error, so why not use: =IF(A1=0,"",(A1-B1)/A1) -- David Biddulph "Wanna Learn" wrote in message ... Hello this is my original formula =(A1-B1)/A1. This is Ok except that sometimes I get #DIV/0!. so I tried to fix the formula to this =IF(ISERROR(A1-B1)/A1,"",(A1-B1)/A1).. What I'm I missing? thanks in advance |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=IF(A1=0,"",IF(ISERROR(A1-B1)/A1,"",(A1-B1)/A1))
-- Regards. Daniel "Wanna Learn" a écrit dans le message de news: ... Hello this is my original formula =(A1-B1)/A1. This is Ok except that sometimes I get #DIV/0!. so I tried to fix the formula to this =IF(ISERROR(A1-B1)/A1,"",(A1-B1)/A1).. What I'm I missing? thanks in advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Error Run Time Error, Type Mismatch | Excel Discussion (Misc queries) | |||
Error: "Excel encountered an error and had to remove some formatti | Excel Discussion (Misc queries) | |||
Counting instances of found text (Excel error? Or user error?) | Excel Worksheet Functions | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) |