Complex formatting help please!

Routus

New Member
Joined
Mar 7, 2019
Messages
15
Office Version
  1. 2021
Platform
  1. Windows
Hi all
I have a datasheet with 20 columns and currently about 10,000 rows (the number of rows will increase regularly).

Column 'A' is event date and time .... there can be anything between 1 and 50 rows per event.

I need to evaluate the cells in columns G, H and I for each event and then colour the highest valued cell (they are all numeric) in each column for each event. Ideally they will be coloured a similar green to the shade used in conditional formatting, as that is being applied to other columns in the sheet.

Can someone explain to me please (or provide code if it has to be vba) how to identify the rows per event and then fill the relevant cell in each column? I'm unsure of how to go about it and have very little VBA knowledge.

Any help greatly appreciated
Thank you
Paul
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I don't know but you mean by the green shading but is this close?
Book4
AGHI
1EventData1Data2Data3
2A654420
3A133779
4A551827
5A447056
6A708369
7B64791
8B849937
9B273397
10B851194
11B468795
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G2:I11Expression=G2=MAXIFS(G$2:G$11,$A$2:$A$11,$A2)textNO
 
Upvote 0
I don't know but you mean by the green shading but is this close?
Book4
AGHI
1EventData1Data2Data3
2A654420
3A133779
4A551827
5A447056
6A708369
7B64791
8B849937
9B273397
10B851194
11B468795
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G2:I11Expression=G2=MAXIFS(G$2:G$11,$A$2:$A$11,$A2)textNO
Hi Cubist and thanks for your reply.
That is along the lines of what I want to achieve, yes. By the green shading I was referring to the option in Conditional formatting to set cell values to display in green text on a green background ... I would like to use the same colour throughout the sheet if possible. Unfortunately I'm not sure I can adapt that to work over 10,000+ rows?
 
Upvote 0
You'd just have to change the custom format to your desired colour. Select the entire range -> Conditional formatting -> Insert the formula.
Screen Shot 2024-07-18 at 4.30.07 PM.png

Book4
AGHI
1EventData1Data2Data3
2A654420
3A133779
4A551827
5A447056
6A708369
7B64791
8B849937
9B273397
10B851194
11B468795
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G2:I11Expression=G2=MAXIFS(G$2:G$11,$A$2:$A$11,$A2)textNO
 
Upvote 0
Solution

Forum statistics

Threads
1,224,817
Messages
6,181,147
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