making a "table" from an array

smartphreak

Board Regular
Joined
Mar 24, 2011
Messages
54
Hi All,

I have long list of data which is effectively Client in ColA and Project in ColB - both of theses are not unique.

Essentially looking to make a casscading drop down to be able to choose client and project to find the rest of the data in another sheet.

For some reason my filter is not wokring and gives me a Calc error - so trying a different approach, in that i want to create a table with unique clients in ColC and then all the projects that match the Client fill in fomr DolD onwards to the right of the corresponding client. So if 4 project names match the client then it woudl return:

ColCColDColEColFColG
Client1Project2Project 4Project 6
Client2Project 1Project 2Project 5
Client3Project 1Project 3Project 4Project 6

is there a formula thatI can put in ColD to populate the row?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

For some reason my filter is not wokring and gives me a Calc error -
Perhaps we need to see exactly how you are trying to use it if you want to try to find our what the problem is.

Anyway, see if this is the sort of thing you want

24 11 11.xlsm
ABCDEFGHIJKL
1ClientProject
2Client4Project1Client4Project1Project6Project16Project9Project3Client5
3Client4Project6Client1Project6Project4Project10Project7Project14Client3
4Client1Project6Client5Project2Project3Project4Project8
5Client1Project4Client3Project10Project2Project6
6Client5Project2Client2Project10Project1
7Client1Project10
8Client3Project10
9Client2Project10
10Client5Project3
11Client3Project2
12Client1Project7
13Client4Project16
14Client4Project9
15Client5Project4
16Client5Project8
17Client1Project14
18Client4Project3
19Client2Project1
20Client3Project6
Sheet2 (3)
Cell Formulas
RangeFormula
C2:C6C2=UNIQUE(A2:A20)
D6:E6,D5:F5,D4:G4,D2:H3D2=TRANSPOSE(FILTER(B$2:B$20,A$2:A$20=C2))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
K2:K10List=$C$2#
L2:L10List=INDEX($D:$D,MATCH(K2,$C:$C,0))#


Example of the Project drop-down use:

1731326793023.png
 
Upvote 0
Solution
Hello! It would be easier if you provided a piece of data (not real) to understand what's what. As it is, as it should be. Then the answer will be faster. And also specify the Excel version by changing the data in your profile.
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)


Perhaps we need to see exactly how you are trying to use it if you want to try to find our what the problem is.

Anyway, see if this is the sort of thing you want

24 11 11.xlsm
ABCDEFGHIJKL
1ClientProject
2Client4Project1Client4Project1Project6Project16Project9Project3Client5
3Client4Project6Client1Project6Project4Project10Project7Project14Client3
4Client1Project6Client5Project2Project3Project4Project8
5Client1Project4Client3Project10Project2Project6
6Client5Project2Client2Project10Project1
7Client1Project10
8Client3Project10
9Client2Project10
10Client5Project3
11Client3Project2
12Client1Project7
13Client4Project16
14Client4Project9
15Client5Project4
16Client5Project8
17Client1Project14
18Client4Project3
19Client2Project1
20Client3Project6
Sheet2 (3)
Cell Formulas
RangeFormula
C2:C6C2=UNIQUE(A2:A20)
D6:E6,D5:F5,D4:G4,D2:H3D2=TRANSPOSE(FILTER(B$2:B$20,A$2:A$20=C2))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
K2:K10List=$C$2#
L2:L10List=INDEX($D:$D,MATCH(K2,$C:$C,0))#


Example of the Project drop-down use:

View attachment 119134
Perfect - exactly what I was looking for.
 
Upvote 0

Forum statistics

Threads
1,224,743
Messages
6,180,688
Members
452,994
Latest member
Janick

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