Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Formula returning wrong answer

Maybe its a very small positive number returned by a formula in DE20
(which looks like a zero due to cell formatting as number to zero dp)

Try using a ROUND(..,0) ie:
=ROUND(<formula in DE20,0)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jeff Gross" wrote:
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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Formula returning wrong answer

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

"Max" wrote:

Maybe its a very small positive number returned by a formula in DE20
(which looks like a zero due to cell formatting as number to zero dp)

Try using a ROUND(..,0) ie:
=ROUND(<formula in DE20,0)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jeff Gross" wrote:
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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula returning wrong answer Mike H Excel Worksheet Functions 1 September 14th 07 04:04 PM
Formula returning wrong result. Steve Hunt Excel Worksheet Functions 1 December 2nd 06 09:10 AM
Fill down produces correct formula but wrong answer Jim at SDSU Excel Worksheet Functions 2 March 3rd 06 07:03 PM
Formula correct, answer wrong TJAC Excel Discussion (Misc queries) 2 January 3rd 06 06:15 PM
Wrong answer after using the payment formula in excel punkyh New Users to Excel 8 April 28th 05 07:56 PM


All times are GMT +1. The time now is 08:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"