Hi All- I am attempting to return a specific value if the text color is red. I have the following macro, which is functioning, but only for a single cell:
Function TT(r As range) As String
If r.Font.Color = RGB(255, 0, 0) Then
TT = "Complete- Requires IL Address Update"
ElseIf r.Font.Color = RGB(0, 0, 0) Then
TT = "Complete"
Else
TT = "Pending"
End If
End Function
However, I need it to return a specific cell based on a vlookup. Is it that I change the range in the macro, or am I missing something in the formula? (Let column 19= Red value, Black value, or blank cell and Let A4=unique identifier/NPI). My macro skills are very basic and I'm not certain of the logic for combining it into a formula. I appreciate any assistance here. Thanks very much.
=IF(VLOOKUP(A4,'New MSO'!1:1048576,19,FALSE)="","",IF(tt(VLOOKUP(A4,'New MSO'!1:1048576,19,FALSE)="Complete- Requires IL Address Update"),"Complete- Requires IL Address Update","Complete"))
Function TT(r As range) As String
If r.Font.Color = RGB(255, 0, 0) Then
TT = "Complete- Requires IL Address Update"
ElseIf r.Font.Color = RGB(0, 0, 0) Then
TT = "Complete"
Else
TT = "Pending"
End If
End Function
However, I need it to return a specific cell based on a vlookup. Is it that I change the range in the macro, or am I missing something in the formula? (Let column 19= Red value, Black value, or blank cell and Let A4=unique identifier/NPI). My macro skills are very basic and I'm not certain of the logic for combining it into a formula. I appreciate any assistance here. Thanks very much.
=IF(VLOOKUP(A4,'New MSO'!1:1048576,19,FALSE)="","",IF(tt(VLOOKUP(A4,'New MSO'!1:1048576,19,FALSE)="Complete- Requires IL Address Update"),"Complete- Requires IL Address Update","Complete"))
Last edited: