Suggestion....
dim these two to use as one dimensional array of x per user, and counter for a loop:
Dim arrcount() As Variant
Dim counter As Long
then loop through the users to store their "X"'s:
ReDim arrcount(1 To UBound(Arr, 1)) 'this is to set up your array of responses with the number of records in your first array
For i = 1 To UBound(Arr, 1) 'loop thrhough number of respondents
counter = 0 'counter that starts at zero each time, will increment when response matches what you are looking for
For j = 2 To 7 'to check the cells in columns B to G as per your defined range
If wstd.Cells(i, j).Value = "X" Then counter = counter + 1 'increment counter if answer matches criteria ("X")
Next j
arrcount(i) = counter 'stores number of X's for user "i"
Next i
What you do with that info afterwards is up to you, but you can loop through users with another for loop....
for k = 1 to ubound(arrcount)
do stuff
next k
Bookmarks