Data is in columns A and B of worksheet.
A1:A4 is filled with numbers :2,3,5,3
B1:B4 is filled with names : jim, jim,david, jim
This line of code [/CODE] numbers(i) = Cells(x, 2).Offset(0, -1).Value [/CODE]picks up the numbers in Column A
based on this statement : [/CODE] If Cells(x, 2) = "jim" Then [/CODE]
So I only want the numbers for jim to fill the array.
Unfortunately when results are displayed via the message box they are : 3,0,0.
So the array appears to be filled with the last number for Jim (3) and then two zeroes which do not correspond to Jim.
Any help solving this problem would be greatly appreciated.
Many thanks for reading
Bookmarks