GMC The Macro Man
Board Regular
- Joined
- Mar 23, 2023
- Messages
- 104
- Office Version
- 2021
- Platform
- Windows
Hi Team,
I'm working on Excel 2021 and I'm having an issue with a calculation that does not update automatically or even when I click on Refresh Data. The "Calculation options" is set to Automatic and the only way I can update it, is to click in the cell, move my cursor to the end of the formula and hit the return button.
This is what I am trying to do in the table below as it shows a list of user ID's that have been sent an email invitation to 9 events over different times and regions. When their email responses are received, they are transferred over to the spreadsheet and their User ID is assigned a corresponding colour, accepted =GREEN, Declined=RED..etc. (This is done manually as it's less than 200 users)
Could someone please help me to understand why this isn't updating the count.. Thanks as always
I am using the following formula to count the colours - (Is there an easier way)?
In Cell D3 I have =GetColorCount(A5:A150,D2) which I have as a VBA script
Function GetColorCount(CountRange As Range, CountColor As Range)
Dim CountColorValue As Integer
Dim TotalCount As Integer
CountColorValue = CountColor.Interior.ColorIndex
Set rCell = CountRange
For Each rCell In CountRange
If rCell.Interior.ColorIndex = CountColorValue Then
TotalCount = TotalCount + 1
End If
Next rCell
GetColorCount = TotalCount
End Function
I'm working on Excel 2021 and I'm having an issue with a calculation that does not update automatically or even when I click on Refresh Data. The "Calculation options" is set to Automatic and the only way I can update it, is to click in the cell, move my cursor to the end of the formula and hit the return button.
This is what I am trying to do in the table below as it shows a list of user ID's that have been sent an email invitation to 9 events over different times and regions. When their email responses are received, they are transferred over to the spreadsheet and their User ID is assigned a corresponding colour, accepted =GREEN, Declined=RED..etc. (This is done manually as it's less than 200 users)
Could someone please help me to understand why this isn't updating the count.. Thanks as always
I am using the following formula to count the colours - (Is there an easier way)?
In Cell D3 I have =GetColorCount(A5:A150,D2) which I have as a VBA script
Function GetColorCount(CountRange As Range, CountColor As Range)
Dim CountColorValue As Integer
Dim TotalCount As Integer
CountColorValue = CountColor.Interior.ColorIndex
Set rCell = CountRange
For Each rCell In CountRange
If rCell.Interior.ColorIndex = CountColorValue Then
TotalCount = TotalCount + 1
End If
Next rCell
GetColorCount = TotalCount
End Function