checking all combinations against a column

excelNewbie22

Active Member
Joined
Aug 4, 2021
Messages
403
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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,181,616
Messages
5,930,965
Members
436,767
Latest member
Langaws

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
Top