#1   Report Post  
pwoodix
 
Posts: n/a
Default if statement

Does anyone know - I have an IF statement setup asking if a formula 0, same
formula +.01, same formula. (the formula figures an hourly rate based on a
set gross amount taking into account reg and overtime hourly rates and
returns an hourly rate based on a predetermined gross $ amount.) The idea is
if the formula returnsa 0 or a positive gretaer than 0 then ADD +.01 (penny)
else leave the result alone.) The problem is that if the answer is a negative
# such as (.05) exxcel seems to treat that as being greater than 0 and the
penny extra! How can this be? Any idea how to fix this please? (the formula
looks like this - =IF($J555/($E555+($G555*1.5))
=0,$J555/($E555+($G555*1.5))+0.01, $J555/($E555+($G555*1.5)))

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

I cannot reproduce your results, it always takes the false path if it is
negative.

What values in E5,G5 and J5 give you that result?

--
HTH

Bob Phillips

"pwoodix" wrote in message
...
Does anyone know - I have an IF statement setup asking if a formula 0,

same
formula +.01, same formula. (the formula figures an hourly rate based on a
set gross amount taking into account reg and overtime hourly rates and
returns an hourly rate based on a predetermined gross $ amount.) The idea

is
if the formula returnsa 0 or a positive gretaer than 0 then ADD +.01

(penny)
else leave the result alone.) The problem is that if the answer is a

negative
# such as (.05) exxcel seems to treat that as being greater than 0 and the
penny extra! How can this be? Any idea how to fix this please? (the

formula
looks like this - =IF($J555/($E555+($G555*1.5))
=0,$J555/($E555+($G555*1.5))+0.01, $J555/($E555+($G555*1.5)))



  #3   Report Post  
pwoodix
 
Posts: n/a
Default

Thanks for the help. I finally figured it out late last night! I had
embedded ( ) incorrect and also one of the values comparing was wrong!

"Bob Phillips" wrote:

I cannot reproduce your results, it always takes the false path if it is
negative.

What values in E5,G5 and J5 give you that result?

--
HTH

Bob Phillips

"pwoodix" wrote in message
...
Does anyone know - I have an IF statement setup asking if a formula 0,

same
formula +.01, same formula. (the formula figures an hourly rate based on a
set gross amount taking into account reg and overtime hourly rates and
returns an hourly rate based on a predetermined gross $ amount.) The idea

is
if the formula returnsa 0 or a positive gretaer than 0 then ADD +.01

(penny)
else leave the result alone.) The problem is that if the answer is a

negative
# such as (.05) exxcel seems to treat that as being greater than 0 and the
penny extra! How can this be? Any idea how to fix this please? (the

formula
looks like this - =IF($J555/($E555+($G555*1.5))
=0,$J555/($E555+($G555*1.5))+0.01, $J555/($E555+($G555*1.5)))




  #4   Report Post  
Duke Carey
 
Posts: n/a
Default

Just for the heck of it - here's a slightly shorter version of your formula

=$J555/($E555+($G555*1.5))+IF($J555/($E555+($G555*1.5))=0,0.01,0)

"pwoodix" wrote:

Does anyone know - I have an IF statement setup asking if a formula 0, same
formula +.01, same formula. (the formula figures an hourly rate based on a
set gross amount taking into account reg and overtime hourly rates and
returns an hourly rate based on a predetermined gross $ amount.) The idea is
if the formula returnsa 0 or a positive gretaer than 0 then ADD +.01 (penny)
else leave the result alone.) The problem is that if the answer is a negative
# such as (.05) exxcel seems to treat that as being greater than 0 and the
penny extra! How can this be? Any idea how to fix this please? (the formula
looks like this - =IF($J555/($E555+($G555*1.5))
=0,$J555/($E555+($G555*1.5))+0.01, $J555/($E555+($G555*1.5)))

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
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
IF Statement nightmare eugenevr Excel Discussion (Misc queries) 6 May 18th 05 01:09 PM
How to calculate a sum as one outcome of an IF statement barb in NC Excel Worksheet Functions 2 March 31st 05 08:01 PM
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


All times are GMT +1. The time now is 09:16 AM.

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

About Us

"It's about Microsoft Excel"