ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula returning wrong answer (https://www.excelbanter.com/excel-worksheet-functions/158338-formula-returning-wrong-answer.html)

Jeff Gross

Formula returning wrong answer
 
I have the following formula in a spreadsheet:

=IF(($DE200),$DE20*200000/$DE25,"")

I want the formula (DE20*200000/DE25) to be calculated only if DE20 is
greater than zero. The value of DE=0 so I expected to see a blank (because
of the "" in the if statement). Instead it is returning a #div/0! error.
Actually this error is showing up in 2 cells with the same type of formula
but it is returning accurately in about 50 others with the same formula. I
checked the cell format and they are all formatted as numbers.

Anyone have any ideas?

Jeff

Max

Formula returning wrong answer
 
welcome, Jeff. glad that nailed the issue you were facing.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jeff Gross" wrote in message
...
I tried your suggestion and it worked so i went back to the original cells
and found the issue. It was returning a very small number greater than 0.

Thanks a lot.

Jeff





All times are GMT +1. The time now is 05:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com