Okay - so you need to change the formula in the Conditional Formatting function, that is also doable.
Here's the code, which will delete all the existing formulas and will create again with the updated letter.
Since I don't know your entire formula, I just wrote one simple formula as an example, replace it with your actual formula on every Format Condition in the code, I also used the same colour just, for example, you can use different a color index based on your requirement, to see the list of numeric values of the colour index, check the screenshot and replace the numeric value in the code:
CAUTION: Please create the backup of your Excel file before executing this Macro code, just to be safer side.
Code:
Sub ReplaceFormula()
With Range("$G$3:$G$8")
.FormatConditions.Delete 'this will delete all the existing format conditions from the range G3:G8
'first condition
.FormatConditions.Add Type:=xlExpression, _
Formula1:="=($G$4=""A"")" 'change letter here
With .FormatConditions(1)
.Interior.ColorIndex = 6 'change color here
.StopIfTrue = False
End With
'second condition
.FormatConditions.Add Type:=xlExpression, _
Formula1:="=($G$4=""B"")" 'change letter here
With .FormatConditions(2)
.Interior.ColorIndex = 6 'change color here
.StopIfTrue = False
End With
'third condition
.FormatConditions.Add Type:=xlExpression, _
Formula1:="=($G$4=""C"")" 'change letter here
With .FormatConditions(3)
.Interior.ColorIndex = 6 'change color here
.StopIfTrue = False
End With
'fourth condition
.FormatConditions.Add Type:=xlExpression, _
Formula1:="=($G$4=""D"")" 'change letter here
With .FormatConditions(4)
.Interior.ColorIndex = 6 'change color here
.StopIfTrue = False
End With
'fifth condition
.FormatConditions.Add Type:=xlExpression, _
Formula1:="=($G$4=""E"")" 'change letter here
With .FormatConditions(5)
.Interior.ColorIndex = 6 'change color here
.StopIfTrue = False
End With
End With
End Sub
Referenced file:
https://1drv.ms/x/s!AoD7X2fui8e1qjWNGt0AUe8gv1v...
Let me know in case of any further assistance is required, I will be glad to assist.
