presenting repeated numbers

excelNewbie22

Well-known Member
Joined
Aug 4, 2021
Messages
510
Office Version
  1. 365
Platform
  1. Windows
hi!
how can i know which set of numbers in col i is a part of the numbers in a2 and then present them in col m? with the adajcent cells like in n2 and o2 ?

test
ABCDEFGHIJKLMNO
1a1a2a3wanted resultwanted resultwanted result
21-2-3-4-5-61234567-8-91-11-12-20-40-4110-11-14-21-29-301-2-45-7-11-12-19-207-9-15-18-23-26
310-11-152-22-23-33-44-456-7-19-22-23-28
41-2-45-7-11-12-19-207-9-15-18-23-26
test
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
make a progress, but in a long way,
can someone have a way to shorten it?
if not, how can i filter the blanks in i7?
and what i'm missing i i9 in order for it to populate results like in i11?



test.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1a1a2a3wanted resultwanted resultwanted result
21-2-3-4-5-61234567-8-91-11-12-20-40-4110-11-14-21-29-301-2-45-7-11-12-19-207-9-15-18-23-26
3210-11-122-22-23-33-44-456-7-19-22-23-28
41-2-45-7-11-12-19-207-9-15-18-23-26
5
6step 11-2-31-2-41-2-51-2-61-3-41-3-51-3-61-4-51-4-61-5-62-3-42-3-52-3-62-4-52-4-62-5-63-4-53-4-63-5-64-5-6
7step 2 1-2-4
8
9step 3FALSE
100
115-7-11-12-19-207-9-15-18-23-26
test
Cell Formulas
RangeFormula
J6J6=B2&"-"&C2&"-"&E2
K6K6=B2&"-"&C2&"-"&F2
L6L6=B2&"-"&C2&"-"&G2
M6M6=B2&"-"&D2&"-"&E2
N6N6=B2&"-"&D2&"-"&F2
O6O6=B2&"-"&D2&"-"&G2
P6P6=B2&"-"&E2&"-"&F2
Q6Q6=B2&"-"&E2&"-"&G2
R6R6=B2&"-"&F2&"-"&G2
S6S6=C2&"-"&D2&"-"&E2
T6T6=C2&"-"&D2&"-"&F2
U6U6=C2&"-"&D2&"-"&G2
V6V6=C2&"-"&E2&"-"&F2
W6W6=C2&"-"&E2&"-"&G2
X6X6=C2&"-"&F2&"-"&G2
Y6Y6=D2&"-"&E2&"-"&F2
Z6Z6=D2&"-"&E2&"-"&G2
AA6AA6=D2&"-"&F2&"-"&G2
AB6AB6=E2&"-"&F2&"-"&G2
I6I6=B2&"-"&C2&"-"&D2
I7:AB7I7=IF(ISERROR(MATCH(I6:AB6,$I$2:$I$4,0)),"",B2&"-"&C2&"-"&E2)
I9I9=IF(OR(I2=$J$7,J2:K2),IF(OR(I3=$J$7,J3:K3),IF(OR(I4=$J$7,J4:K4),0)))
I10,I11:J11I10=IF(I3=$J$7,J3:K3,0)
Dynamic array formulas.
 
Upvote 0
had a mistake in i7 but still need help with above problems
except figure out this in i9
Excel Formula:
=IF(I2=$J$7,J2:K2,IF(I3=$J$7,J3:K3,IF(I4=$J$7,J4:K4,0)))
test.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1a1a2a3wanted resultwanted resultwanted result
21-2-3-4-5-61234567-8-91-11-12-20-40-4110-11-14-21-29-301-2-45-7-11-12-19-207-9-15-18-23-26
3210-11-122-22-23-33-44-456-7-19-22-23-28
41-2-45-7-11-12-19-207-9-15-18-23-26
5
6step 11-2-31-2-41-2-51-2-61-3-41-3-51-3-61-4-51-4-61-5-62-3-42-3-52-3-62-4-52-4-62-5-63-4-53-4-63-5-64-5-6
7step 2 1-2-4
8
9step 35-7-11-12-19-207-9-15-18-23-26
10
test
Cell Formulas
RangeFormula
J6J6=B2&"-"&C2&"-"&E2
K6K6=B2&"-"&C2&"-"&F2
L6L6=B2&"-"&C2&"-"&G2
M6M6=B2&"-"&D2&"-"&E2
N6N6=B2&"-"&D2&"-"&F2
O6O6=B2&"-"&D2&"-"&G2
P6P6=B2&"-"&E2&"-"&F2
Q6Q6=B2&"-"&E2&"-"&G2
R6R6=B2&"-"&F2&"-"&G2
S6S6=C2&"-"&D2&"-"&E2
T6T6=C2&"-"&D2&"-"&F2
U6U6=C2&"-"&D2&"-"&G2
V6V6=C2&"-"&E2&"-"&F2
W6W6=C2&"-"&E2&"-"&G2
X6X6=C2&"-"&F2&"-"&G2
Y6Y6=D2&"-"&E2&"-"&F2
Z6Z6=D2&"-"&E2&"-"&G2
AA6AA6=D2&"-"&F2&"-"&G2
AB6AB6=E2&"-"&F2&"-"&G2
I6I6=B2&"-"&C2&"-"&D2
I7:BK7I7=IF(ISERROR(MATCH(I6:BK6,$I$2:$I$4,0)),"",I6:BK6)
I9:J9I9=IF(I2=$J$7,J2:K2,IF(I3=$J$7,J3:K3,IF(I4=$J$7,J4:K4,0)))
Dynamic array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,473
Members
448,967
Latest member
visheshkotha

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