Format the 3 numbers in a column closest to ZERO

Ultimate Selector

Board Regular
Joined
Dec 15, 2013
Messages
153
Ok so here is what I'm trying to do. Here are my numbers ..
I want to highlight the three lowse numbers closest to zero. Which would be numbers
0.1 , -.08 and 0.9 ...
I have tried several formulas but nothing has worked.
Any suggestions or the right conditional format formula would be greatly Appreciated!

Thanks in Advance!
U.S.


1.4
0.9
0.1
-6.7
-9.3
-7.6
-4.7
-0.8
-1.6




<colgroup><col style="mso-width-source:userset;mso-width-alt:1512;width:33pt" width="43"> </colgroup><tbody>
</tbody>
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Can you help me fix it so it will only HL -10 and below. When I say below I mean -11, -12 etc..
Has the object of CF changed. This seems to be implying that you only want to highlight numbers below -9. Is that the case?

In the earlier posts you were wanting to highlight the numbers closest to 0 or closest to 50 no matter whether the numbers were above or below those values.
Can you clarify?

As with the earlier tasks, some sample data and expected results would help to clarify.
 
Upvote 0
Yes that is correct ... I am serving another function separate from the other one. I'm still good with that one.
I want to HL all numbers below -9

Thanks Pete!
 
Upvote 0
Here is a column of sample data.
Column V8 to V14 specifically.

-12%
-33%
-7%
-22%
-4%
-18%
-4%

<tbody>
</tbody>
 
Last edited:
Upvote 0
-9%

All numbers that are -9 and below.
If there is one then just one. But if there are say 3 that are below -9 or lower then all three of those numbers.
 
Last edited:
Upvote 0
Then this is a very different scenario to the previous one and a very simple CF formula should do it for you.

Excel Workbook
V
8-12%
9-33%
10-7%
11-22%
12-4%
13-18%
14-4%
CF below -9%
Cells with Conditional Formatting
CellConditionCell FormatStop If True
V81. / Formula is =V8<-0.09Abc
 
Upvote 0
Well once again you earned your keep Pete!
I was using a whole number of -9 instead of the -0.09 in my CF formula.

I knew it had to be something simple but I would have never thought it was that.
U Da Man! Many Thanks Pete!

Have a terrific Morning!
-U.S.
 
Upvote 0
Hi Pete,

Hope all is well ...

I have one more issue for you to resolve if you could please.

I am trying to add up the net value of these individual rows.

Then I want to also add up just the positive numbers by themselves for each row.

Then I want to also add up just the negative numbers by themselves for each row.

The issue is that these are all in % (percentages). I can't seem to tackle this one. I know it's gotta be simple tho.

Here is my sample data for you.

5%
-11%-6%
3%-8%-5%
-27%-36%-63%
4%-12%-8%

<colgroup><col style="mso-width-source:userset;mso-width-alt:1582; width:34pt" width="45" span="3"> </colgroup><tbody>
</tbody>


Thanks Pete!

Regards,
U.S.
 
Upvote 0
Like this? Each formula copied across.

Excel Workbook
ABCD
1
25%-11%-6%
33%-8%-5%
4-27%-36%-63%
54%-12%-8%
6Net-15%-67%-82%
7Positive12%0%0%
8Negative-27%-67%-82%
% Calculations
 
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,476
Members
448,967
Latest member
visheshkotha

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