Highlighting data.

Moggsy85

New Member
Joined
Sep 8, 2021
Messages
30
Office Version
  1. 2011
Platform
  1. MacOS
Hi, I am looking for a formula that will highlight the 3 lowest BSP (column C) from the specific date and time (column A&B), and then from those 3 find the lowest RBD rating (column D)?

MANY THANKS
DateDate and TimeBSPRBD Rating
01/01/2023​
12:10:00​
2.26​
165​
01/01/2023​
12:10:00​
5.24​
144​
01/01/2023​
12:10:00​
8.58​
13​
01/01/2023​
12:10:00​
9​
138​
01/01/2023​
12:10:00​
24.49​
143​
01/01/2023​
12:10:00​
34.39​
123​
01/01/2023​
12:10:00​
47.6​
132​
01/01/2023​
12:10:00​
75.12​
131​
01/01/2023​
12:10:00​
110​
116​
01/01/2023​
12:10:00​
132.35​
107​
01/01/2023​
12:10:00​
173.97​
7​
01/01/2023​
12:10:00​
200​
7​
01/01/2023​
12:10:00​
710​
108​
01/01/2023​
12:15:00​
2.29​
172​
01/01/2023​
12:15:00​
2.39​
156​
01/01/2023​
12:15:00​
12.83​
144​
01/01/2023​
12:15:00​
14.21​
141​
01/01/2023​
12:15:00​
81.07​
126​
01/01/2023​
12:20:00​
4.17​
134​
01/01/2023​
12:20:00​
4.63​
25​
01/01/2023​
12:20:00​
6.02​
136​
01/01/2023​
12:20:00​
6.76​
14​
01/01/2023​
12:20:00​
10.96​
140​
01/01/2023​
12:20:00​
11​
133​
01/01/2023​
12:20:00​
18.5​
128​
01/01/2023​
12:20:00​
164.86​
103​
01/01/2023​
12:25:00​
2.68​
151​
01/01/2023​
12:25:00​
3.87​
27​
01/01/2023​
12:25:00​
5.4​
121​
01/01/2023​
12:25:00​
9.71​
126​
01/01/2023​
12:25:00​
16.91​
7​
01/01/2023​
12:25:00​
26.72​
10​
01/01/2023​
12:25:00​
347.94​
7​
01/01/2023​
12:25:00​
549.45​
7​
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi Moggsy85,

I do not think there is not a formula that can highlight other cells. With Conditional Formatting it might be possible, but beyond my level of understanding.

Below are some formulas that return the three lowest for the chosen date and time. The results are conditionally formatted to highlight the lowest RBD Rating.
Book1.xlsx
ABCDEFG
1DateDate and TimeBSPRBD RatingReturn Criteria
21/1/202312:10:00290.8545DateTime
31/1/202312:10:00535.65841/1/202312:20:00
41/1/202312:10:0056.92197
51/1/202312:10:00354.11132
61/1/202312:10:00666.6264BSPRBD Rating
71/1/202312:10:00426.217416.313
81/1/202312:10:0016.305235.99124
91/1/202312:10:00243.00154.5687
101/1/202312:10:00567.9750
111/1/202312:10:00272.56111
121/1/202312:10:00383.6116
131/1/202312:10:00431.7890
141/1/202312:10:00106.17180
151/1/202312:15:00217.51158
161/1/202312:15:00342.98177
171/1/202312:15:00410.219
181/1/202312:15:0055.8047
191/1/202312:15:00306.749
201/1/202312:20:00651.3669
211/1/202312:20:0035.99124
221/1/202312:20:00199.77148
231/1/202312:20:00181.35101
241/1/202312:20:0016.313
251/1/202312:20:00179.0992
261/1/202312:20:00367.29184
271/1/202312:20:0054.5687
281/1/202312:25:00519.3715
291/1/202312:25:00215.0488
301/1/202312:25:00111.3350
311/1/202312:25:00449.8680
321/1/202312:25:00661.7119
331/1/202312:25:0011.9299
341/1/202312:25:00613.3143
351/1/202312:25:00467.2073
Sheet7
Cell Formulas
RangeFormula
F7:F9F7=AGGREGATE(15,6,C$2:C$35/(($A$2:$A$35=$F$3)*($B$2:$B$35=$G$3)),ROW(A1))
G7:G9G7=INDEX($D$2:$D$35,MATCH($F7&$F$3&$G$3,$C$2:$C$35&$A$2:$A$35&$B$2:$B$35,0))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F7:G9Expression=$G7=SMALL($G$7:$G$9,1)textNO

Note that I replaced all your number values in the last two columns because copying and pasting made them text and I could not figure out how to convert them to numbers. Sounds trivial, but I couldn't figure it out. Tried changing format, trim, clean, value, multiplying, and combinations of those functions with no luck. That could be completely different post. In the future, you should post your data with XL2BB.

Hope that helps,

Doug
 
Upvote 0
copying and pasting made them text and I could not figure out how to convert them to numbers.
Try a macro including .Replace What:=ChrW(8203), Replacement:="", LookAt:=xlPart

In the future, you should post your data with XL2BB.
This OP will not be able to do that. Refer to version information at the top of this page: XL2BB - Excel Range to BBCode

@Moggsy85
Is this what you are trying to do? (I don't have a Mac to test though)

23 09 11.xlsm
ABCD
1DateTimeBSPRBD Rating
21/01/202312:10:002.26165
31/01/202312:10:005.24144
41/01/202312:10:008.5813
51/01/202312:10:009138
61/01/202312:10:0024.49143
71/01/202312:10:0034.39123
81/01/202312:10:0047.6132
91/01/202312:10:0075.12131
101/01/202312:10:00110116
111/01/202312:10:00132.35107
121/01/202312:10:00173.977
131/01/202312:10:002007
141/01/202312:10:00710108
151/01/202312:15:002.29172
161/01/202312:15:002.39156
171/01/202312:15:0012.83144
181/01/202312:15:0014.21141
191/01/202312:15:0081.07126
201/01/202312:20:004.17134
211/01/202312:20:004.6325
221/01/202312:20:006.02136
231/01/202312:20:006.7614
241/01/202312:20:0010.96140
251/01/202312:20:0011133
261/01/202312:20:0018.5128
271/01/202312:20:00164.86103
281/01/202312:25:002.68151
291/01/202312:25:003.8727
301/01/202312:25:005.4121
311/01/202312:25:009.71126
321/01/202312:25:0016.917
331/01/202312:25:0026.7210
341/01/202312:25:00347.947
351/01/202312:25:00549.457
Moggsy85
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D35Expression=D2=MIN(IF(C$2:C$35<=SMALL(IF(A$2:A$35=A2,IF(B$2:B$35=B2,C$2:C$35)),3),IF(A$2:A$35=A2,IF(B$2:B$35=B2,D$2:D$35))))textNO
C2:C35Expression=C2<=SMALL(IF(A$2:A$35=A2,IF(B$2:B$35=B2,C$2:C$35)),3)textNO
 
Upvote 1
You're welcome. Thanks for the follow-up.
 
Upvote 0

Forum statistics

Threads
1,215,410
Messages
6,124,752
Members
449,186
Latest member
HBryant

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