CONCAT Rows if Columns Match?

rlyle

New Member
Joined
Jul 14, 2022
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
I have taken the data from this table on "Sheet 1" and sorted columns C:F to show unique rows only on "Sheet 2"

1657813107363.png


Now, I need to CONCAT the "Location" column from my table on Sheet 1 in the "Location" Column of Sheet 2 if rows C:F match C:F.. Ex: the first row "48 80 DBL 4-7/8" should have "101, 102, 108, 109, 110, 111" in it.

I was able to get excel to find how many duplicates there are with my "qty" column:
1657813489088.png


So I'm thinking I could use that to tell it what "Locations" should be CONCAT?

Thank you,
Rob.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Can you post your data from both sheets.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Can you post your data from both sheets.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
Cool! Yes, here you go:

test copy.xlsx
ABCDEFGHIJK
1
2
3INTERIOR DOORS
4
5
62-Panel FlatSolid CorePrimedMatch Existing (see pictures)
7
8WHHANDINGJAMBQTYLOCATIONDOOR HARDWARE
94880DBL4-7/86NOTE FOR Fluff: '(If @C:F matches interior_doors[[Width]:[Jamb]], TEXTJOIN interior_doors[Location])'DUMMY14
104880DBL6-7/81PASSAGE4
113680R4-7/81PRIVACY3
122880L4-7/81
132880R6-7/82
142480L4-7/81
152479L4-7/81
162480R6-7/81
17 
18 
19 
20 
Dashboard
Cell Formulas
RangeFormula
C6:F6C6=IF(ISBLANK('Interior Doors'!B7),"",'Interior Doors'!B7)
C9:F16C9=VALUETOTEXT(SORT(UNIQUE(FILTER(interior_doors[[Width]:[Jamb]],interior_doors[Location]<>"")),,-1))
J9J9=COUNTIF(interior_doors[Hardware],"DUMMY")*2
J10J10=COUNTIF(interior_doors[Hardware],"PASSAGE")
J11J11=COUNTIF(interior_doors[Hardware],"PRIVACY")
G9:G20G9=IF(ISBLANK(C:C),"",COUNTIFS(interior_doors[Width],C:C,interior_doors[Height],D:D,interior_doors[Handing],E:E,interior_doors[Jamb],F:F))
Dynamic array formulas.


test copy.xlsx
ABCDEFGH
1
2
3
4Inteior Doors
5
6Style/ModelConstructionMaterialNotes
72-Panel FlatSolid CorePrimedMatch Existing (see pictures)
8
9
10LocationWidthHeightHandingJambHardware
111014880DBL4-7/8DUMMY
121024880DBL4-7/8DUMMY
131033680R4-7/8PRIVACY
141042880L4-7/8PASSAGE
151052880R6-7/8PRIVACY
161062880R6-7/8PRIVACY
171084880DBL4-7/8DUMMY
181094880DBL4-7/8DUMMY
191104880DBL4-7/8DUMMY
201114880DBL4-7/8DUMMY
211122480L4-7/8PASSAGE
221132479L4-7/8PASSAGE
231144880DBL6-7/8DUMMY
241152480R6-7/8PASSAGE
25
26
27
28
Interior Doors
Cells with Data Validation
CellAllowCriteria
H11:H18Any value
G11:G25ListPASSAGE, PRIVACY, DUMMY,
 
Upvote 0
Thanks for that.
How about, you will need to change the C9 formula as shown
Fluff.xlsm
ABCDEFGHIJ
1
2
3INTERIOR DOORS
4
5
62-Panel FlatSolid CorePrimedMatch Existing (see pictures)
7
8WHHANDINGJAMBQTYLOCATIONDOOR HARDWARE
94880DBL4-7/86101, 102, 108, 109, 110, 111DUMMY14
104880DBL6-7/81114PASSAGE4
113680R4-7/81103PRIVACY3
122880L4-7/81104
132880R6-7/82105, 106
142480L4-7/81112
152479L4-7/81113
162480R6-7/81115
17 
Report
Cell Formulas
RangeFormula
C6:F6C6=IF(ISBLANK('Interior Doors'!B7),"",'Interior Doors'!B7)
C9:F16C9=SORT(UNIQUE(FILTER(interior_doors[[Width]:[Jamb]],interior_doors[Location]<>"")),,-1)
J9J9=COUNTIF(interior_doors[Hardware],"DUMMY")*2
J10J10=COUNTIF(interior_doors[Hardware],"PASSAGE")
J11J11=COUNTIF(interior_doors[Hardware],"PRIVACY")
H9:H16H9=TEXTJOIN(", ",,IF((interior_doors[Width]=C9)*(interior_doors[Height]=D9)*(interior_doors[Handing]=E9)*(interior_doors[Jamb]=F9),interior_doors[Location],""))
G9:G17G9=IF(ISBLANK(C9),"",COUNTIFS(interior_doors[Width],C9,interior_doors[Height],D9,interior_doors[Handing],E9,interior_doors[Jamb],F9))
Dynamic array formulas.
 
Upvote 0
Solution
Thanks for that.
How about, you will need to change the C9 formula as shown
Fluff.xlsm
ABCDEFGHIJ
1
2
3INTERIOR DOORS
4
5
62-Panel FlatSolid CorePrimedMatch Existing (see pictures)
7
8WHHANDINGJAMBQTYLOCATIONDOOR HARDWARE
94880DBL4-7/86101, 102, 108, 109, 110, 111DUMMY14
104880DBL6-7/81114PASSAGE4
113680R4-7/81103PRIVACY3
122880L4-7/81104
132880R6-7/82105, 106
142480L4-7/81112
152479L4-7/81113
162480R6-7/81115
17 
Report
Cell Formulas
RangeFormula
C6:F6C6=IF(ISBLANK('Interior Doors'!B7),"",'Interior Doors'!B7)
C9:F16C9=SORT(UNIQUE(FILTER(interior_doors[[Width]:[Jamb]],interior_doors[Location]<>"")),,-1)
J9J9=COUNTIF(interior_doors[Hardware],"DUMMY")*2
J10J10=COUNTIF(interior_doors[Hardware],"PASSAGE")
J11J11=COUNTIF(interior_doors[Hardware],"PRIVACY")
H9:H16H9=TEXTJOIN(", ",,IF((interior_doors[Width]=C9)*(interior_doors[Height]=D9)*(interior_doors[Handing]=E9)*(interior_doors[Jamb]=F9),interior_doors[Location],""))
G9:G17G9=IF(ISBLANK(C9),"",COUNTIFS(interior_doors[Width],C9,interior_doors[Height],D9,interior_doors[Handing],E9,interior_doors[Jamb],F9))
Dynamic array formulas.
Dude!!!! Can't wipe the smile off my face! Thank you so much Fluff. Legend.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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