I have a worksheet that I use to check lottery results. I gained some valuable assistance from forum members some years back in putting it together. It uses a series of formulas to identify the combination of numbers created, and then using an array formula provides a text entry based on that combination. The array formula is as follows:
=INDEX({"","","Four","Three","One";"","Five","Four ","Two","One"},MATCH(SUMPRODUCT(1-ISNA(MATCH(D5:I5,J$3:K$3,0))),{0;1}),MATCH(SUMPRODUCT(1-ISNA(MATCH(D5:I5,D$3:I$3,0))),{0,3,4,5,6}))
I would love to say I understand this formula however unfortunately don't, and now need to modify it. Currently it looks at the data in each row from D5:I5 on the attached, and checks it against the data in D3:K3. If it finds all 6 numbers from D3:I3 it will return the text 'One" in the column U. If it finds 5 of the numbers from D3:I3 and at least one if not both of J3 or K3, it will return the text "Two". If it finds 5 numbers from D3:I3 in each row it will return the text "Three". If it finds 4 numbers it will return the text "Four". If it finds 3 numbers from D3:I3, and either or both of J3 & K3, it will return the text "Five".
I now wish to modify it so that if it finds in each row down from D5:I5, at least one if not two numbers from D3:I3 and BOTH J3 & K3, it will return the text "Six"
I would greatly appreciate assistance on how to modify this formula to make this change. I would also really appreciate an explanation on how this formula works, as I am having difficulty fathoming out how it is finding these combinations and determining what text entry is relevant, and am keen to understand more how this is working for my own learning
PS. Attachment is in Excel 2007.
Bookmarks