Hello, I'm trying to create a formula where I can compare two cells but accept them as equal is one is plus/minus 0.1.
Example:
Cell A1 is 3, Cell A2 is 3.2, I want Cell A3 to turn red (or report "1")
Cell A1 is 3, Cell A2 is 3.1, I want Cell A3 to turn green (or report "0")
I'm hoping this is an easy one.
Thanks,
Tim
Last edited by TimmyK; 06-10-2009 at 12:56 PM.
Last edited by squiggler47; 06-10-2009 at 11:50 AM. Reason: Added attachment
Regards
Darren
Update 12-Nov-2010 Still job hunting!
If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.
Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!
Select A3 and go to Format|Conditional Formatting
Select Formula Is and enter formula: =ABS(A2-A1)<=0.1
Click Format and pick green from pattern tab
Click Ok.
Click Add
Select Formula Is and enter formula: =ABS(A2-A1)>0.1
Click Format and pick red from pattern tab
Click Ok
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks