Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tina
 
Posts: n/a
Default if cell A is +- 10% of cell B

Hi
What is the best way to write if statement to show if cell A1 is 10% greater
or 10%smaller than cell B1
thanks
Pat
  #2   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Tina

=IF(OR(A1B1*(1+10%),A1<B1*(1-10%)),"Yes","No")

Note this excludes equal to +10% and -10% values themselves. Change to
= to include these values.


Regards

Roger Govier



tina wrote:

Hi
What is the best way to write if statement to show if cell A1 is 10% greater
or 10%smaller than cell B1
thanks
Pat


  #3   Report Post  
vezerid
 
Posts: n/a
Default

Roger,

I believe the phrasing in Tina's request contains an OR, but what she
really means is

=IF(AND(A1<B1*(1+10%),A1B1*(1-10%)),"Yes","No")

HTH
Kostis Vezerides

  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Kostis

Maybe.
The OP now has both solutions and can decide which suits her requirements.

Regards

Roger Govier



vezerid wrote:

Roger,

I believe the phrasing in Tina's request contains an OR, but what she
really means is

=IF(AND(A1<B1*(1+10%),A1B1*(1-10%)),"Yes","No")

HTH
Kostis Vezerides



  #5   Report Post  
tina
 
Posts: n/a
Default

Thank you Roger
I did mean "or" as trying to find out if a difference between 2 numbers is
greater than 10%
Thank you Kostis for your time
Tina

"Roger Govier" wrote:

Hi Kostis

Maybe.
The OP now has both solutions and can decide which suits her requirements.

Regards

Roger Govier



vezerid wrote:

Roger,

I believe the phrasing in Tina's request contains an OR, but what she
really means is

=IF(AND(A1<B1*(1+10%),A1B1*(1-10%)),"Yes","No")

HTH
Kostis Vezerides






  #6   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Tina

Thanks for the feedback. Seeing your request expressed that way, you
could use the shorter
=ABS(B1-A1)/B1=10% which will return TRUE or FALSE.

Regards

Roger Govier



tina wrote:

Thank you Roger
I did mean "or" as trying to find out if a difference between 2 numbers is
greater than 10%
Thank you Kostis for your time
Tina

"Roger Govier" wrote:



Hi Kostis

Maybe.
The OP now has both solutions and can decide which suits her requirements.

Regards

Roger Govier



vezerid wrote:



Roger,

I believe the phrasing in Tina's request contains an OR, but what she
really means is

=IF(AND(A1<B1*(1+10%),A1B1*(1-10%)),"Yes","No")

HTH
Kostis Vezerides





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default if cell A is +- 10% of cell B

this formula works great --- however, what if I want the yes to turn red and
the no to turn green what do I do? Thanks!

"Roger Govier" wrote:

Hi Tina

=IF(OR(A1B1*(1+10%),A1<B1*(1-10%)),"Yes","No")

Note this excludes equal to +10% and -10% values themselves. Change to
= to include these values.


Regards

Roger Govier



tina wrote:

Hi
What is the best way to write if statement to show if cell A1 is 10% greater
or 10%smaller than cell B1
thanks
Pat



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
Input cell reference is not valid (One Variable Data Table) Dottore Excel Worksheet Functions 9 September 1st 05 03:05 PM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Cell Change Color - Need Help alani New Users to Excel 3 June 29th 05 03:50 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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