#1   Report Post  
LDanix
 
Posts: n/a
Default IF Formula

I am trying to create an IF formula. I want the column C to yield "Yes" if
the value in column A is plus or minus 3 of the value in column B and yield
"No" if not. Example of my data:

A B C
40 37 Yes
20 22 Yes
30 34 No
50 45 No

How would I achieve this?

Thanks!
  #2   Report Post  
Dave O
 
Posts: n/a
Default

=IF(ABS(A1-B1)<=3,"Yes","No")

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

Try this

=IF(ABS(A1-B1)<=3,"Yes","No")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"LDanix" wrote in message
...
I am trying to create an IF formula. I want the column C to yield "Yes" if
the value in column A is plus or minus 3 of the value in column B and

yield
"No" if not. Example of my data:

A B C
40 37 Yes
20 22 Yes
30 34 No
50 45 No

How would I achieve this?

Thanks!



  #4   Report Post  
SMD
 
Posts: n/a
Default

On Tue, 11 Jan 2005 23:32:05 -0000, "Bob Phillips"
wrote:

Try this

=IF(ABS(A1-B1)<=3,"Yes","No")


Hi,

In (ABS... what is the S in this formula?

Thanks.
  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

What do you mean ABS is a worksheet function that returns the absolute
value of a number.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SMD" wrote in message
...
On Tue, 11 Jan 2005 23:32:05 -0000, "Bob Phillips"
wrote:

Try this

=IF(ABS(A1-B1)<=3,"Yes","No")


Hi,

In (ABS... what is the S in this formula?

Thanks.



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
Simple formula doesn't quite add up circeo Excel Discussion (Misc queries) 3 January 17th 05 09:04 PM
Formula displays does not calculate Neil Bhandar Excel Discussion (Misc queries) 4 January 10th 05 10:55 PM
how do I make a formula NOT change when the data range is moved? Alida Andrews Excel Discussion (Misc queries) 2 January 6th 05 09:02 PM
Converting an Excel formula to an Access query formula Adam Excel Discussion (Misc queries) 1 December 15th 04 03:38 AM
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? Arvi Laanemets Excel Discussion (Misc queries) 0 December 2nd 04 11:29 AM


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