Highlight lowest 3 values in an array

noahsmom

New Member
Joined
Nov 7, 2005
Messages
9
:oops: Tried the following & several other ways:

Using conditional formatting - Cell Value is Equal To...

Condition 1
=MIN(H7,P7,X7,AF7,AN7,AV7,BD7,BL7,BT7,CB7,CJ7,CR7,CZ7,DH7,DP7,DX7,EF7,EN7)
Highlight yellow
Condition 2
=SMALL((H7,P7,X7,AF7,AN7,AV7,BD7,BL7,BT7,CB7,CJ7,CR7,CZ7,DH7,DP7,DX7,EF7,EN7),2)
Highlight green
Condition 3
=SMALL((H7,P7,X7,AF7,AN7,AV7,BD7,BL7,BT7,CB7,CJ7,CR7,CZ7,DH7,DP7,DX7,EF7,EN7),3)
Highlight blue

gives me the following error:
You may not use unions, intersection, or array constants for conditional formatting criteria.


Based upon a spreadsheet that looks like this...
Sample.xls
ABCDEFGHIJKLMN
1(IdentifyingVendor123
2Information)ContactJane
3Quote #1A2B
4Valid12/31
5
6Item#ItemDescQtyUOMUnitCostExtCostBidExtBidTermsDeliveryFreightFOBStdPkgMinBuy
7226801ABC2ea1.553.101.603.207Add55
8226802DEF11ea1.5116.611.5717.277Add55
9226803HIJ2ea1.563.121.613.227Add55
10226807KLM4ea2.369.442.409.607Add55
11226808NOP6ea0.281.680.321.927Add55
12226809QRS2ea1.693.381.733.467Add55
13226810TUV1ea2.042.04
14244500WXYZ5ea10.2351.1510.2751.357Add55
Sample


columns G thru N may be repeated numerous times (different vendors). I need the lowest 3 values under the EXT COST column excluding the blank cells. The array will always remain the same (H7,P7,X7,AF7,AN7,AV7,BD7,BL7,BT7,CB7,CJ7,CR7,CZ7,DH7,DP7,DX7,EF,EN).

Since conditional formatting doesn't seem to be doing the trick, does anyone have any additional ideas? Possibly a macro?

I hope that I have provided enough information. ANY help would be more than greatly appreciated!!!!

Thanks,
Noahsmom :pray:
 
Use these

Hi,

use these. ( we had a mistake in the formula for Condition 1 too ) ...
Condition 1
Formula Is ...
Code:
=H7=MIN($H7,$P7,$X7,$AF7,$AN7,$AV7,$BD7,$BL7,$BT7,$CB7,$CJ7,$CR7,$CZ7,$DH7,$DP7,$DX7,$EF7,$EN7)
Condition 2
Formula Is ...
Code:
=H7=SMALL(IF(MOD(COLUMN($H$7:$EN$7),8)=0,IF($H$7:$EN$7<>"",$H$7:$EN$7,9999)),2)
Condition 3
Formula Is ...
Code:
=H7=SMALL(IF(MOD(COLUMN($H$7:$EN$7),8)=0,IF($H$7:$EN$7<>"",$H$7:$EN$7,9999)),3)

Good Luck!
 
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
It Worked!!! Yippee!!! Hip Hip Hooray!!!! (y)

Thanks tremendously GlennUK!!! You’ve helped me save so much time!

Would you mind telling me how to copy this conditional formatting to the remaining rows?
 
Upvote 0

Forum statistics

Threads
1,215,456
Messages
6,124,940
Members
449,197
Latest member
k_bs

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