Excel formula question, MAX?

Capper2824

New Member
Joined
Sep 20, 2021
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hi all, this is my first question so please be kind lol.

I have an excel formula question.

How can I write a formula for a league where I want to get the formula to highlight the maximum scorer in the month.

The maximum scorers in this example are 2 people both achieving 17 points each.

On the second month I have a person who scored 16 (this is highlighted in colour Cyan).

What I need is for the highest scorer in each month and in this example anyone beating 17 should cancel out the previous colour of Cyan

Within this first month (and consecutive months), I have a Monthly Total and an Overall Total, as per the example these are working fine, and I do not want these affected by the highest eekkly scorer total.

hope this make some sort of sense to somebody, please help.


Thank you in anticipation for any help.

KInd regards.

Robert
 
Hi again, i have sent something to the message board but not sure where it has gone. i think i have sent it via xl2bb?
 
Upvote 0

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
mrexcel example.xls
ABCDEFGHIJKLMNOPQRS
207/08/202114/08/202117/08/202121/08/202128/09/2021TOTAL04/09/202111/09/202114/09/202118/09/2021TOTAL
3R1R2R3R4R5MTOTR6R7R8R9R10MTOT
4MONTH 1 MONTH 2
578997404078693070
641151243636412793268
77800520200004424
84110442323109873457
91216111145454789103488
10211264252598863156
11211154537379101173774
124859531312111022556
1348226222206892345
14792893535710642762
151289674242761263173
1679097323204071143
17217502262604871945
181297423434014642458
199115139474709662168
20281174323226492153
215428625257611123661
22121301074242213672870
2348612104040761163070
24411042212146692546
254649103333010091952
264112822727104442249
271292116404076893070
282821412383856241755
2949464272728872552
307105112353574922257
317114473333281182962
329110116373756692663
33290492424290112246
34411213434341096123771
359107147474779693178
361267623333268112760
37584602323261382952
3868291237372811123370
39711811124949011441968
40787412383806841856
4171171174343281393275
42284842626411693056
4341341223535261101954
4426040121270692234
4591129233337119113871
46967242828249132856
470117134353574642156
487111082383859672765
49211789373776862764
5048282242428061640
5114840834344161173872
5226775272778462552
53792179444406992468
5441371294545116742873
55280135282858692856
560112672626011642147
576671123232091222355
582117673333013662558
59287622525788143762
6010274225251097123863
612117853333461172861
6291361410525222741567
632110642323210001235
6441064933332100122457
65280117282848842452
662824723237119113861
677648113636210482460
6812115674141761122667
69121179948482611113078
7068149946467111363783
Sheet1
 
Upvote 0
Select Range A5:S70, Home, Conditional Formatting, New rule, Use a formula to determine which cells to format,

Put this formula in the rule description box: =AND(A5<>0,A5=MAX(A$5:A$70))

click Format..., Fill, pick your color, click Ok , click Apply, click Ok

1632266703671.png


Book1
ABCDEFGHIJKLMNOPQRS
578997404078693070
641151243636412793268
77800520200004424
84110442323109873457
91216111145454789103488
10211264252598863156
11211154537379101173774
124859531312111022556
1348226222206892345
14792893535710642762
151289674242761263173
1679097323204071143
17217502262604871945
181297423434014642458
199115139474709662168
20281174323226492153
215428625257611123661
22121301074242213672870
2348612104040761163070
24411042212146692546
254649103333010091952
264112822727104442249
271292116404076893070
282821412383856241755
2949464272728872552
307105112353574922257
317114473333281182962
329110116373756692663
33290492424290112246
34411213434341096123771
359107147474779693178
361267623333268112760
37584602323261382952
3868291237372811123370
39711811124949011441968
40787412383806841856
4171171174343281393275
42284842626411693056
4341341223535261101954
4426040121270692234
4591129233337119113871
46967242828249132856
470117134353574642156
487111082383859672765
49211789373776862764
5048282242428061640
5114840834344161173872
5226775272778462552
53792179444406992468
5441371294545116742873
55280135282858692856
560112672626011642147
576671123232091222355
582117673333013662558
59287622525788143762
6010274225251097123863
612117853333461172861
6291361410525222741567
632110642323210001235
6441064933332100122457
65280117282848842452
662824723237119113861
677648113636210482460
6812115674141761122667
69121179948482611113078
7068149946467111363783
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A5:S70Expression=AND(A5<>0,A5=MAX(A$5:A$70))textNO
 
Upvote 0
Thank you for your input jgordon11 but this is filling cells with The same colour, unfortunately this would not be an appropriate formula for me, but thank you for your help.
 
Upvote 0
Hi again all.

Thank you again for your input thus far, but could still do with a solution to this problem, if anyone can help.

I need some sort of formula that will highlight in Cyan the highest single scorer in any given month (there are 10 months in all).

At the moment the highest single scorer has 17, if this gets equalled as it has then 17 still gets highlighted, but if beaten then I need all highlighted to go to normal (no highlight).

But anything beating this score, at the moment (17) then I need these to be highlighted.

I also have a formula for Monthly Total (MT in orange) and Overall Total (OT in yellow), these cells I do not want to include as these are working fine.

Hope there is a solution out there if anyone could help please.

Thank you.

Rob.
 
Upvote 0
I need some sort of formula that will highlight in Cyan the highest single scorer in any given month
See if something like this would help. You will need to adjust the ranges to cover your 10 (or future 12?) months.
I have hidden quite a few rows to make this mini-sheet a bit smaller.

21 09 28.xlsm
ABCDEFGHIJKLMNOPQRS
27/08/202114/08/202117/08/202121/08/202128/09/2021TOTAL4/09/202111/09/202114/09/202118/09/2021TOTAL
3R1R2R3R4R5MTOTR6R7R8R9R10MTOT
4MONTH 1 MONTH 2
578997404078693070
641151243636412793268
14792893535710642762
151289674242761263173
1679097323204071143
17217502262604871945
181297423434014642458
199115139474709662168
49211789373776862764
5048282242428061640
5114840834344161173872
5226775272778462552
53792179444406992468
5441371294545116742873
55280135282858692856
6812115674141761122667
69121179948482611113078
7068149946467111363783
CF Highest
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A5:S70Expression=A5=AGGREGATE(14,6,$A$5:$S$70/((MONTH($A$2:$S$2)=MONTH(A$2))*(LEFT(A$3,1)="R")),1)textNO
 
Upvote 0
Thank you again peter for your help.

Could you possibly guide me on how and where to enter this formula, bearing in mind, I am quite a novice at this. sorry for being a pain.

Kind Regards.

Rob.
 
Upvote 0
Could you possibly guide me on how and where to enter this formula, bearing in mind, I am quite a novice at this. sorry for being a pain.
You are not being a pain - this is what the forum is here for. :biggrin:
I will give the steps for the particular layout of my sample in post #17. You will have to adapt to your actual ranges if they are different.
  1. Select from the top left cell that could possibly be coloured (A5 for me) down to the bottom right cell (S70 for me) so that the whole range is selected but that top left cell is the 'active' cell.

  2. Home ribbon tab -> Conditional Formatting -> New rule ... -> Use a formula to determine which cells to format -> Format values where this formula is true:-
    =A5=AGGREGATE(14,6,$A$5:$S$70/((MONTH($A$2:$S$2)=MONTH(A$2))*(LEFT(A$3,1)="R")),1) -> Format... -> Fill tab -> Choose the colour you want-> OK -> OK
The important things with that formula are:
  • Match the red and purple cell references to the top-left and bottom-right of the actual range you selected in step 1 above.

  • The blue range should cover the same columns as you have selected and match the row that the dates are in (row 2 for me).

  • The orange reference should be to the first column that you have selected but the row with the R/MT/OT values (row 3 for me).

  • With all of the cell/range references in the formula, ensure that you have used $ signs where I have - and nowhere else.
 
Upvote 0
Again, thank you, I'll try this when I get in from work.

Much appreciated.

Rob.
 
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,566
Members
449,089
Latest member
Motoracer88

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