Aggregate formula adjustment (prefered) or possible macro

Nova1979

Board Regular
Joined
Feb 4, 2020
Messages
111
Office Version
  1. 2010
Platform
  1. Windows
Hello all once again
I am hoping that this is a case of formula adjustment in the aggregate component. I have had significant help with what is sampled below. I have supplied a sample of both what I currently have (current output) and what I would like it to look like (hoping for) as these are being used by those less familiar with EXCEL. I have included the formulas at the bottom of the current output hence the column width.
Issue 1: I am wanting to do away with the merged cells (this caused some in the initial setup). As can be seen in the samples, currently there are 5 fixed rows allocated to each for the parts. This can change as seen below.
Issue 2: Currently if there are more than 5 parts to be supplied, I need to insert rows and copy the formulas F:J down.

I am hoping that the overall repair is listed A:E and then the parts F:I. If there is 1 or no parts, then the next repair is listed (see hoping for sample rows 1 and 2). If there are multiple parts (regardless of how many), these are listed in F:I. Once there are no more parts to be listed, then the next repair is listed in A:E (see hoping for sample rows 13:17)

I have no knowledge on macro at all beyond the fact that they can be used. If this goes down the path of macro, the first row of referenced data is 5 as there column headers. I would also require assistance in implementing and how to operate it. I am listing this as a possibility as I am unsure of the limitations of formulas. There is no formulation on the data being referenced.

Current output:
Inspection data.xlsx
ABCDEFGHIJ
147FF/X/gearbox, seal and belt . Replace worn bearing 0791, 1402, 11763012103954Bearing1
2
3
4
5
648FF/X/Repair arm rest.01
7
8
9
10
1149RU/X/Replace bottom cushion, pad and lock assembly. Replace corroded seatsprings and lowerbolts1097, 1099, 1100, 1102, 1106,1.5011862393Bottom seat cushion1
12012173789Bottom underside pad1
13013745430Bottom pad lockwasher4
14010841222 Internal Height Spring2
15011871036 Lock ***. - Pin1
1650RU/X/Replace bracket. Replace delaminating guard. 1133, 1077, 1085, 10921.550
1750
1850
1950
2050
2151FF/X/lubricate sticking bracket.7030.2551
2251
2351
2451
2551
2652XX/X/Replace seat bottom cushion, mounting.1114, 1116, 11201011441454 Bottom cushion152
27005501130Bottom seat lockwasher452
28005765752Lockwasher152
2952
3052
31=IFERROR(INDEX(INSPECTION!$B$15:$B$1013,AGGREGATE(15,6,(ROW(INSPECTION!$A$14:$A$1013)-MIN(ROW(INSPECTION!$A$14:$A$1013))+1)/(INSPECTION!$A$14:$A$1013="Y"),ROWS(A$5:A5))),"")=IFERROR(INDEX(INSPECTION!$I$14:$I$1013,AGGREGATE(15,6,(ROW(INSPECTION!$A$14:$A$1013)-MIN(ROW(INSPECTION!$A$14:$A$1013))+1)/(INSPECTION!$A$14:$A$1013="Y"),ROWS(B$5:B5))),"")=IFERROR(INDEX(INSPECTION!$I$14:$I$1013,AGGREGATE(15,6,(ROW(INSPECTION!$A$14:$A$1013)-MIN(ROW(INSPECTION!$A$14:$A$1013))+1)/(INSPECTION!$A$14:$A$1013="Y"),ROWS(B$5:B5))),"")=IFERROR(INDEX(INSPECTION!$H$14:$H$1013,AGGREGATE(15,6,(ROW(INSPECTION!$A$14:$A$1013)-MIN(ROW(INSPECTION!$A$14:$A$1013))+1)/(INSPECTION!$A$14:$A$1013="Y"),ROWS(D$5:D5))),"")=IFERROR(INDEX(INSPECTION!$M$14:$M$1013,AGGREGATE(15,6,(ROW(INSPECTION!$A$14:$A$1013)-MIN(ROW(INSPECTION!$A$14:$A$1013))+1)/(INSPECTION!$A$14:$A$1013="Y"),ROWS(E$5:E5))),"")=IFERROR(INDEX(INSPECTION!F$2:F$1133,AGGREGATE(15,6,(ROW(INSPECTION!$A$2:$A$1133)-MIN(ROW(INSPECTION!$A$2:$A$1133))+1)/(INSPECTION!$B$2:$B$1133=$K6)/(INSPECTION!$E$2:$E$1133="Y"),COUNTIFS($K$5:$K6,$K6))),"")=IFERROR(INDEX(INSPECTION!C$2:C$1133,AGGREGATE(15,6,(ROW(INSPECTION!$A$2:$A$1133)-MIN(ROW(INSPECTION!$A$2:$A$1133))+1)/(INSPECTION!$B$2:$B$1133=$K6)/(INSPECTION!$E$2:$E$1133="Y"),COUNTIFS($K$5:$K6,$K6))),"")=IFERROR(INDEX(INSPECTION!D$2:D$1133,AGGREGATE(15,6,(ROW(INSPECTION!$A$2:$A$1133)-MIN(ROW(INSPECTION!$A$2:$A$1133))+1)/(INSPECTION!$B$2:$B$1133=$K6)/(INSPECTION!$E$2:$E$1133="Y"),COUNTIFS($K$5:$K6,$K6))),"")=IF(A16<>"",A16,J16)
32
33
34
35
Sheet1


Hoping for:
Inspection data.xlsx
ABCDEFGHI
147FF/X/gearbox, seal and belt . Replace worn bearing0791, 1402, 11763012103954Bearing1
248FF/X/Repair arm rest.01
349RU/X/Replace bottom cushion, pad and lock assembly. Replace corroded seatsprings and lowerbolts1097, 1099, 1100, 1102, 1106,1.5011862393Bottom seat cushion1
4012173789Bottom underside pad1
5013745430Bottom pad lockwasher4
6010841222 Internal Height Spring2
7011871036 Lock ***. - Pin1
8000589737 Lock ***. - Pin1
9011975064 Lock ***. - Spring1
10011871088 Lock ***. - Spacer1
11010078299 Seat Service PIN 2
12000680510Screw to floor3
13013819948Washer to floor3
1451FF/X/lubricate sticking bracket.7030.25
1552XX/X/Replace seat bottom cushion, mounting.1114, 1116, 11201011441454 Bottom cushion1
16005501130Bottom seat lockwasher4
17005765752Lockwasher1
Sheet2


I hope that I have made it clear, I understand the difficulties of helping when you are not familiar with the work or exactly what is being required
Thanks you to any and all that help
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

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