checking all combinations against a column

excelNewbie22

Well-known Member
Joined
Aug 4, 2021
Messages
510
Office Version
  1. 365
Platform
  1. Windows
hi!
i have five numbers, for example:
2-11-4-29-3 each in separate cell,
and i want to check all 120 combinations of them (11-2-4..... 29-2-11... and etc)
against a column of few thousands to see if they match
another problem is i need to check all 120 combinations of each one of the thousands of "original numbers"

can be done?

if too problematic maybe just to check if any combination of said "original number" are a match and count the repeats without actually generate them?


test.xlsm
CDEFGHIJK
112345original combinationall comb's=120cheking for repeats
221142932-11-4-29-32-11-22-39-290
3552021255-5-20-21-252-11-29-22-390
4882025308-8-20-25-302-22-11-29-390
51412121-4-1-21-2and etc0
6511142235-11-14-22-3anc etc0
test
Cell Formulas
RangeFormula
I2:I6I2=C2&"-"&D2&"-"&E2&"-"&F2&"-"&G2
K2:K6K2=IF(COUNTIF(I$1:I2,J2)=0,IF(COUNTIF($I$2:$I$5000,J2)=1,0,COUNTIF($I$2:$I$5000,J2)),"-")
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,214,893
Messages
6,122,118
Members
449,066
Latest member
Andyg666

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