Enzo_Matrix
Board Regular
- Joined
- Jan 9, 2018
- Messages
- 113
I have multiple conditional formats and I want the cell to automatically change the text to 'High'/'Medium'/'Low' depending on the color generated by the formatting but can't seem to figure out how do it.
My conditional formatting is:
=AND($J17=5, $K17=5)
The formatting will change this cell to the color red or color index 3
This is currently what I have as the If function:
Function GetfillColor(Rng As range) As Long
GetfillColor = Rng.Interior.ColorIndex
End Function
Function CheckColor2(range)
If range.Interior.ColorIndex = 3 Then
CheckColor2 = "High"
ElseIf range.Interior.ColorIndex = 44 Then
CheckColor2 = "Medium"
ElseIf range.Interior.ColorIndex = 43 Then
CheckColor2 = "Low"
End If
End Function
I have multiple conditional formats and I want the cell to automatically change the text to 'High'/'Medium'/'Low' depending on the color generated by the formating but can't seem to figure out how do it.
My conditional formatting is:
=AND($J17=5, $K17=5)
The formatting will change this cell to the color red or color index 3
This is currently what I have as the If function:
Function GetfillColor(Rng As range) As Long
GetfillColor = Rng.Interior.ColorIndex
End Function
Function CheckColor2(range)
If range.Interior.ColorIndex = 3 Then
CheckColor2 = "High"
ElseIf range.Interior.ColorIndex = 44 Then
CheckColor2 = "Medium"
ElseIf range.Interior.ColorIndex = 43 Then
CheckColor2 = "Low"
End If
End Function
I have multiple conditional formats and I want the cell to automatically change the text to 'High'/'Medium'/'Low' depending on the color generated by the formating but can't seem to figure out how do it.