Originally Posted by
TMShucks
The value of p isn't changing, just the number of times it goes through the lower level loops for x and y. I think what you're saying is how many times does p match a combination of x, y and z.
As I said, it looks as though the higher the value of p, the more combinations of x, y and z will match it ... but that was wrong ;-( The value seems to oscillate.
The first highest value is 33 for p = 195 but it is also 33 for p = 203. The count never goes above zero after p=341.
Have a look at the attached sample workbook.
Regards
yes, thanks for figuring out what I wanted to say
I looked at your workbook and it looks somethings wrong with the way it counts the farther down you go.
Do you know of a way to do this without using the worksheet?
Bookmarks