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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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
 
Upvote 0

Forum statistics

Threads
1,214,994
Messages
6,122,633
Members
449,092
Latest member
bsb1122

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
Back
Top