IFs and ANDs

Bubba

Board Regular
Joined
May 1, 2002
Messages
73
Hi,

i've created this formula which highlights any cell with a value of more than 0.5:

=IF(IF(ISERROR((X48-W48)/W48),"n/a",(X48-W48)/W48)>0.5,"SEE ME","OK")

it works fine but the problem is that i also want to flag up those cells that are less than 0.5... I'm guessing it needs an AND somewhere but can't suss it out - any ideas?

By the way i need to keep the ISERROR bit in the formula coz there are some blank cells knocking about...

Thanks
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
4,970
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Test 1 > 0.5 test 2<0.5

Why not just one test = 0.5

You may have to include rounding because some calculations may not yield exactly 0.5.
This message was edited by Dave Patton on 2002-09-27 07:53
 

Forum statistics

Threads
1,144,151
Messages
5,722,801
Members
422,459
Latest member
Chriselff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top