Sum of numbers
You are right, Flexalong, there are many ways to achieve this, macro or formulas. I will give you a formula-based solution that gives you some flexibility to see where the number that adds up to two other is.
Let's assume your data has draw # in column A and the winning numbers in columns B to G (in increasing order).
- If you want to see if the third number (column D) is the sum of the first two, then in cell H2, you could put the formula =IF(B2+C2=D2,1,0) to give you a 1 if it is the sum of the first two numbers and a 0 if it is not.
- If you want to see if the fourth number (column E) is the sum of any of the first two, then in cell I2, you could put the formula =IF(OR(B2+C2=E2,B2+D2=E2,C2+D2=E2),1,0) to give you a 1 if it is the sum of the two of the first three numbers and a 0 if it is not.
You can continue like this for the fifth or sixth number, although the OR(...) condition will get longer and longer.
Then you can delete lines where you get a 1 in one of the columns (H to K) depending on which condition you want to eliminate a line.
You are right, Flexalong, there are many ways to achieve this, macro or formulas. I will give you a formula-based solution that gives you some flexibility to see where the number that adds up to two other is.
Let's assume your data has draw # in column A and the winning numbers in columns B to G (in increasing order).
- If you want to see if the third number (column D) is the sum of the first two, then in cell H2, you could put the formula =IF(B2+C2=D2,1,0) to give you a 1 if it is the sum of the first two numbers and a 0 if it is not.
- If you want to see if the fourth number (column E) is the sum of any of the first two, then in cell I2, you could put the formula =IF(OR(B2+C2=E2,B2+D2=E2,C2+D2=E2),1,0) to give you a 1 if it is the sum of the two of the first three numbers and a 0 if it is not.
You can continue like this for the fifth or sixth number, although the OR(...) condition will get longer and longer.
Then you can delete lines where you get a 1 in one of the columns (H to K) depending on which condition you want to eliminate a line.
