Cell Name change based on another cell BG Colour

PeterOz

New Member
Joined
Jan 7, 2022
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hi
I have a workbook with 10 sheets of players. E>G Week1 Game1 Week1 Game 2 etc.
I have two questions.
1) In the current game I use the large formula to change the background colour of the 1st 2nd & 3rd place.
E.g Tim has the highest score and the cell colour is light blue.
If another player gets more points then Tim as the game progresses the Light blue cell BG colour will change to that player.
This all works well.
What I am trying for is to have another cell change to the name of the person as the BG colour changes.
The pic attached should help make the question clearer.

2) When I click on a cell it will highlight the row and the column.
So I do not have to have to press F9 after choosing a new cell so the row and column will change I have on the first sheet Week 1 Game 1 VBA code
Application.Calculate.
Is it possible to have that one code work across all 10 sheets or do I have to add the Application.Calculate code to each individual sheet.

Cheers
Peteroz
Place_1jpg (Medium).jpg
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Is this you want ??


Receip.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1
2Tim
3Chirs
4Adnan
5NameScoreVan
6Tim22UB
7Van5BJ
8Adnan7
9Chirs11
10BJ1
11UB2
12
13
Sheet15
Cell Formulas
RangeFormula
AA2:AA7AA2=IFNA(INDEX($A$6:$A$15,MATCH(LARGE($O$6:$O$15,ROW(A1)),$O$6:$O$15,0)),"")
 
Upvote 1
Solution
Thank you Muhammad.
This works perfect for 1st place.
Can it be adapted to work for for 2nd and 3rd place?
Cheers
PeterOz
 
Upvote 0
How about
Excel Formula:
=TAKE(SORTBY(B6:B100,O6:O100,-1),3)
 
Upvote 0
Hi Muhammad.
You are correct it does work.
I am sorry for the confusion.

Hi Fluff
I tried your formula and it give me a name error.

Do either of you have an idea about Question 2?
I can just put the code to each worksheet if need.
Thank you both for your help
Cheers
PeterOz
 
Upvote 0
Do either of you have an idea about Question 2?
I can just put the code to each worksheet if need.
Thank you both for your help
Cheers
PeterOz

1693698094360.png


VBA Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)

    Application.EnableEvents = False


Application.Calculate.CODE HERE

    Application.EnableEvents = True

End Sub
 
Upvote 0
Hi Muhammed.
I hope I am not being a bother.
In the spreadsheet is a sheet report that shows the names an a total of each game and a grand total.
I wrongly assumed that if I put your formula next to the game formula it would show the current overall winner.
I added the sheet name Report and changed the cell reference.
By the result I get this is not correct.
is it possible to also show the first 3 places from the running total?
I put this in. IFNA(INDEX(Report!$A$5:$A$15,MATCH(LARGE(Report!$B$6:$B$15,ROW(B1)),Report!$B$6:$B$15,0)),"")
Cheers
PeterOz
Monthly Points.JPG
 
Upvote 0
Hi Noveske
Thanks for your input.
I tried the vba code and no luck.
I then tried putting it into a module and still no luck
Cheers
PeterOz
Calculate.JPG
 
Upvote 0
Hi Fluff
I tried your formula and it give me a name error.
Sounds like you don't have the latest updates, another option is
Excel Formula:
=INDEX(SORTBY(B6:B100,O6:O100,-1),SEQUENCE(3))
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,596
Members
452,657
Latest member
giadungthienduyen

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