#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default If ABS statement

Hello,

I'm trying to do a formula to compare 2 numbers and be within a tolerance
level.

A2= $37.73
B2= $37.74
A3= $100.10
B3= $100.10

Instead of if(A2=B2,true,false) I am using this formula:
=IF(ABS(A2=B2)<0.01,TRUE,FALSE)

I input this formula in A3 and B3. A3 says true but B3 says false. I'm not
even sure if I'm using the right formula to do what I need to do.

Thanks in advance,


--
Thank You!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default If ABS statement

A subtle difference:

=IF(ABS(A2-B2)<0.01,TRUE,FALSE)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"maijiuli" wrote in message ...
| Hello,
|
| I'm trying to do a formula to compare 2 numbers and be within a tolerance
| level.
|
| A2= $37.73
| B2= $37.74
| A3= $100.10
| B3= $100.10
|
| Instead of if(A2=B2,true,false) I am using this formula:
| =IF(ABS(A2=B2)<0.01,TRUE,FALSE)
|
| I input this formula in A3 and B3. A3 says true but B3 says false. I'm not
| even sure if I'm using the right formula to do what I need to do.
|
| Thanks in advance,
|
|
| --
| Thank You!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default If ABS statement

Thanks Niek,

Does this subtract B2 from A2 or compare. I would like to compare. The
minus sign seems confusing.
--
Thank You!


"Niek Otten" wrote:

A subtle difference:

=IF(ABS(A2-B2)<0.01,TRUE,FALSE)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"maijiuli" wrote in message ...
| Hello,
|
| I'm trying to do a formula to compare 2 numbers and be within a tolerance
| level.
|
| A2= $37.73
| B2= $37.74
| A3= $100.10
| B3= $100.10
|
| Instead of if(A2=B2,true,false) I am using this formula:
| =IF(ABS(A2=B2)<0.01,TRUE,FALSE)
|
| I input this formula in A3 and B3. A3 says true but B3 says false. I'm not
| even sure if I'm using the right formula to do what I need to do.
|
| Thanks in advance,
|
|
| --
| Thank You!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default If ABS statement

Nevermind, I guess it doesn't matter if you subtract or compare because both
are within .01. Duh, I'm dumb.

Thanks alot,
--
Thank You!


"maijiuli" wrote:

Thanks Niek,

Does this subtract B2 from A2 or compare. I would like to compare. The
minus sign seems confusing.
--
Thank You!


"Niek Otten" wrote:

A subtle difference:

=IF(ABS(A2-B2)<0.01,TRUE,FALSE)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"maijiuli" wrote in message ...
| Hello,
|
| I'm trying to do a formula to compare 2 numbers and be within a tolerance
| level.
|
| A2= $37.73
| B2= $37.74
| A3= $100.10
| B3= $100.10
|
| Instead of if(A2=B2,true,false) I am using this formula:
| =IF(ABS(A2=B2)<0.01,TRUE,FALSE)
|
| I input this formula in A3 and B3. A3 says true but B3 says false. I'm not
| even sure if I'm using the right formula to do what I need to do.
|
| Thanks in advance,
|
|
| --
| Thank You!



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
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
IF statement help spillott Excel Worksheet Functions 3 June 23rd 06 11:27 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 08:42 PM.

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"