Excel formula to find value in multiple dynamic arrays

radub

New Member
Joined
Sep 27, 2013
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Good evening,
i've been struggling to find a solution to this, but no solution so far :|
Is there a chance I can use Excel 365 formula to find a value in multiple dynamic arrays, and return the array name?
Something like this :

dARR1: one, two , three
dARR2: two, three, five, eight, dARR1
dARR3: two, six, dARR2
dARR4: eight, nine, three, one, two, dARR3
dARR5: two, five, one, six

result:
six: belongs to dARR3, dARR4, dARR5

Thank you,
 
Where in your worksheet does the data and result go?

Maybe provide the data using the excellent Mr. Excel add-in that enables you to post part of a worksheet to the list. See this link for the add in. XL2BB Info.
 
Upvote 0
Where in your worksheet does the data and result go?

Maybe provide the data using the excellent Mr. Excel add-in that enables you to post part of a worksheet to the list. See this link for the add in. XL2BB Info.
the actual data look like bellow. the dynamic arrays i mentioned, is the textsplit() output for the Members, column.

Book1
ABCD
1groupNamecountMembers
2HELX_SL_TT1HX-SL-01-TTHX-SL-01-TT
3HELX_SO_TT1HX-SSO-01-TTHX-SSO-01-TT
4HELX_WB_TT2HX-WB-01-TT;HX-WB-02-TTHX-WB-01-TT
5HR_SL_TT2THR-SL-01-TT;HELX_WB_TTTHR-SL-01-TT
6IM_WB_UT4IM-WB-01-UT;IM-WB-02-UT;IM-PP-03-UT;IM-PP-04-UTIM-WB-01-UT
7IN_CCK_PP_DV6IS-PP-01-DV;IS-PP-04-DV;IS-PP-02-DV;IS-PP-03-DV;IS-PP-05-DV;IS-PP-06-DVIS-PP-01-DV
8IMAN_PP_DV2ICE-PP-01-DV;IM_WB_UTICE-PP-01-DV
9IMAN_PP_UT1ICE-PP-01-UTICE-PP-01-UT
10IPDS_PP_TT;IN_CCK_PP_DV1SLW-PP-01-TTSLW-PP-01-TT
11JA_PP_TT2JIR-PP-02-TT;JIR-PP-03-TT;IMAN_PP_DV;HELX_WB_TTJIR-PP-02-TT
12JP_TS_ENI_DC14CBS-VN-01-PD;TS-VN-01-PD;TS-VN-02-PD;TS-VN-03-PD;TS-VN-04-PD;TS-VN-05-PD;TS-VN-06-PD;TS-VN-07-PD;TS-VN-08-PD;TS-VN-09-PD;TS-VN-10-PD;TS-VN-11-PD;TS-VN-12-PD;TS-VN-14-PDCBS-VN-01-PD
13KX_PP_TT2KFX-PP-02-TT;KFX-SCN-02-TTKFX-PP-02-TT
Sheet1
Cell Formulas
RangeFormula
D2:D3,D9:D10,D13:E13,D12:Q12,D11:G11,D8:E8,D7:I7,D6:G6,D4:E5D2=TEXTSPLIT(C2,";")
 
Last edited by a moderator:
Upvote 0
That data in the most recent post is a lot different than the data in the original post. I STARTED to develop some code to address the original data which I thought I understood. What you are looking for is not clear at all, to me at least. Maybe try to be more specific about what the data is and what you need (i.e., how the results are arrived at and what the results should look like.)
 
Upvote 0
That data in the most recent post is a lot different than the data in the original post. I STARTED to develop some code to address the original data which I thought I understood. What you are looking for is not clear at all, to me at least. Maybe try to be more specific about what the data is and what you need (i.e., how the results are arrived at and what the results should look like.)
Thank you Jim & sorry for the confusion.
I have a text where I need to replace some values with the name of the group the values belong to.
the tricky part is that, some of the groups are members in another groups.
 
Upvote 0
Hi Jim & sorry for overcomplicating things.
I've put this another way, maybe I'll manage to explain it better
I have many groups of people and I'm trying to determine the group(s) each person belongs to.
The tricky part is when groups are nested in another groups like bellow:


Book1
AB
1initial data
2groupNameMembers
3group1John, Anne, Marie
4group2Josh,Alex,group1
5group3Adele,Ema
6group4Keith,Ed,Scott,group2
7group5Valerie,Luci,group4
8
9
10RESULT
11PersonGroup(s)
12Emagroup3
13Alexgroup2, group4, group5
14Johngroup1, group2, group4, group5
Sheet1


Thank you,
 
Upvote 0

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