spiffmonkey1
New Member
- Joined
- Jun 23, 2011
- Messages
- 41
Hi, so i have a macro-
Sub ChangecolorAnalysis()
'1 box colored G=G
If WorksheetFunction.CountIf(Range("D69:D80"), "yes") = 1 _
And WorksheetFunction.CountIf(Range("D69:D80"), "N/A") = 8 _
And WorksheetFunction.CountBlank(Range("D69:D80")) = 3 Then
Range("D67", "E67") = "yes"
Else:
Range("D67", "E67") = "N/A"
End If
End Sub
So D67="yes" when there are 1 "yes", 8 "N/A", and 3 blanks. The problem is I want this to apply to MANY columns such as column E,F,G,H,I,J,K. The problem with this macro is that it only apples to one column specifically
Thanks so much!
Sub ChangecolorAnalysis()
'1 box colored G=G
If WorksheetFunction.CountIf(Range("D69:D80"), "yes") = 1 _
And WorksheetFunction.CountIf(Range("D69:D80"), "N/A") = 8 _
And WorksheetFunction.CountBlank(Range("D69:D80")) = 3 Then
Range("D67", "E67") = "yes"
Else:
Range("D67", "E67") = "N/A"
End If
End Sub
So D67="yes" when there are 1 "yes", 8 "N/A", and 3 blanks. The problem is I want this to apply to MANY columns such as column E,F,G,H,I,J,K. The problem with this macro is that it only apples to one column specifically
Thanks so much!