spiffmonkey1
New Member
- Joined
- Jun 23, 2011
- Messages
- 41
Hi, 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"), "") = 11 Then
Range("D67") = "yes"
Else:
Range("D67") = "N/A"
So D67 changes to "yes" when there are 1 "yes" and 11 "". However, I need this macro to also apply to MANY COLUMNS, so that for example E67 and F67 will change to "yes" when there ranges 69:80 has 1 "yes" and 11 "".
Thanks so much!
Sub ChangecolorAnalysis()
'1 box colored G=G
If WorksheetFunction.CountIf(Range("D69:D80"), "yes") = 1 _
And WorksheetFunction.CountIf(Range("D69:D80"), "") = 11 Then
Range("D67") = "yes"
Else:
Range("D67") = "N/A"
So D67 changes to "yes" when there are 1 "yes" and 11 "". However, I need this macro to also apply to MANY COLUMNS, so that for example E67 and F67 will change to "yes" when there ranges 69:80 has 1 "yes" and 11 "".
Thanks so much!