Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Negative Values resulting in error

You can use the ROUND function.

=IF(ROUND(C27,2)=ROUND(V19,2),V19,"Error")
or
=IF(ROUND(C27,2)=ROUND(V19,2),ROUND(V19,2),"Error" )
depending on how precide you want the resultant to be.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"KKD" wrote:

No I don't want absolute values, but the error may be coming from the decimal
calculation as you suggested...without using absolute values, how can I tell
Excel to only look at the whole number plus 2 decimal places? I know how to
make it display only this, but how do I tell it to calculate only this?
--
KKD


"Bernard Liengme" wrote:

Do you mean that you want 4 and -4 be be treated as equal?
If so: =if(ABS(c27)=ABS(v19), v19,"Error")

OR is the problem that one or both of the numbers results from a calculation
and, while they appear the same, they are different in maybe the 12 place of
decimal? Then use
=if(ABS(c27-v19)< 1E-12, v19,"Error")

best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme


"KKD" wrote in message
...
I have a formula set as follows:

=if(c27=v19,(v19),("Error"))

The formula works fine until the value becomes a negative number, then it
returns as a false "Error" even though the values are still equal. How can
I
resolve this?
--
KKD



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
Date calculations resulting in negative numbers and averages Radrays Excel Worksheet Functions 4 April 9th 09 04:14 PM
WORKDAY resulting in #VALUE error Joseph Excel Worksheet Functions 4 April 20th 08 11:10 PM
Negative numbers in resulting formula Molly Excel Worksheet Functions 2 April 3rd 08 06:47 AM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
Formula to make Negative Values Positive & Positive Values Negative? mustard Excel Discussion (Misc queries) 4 September 26th 05 10:05 PM


All times are GMT +1. The time now is 05:47 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"