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

Maybe:-

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

Mike

"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: 3,718
Default Formula returning wrong answer

Slightly shorter

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


"Mike H" wrote:

Maybe:-

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

Mike

"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 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
Array formula returning wrong results TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 November 19th 05 10:29 AM
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 05:29 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"