Need help using an IF statement with conditional formatting

thinmints88

New Member
Joined
May 4, 2016
Messages
4
I am looking to highlight cells in a column only if the values of the cells in the neighboring column are greater than or equal to a certain number. Additionally I am only looking to highlight the 10 smallest numbers in the column. For example:

Highlight the 10 smallest values in column A only if the values in column B are greater than or equal to 5.

Is this possible? Thank you!!!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I dummied up a sample for you, but I only used 10 numbers, so I restricted it to the bottom 5, rather than the bottom 10 - just change the bolded value
[Table="width:, class:grid"][tr][td] [/td][td]
A​
[/td][/tr]
[tr][td]
1​
[/td][td]
1​
[/td][/tr]

[tr][td]
2​
[/td][td]
2​
[/td][/tr]

[tr][td]
3​
[/td][td]
3​
[/td][/tr]

[tr][td]
4​
[/td][td]
4​
[/td][/tr]

[tr][td]
5​
[/td][td]
5​
[/td][/tr]

[tr][td]
6​
[/td][td]
6​
[/td][/tr]

[tr][td]
7​
[/td][td]
7​
[/td][/tr]

[tr][td]
8​
[/td][td]
8​
[/td][/tr]

[tr][td]
9​
[/td][td]
9​
[/td][/tr]

[tr][td]
10​
[/td][td]
10​
[/td][/tr]
[/table]

If you are familiar with CF, ignore the 1st 2 points
1. highlight the range you want to apply the conditional formatting to
2. on the home tab, styles, select CF
3. select new rule, select use formula
4. enter =A1<=SMALL(IF($A$1:$A$10<=5,$A$1:$A$10),5)...Format Fill your color choice
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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