Check if a previously drawn number is in a group.

Samgraphics

Board Regular
Joined
Jan 9, 2022
Messages
61
Office Version
  1. 2011
Platform
  1. MacOS
Please help me,
Currently I'm using this formula to check if a previously drawn number is in the group,the countifs, but it's long and it's really slowing down excel. Is there another way to do it? A less cumbersome way?


All combinations 2023-24.xlsm
CDEFGHIJKLMN
112345123430
212346920232933
312347413151732
412348422253031
5123491291930
61234101516253134
7123411712202831
8123412419213031
91234131323273034
10123414518222829
111234151015222733
121234161018252833
1312341734121523
1412341837212224
151234191320272930
16123420923252733
171234211571213
181234224781819
19123423712172634
20123424725262932
21123425618232732
22123426214162830
231234271792529
24123428511152333
2512342928163134
2612343048101421
DA LUO TO
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C1:G98280Expression=COUNTIFS($J$1:$J$98280,$C1,$K$1:$K$98280,$D1,$L$1:$L$98280,$E1,$M$1:$M$98280,$F1,$N$1:$N$98280,$G1)textNO
C1:G98280Expression=MIN($D1:$G1-$C1:$F1)=MAX($D1:$G1-$C1:$F1)textNO
C1:G98280Expression=MIN(($E1:$G1-$D1:$F1)-($D1:$F1-$C1:$E1))=MAX(($E1:$G1-$D1:$F1)-($D1:$F1-$C1:$E1))textNO



Thank you so much.
 
Last edited by a moderator:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I am interpreting the "drawn number" as the combination of the 5 numbers in columns I-M similar to lottery results and the search combination to be the aggregate of Columns A-E. If you are ok with using multiple columns, the following might work:
- Convert the series of 5 numbers into a combined text string. This will give you the unique combination for each row.
- Do the same thing for data in I-M
- Do a match or countif of the unique identifier in G with the unique identifier in O

Book1
ABCDEFGHIJKLMNOP
1Unique identifier for A-EUnique identifier for A-OIs G In I-M dataset?
21234512345123430123430#N/A
31234612346920232933920232933#N/A
41234712347413151732413151732#N/A
51234812348422253031422253031#N/A
6123491234912919301291930#N/A
712341012341015162531341516253134#N/A
8123411123411712202831712202831#N/A
9123412123412419213031419213031#N/A
1012341312341313232730341323273034#N/A
11123414123414518222829518222829#N/A
1212341512341510152227331015222733#N/A
1312341612341610182528331018252833#N/A
141234171234173412152334121523#N/A
151234181234183721222437212224#N/A
1612341912341913202729301320272930#N/A
17123420123420923252733923252733#N/A
1812342112342115712131571213#N/A
1912342212342247818194781819#N/A
20123423123423712172634712172634#N/A
21123424123424725262932725262932#N/A
22123425123425618232732618232732#N/A
23123426123426214162830214162830#N/A
2412342712342717925291792529#N/A
25123428123428511152333511152333#N/A
261234291234292816313428163134#N/A
2712343012343048101421481014211
Sheet1
Cell Formulas
RangeFormula
G2:G27,O2:O27O2=I2&J2&K2&L2&M2
P2:P27P2=MATCH(G2,$O$2:$O$27,0)
Named Ranges
NameRefers ToCells
_FilterDatabase=Sheet1!$A$2:$O$52G2
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top