IF THEN Conditional Formatting

TKC100

Board Regular
Joined
Nov 16, 2005
Messages
59
I am certain the answer to my questions is simple for you all but it has me stumped.
I have a column (A) of numbers both positive and negative.
If the value of any number is column A is more than 10 (absolute value +or -) color the cell red.
I don't know it the formula should be for A1 and then just copy and paste for the remainder of the column or what.
In plain English I need to know if the value of any cell within a column exceeds the value of 10 weather it is a positive or negative number by coloring the cell red.
If you all could assist me with this I would be very grateful.
Thanks!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Yes, it should be pretty simple, something like this:
Book1
A
14
2-4
313
41
54
614
7-15
8-4
910
101
119
12-15
13-12
14-3
15-10
16-7
1712
1815
197
209
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A20Expression=ABS(A1)>10textNO


Select the range you want it to apply to and use the CF formula above.
 
Upvote 0
Thanks for the reply
OK now I get to show off how much I don't know.:unsure:
How do I enter the suggested formula? I am only familiar with entering formulas in a cell or within the formula bar.
When I go to Styles > conditional formatting I can not find anything that resembles your suggestion. (Microsoft 365)
The first row of my sheet is a header and I am wanting to conditionally format E2 - E141
 
Upvote 0
Sure, after selecting your desired range in column E (E2:E141), on the home ribbon, go to Conditional Formatting:
1719694538591.png


Select New Rule:
1719694577864.png


Select Use a formula to determine which cells to format, enter the formula I provided above into the formula bar "=ABS(E2)>10" (without the double quotes), then select format to choose your formatting:
1719694655099.png


Then select Ok.
 
Upvote 0
Perhaps you could assist me in yet another problem.
E2 -1.5 E3 2.3 E4=3.8
How do I write a formula to express the distance between these two numbers
-1.5 to 0 = 1.5 and 2.3 to 0 = 2.3 The answer I need is 3.8
Simple addition or subtraction does not work.
The data collected in both columns (E2 E3) could have negative or positive values. For my purpose I need to know the distance between the two number (columns)
I can do the arithmetic easy enough but not for 100+ cells
I assume the formula would be written within cell F4. Can F4 then have conditional formatting as you previously explained in addition to the existing formula?

I am grateful for your help. It all seems, and when you how to do it, so simple.
 
Upvote 0
Normally as this is a completely different problem, you should create a new thread. However, it is also rather simple and you can achieve the desired result using the absolute value function ABS().

Book1
E
2-1.5
32.3
43.8
Sheet5
Cell Formulas
RangeFormula
E4E4=ABS(E2)+ABS(E3)
 
Upvote 0
Thank you!
I considered starting a new thread because I have seen subjects get completely off topic before. Pretty soon the discussion devolves into your favorite beer.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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