Finding Maximum Depending on Multiple Conditions

elgre

New Member
Joined
Feb 18, 2022
Messages
13
Office Version
  1. 2016
Platform
  1. Windows
Hello everyone,
I am trying to find maximum value of a range, depending on 2conditions, please see below.
1645213006220.png

For instance, what I am trying to do is,
- if L2 is Beam1, and M2 is Max Nxx, find the maximum value of D2:D9 (the Beam1 range for Nxx) and type into N2
- if L2 is Beam1, and M2 is Max Nxy, find the maximum value of E2:E9 (the Beam1 range for Nxy) and type into O2
- if L2 is Beam1, and M2 is Max Nxz, find the maximum value of F2:F9 (the Beam1 range for NxZ) and type into P2
- if L2 is Beam1, and M2 is Max Mxx, find the maximum value of G2:G9 (the Beam1 range for Nxx) and type into N2
- if L2 is Beam1, and M2 is Max Mxy, find the maximum value of H2:H9 (the Beam1 range for Nxy) and type into O2
- if L2 is Beam1, and M2 is Max Mxz, find the maximum value of I2I9 (the Beam1 range for NxZ) and type into P2

- if L2 is Beam1, and M2 is Max Nxx, find the minimum value of D2:D9 (the Beam1 range for Nxx) and type into N2
- if L2 is Beam1, and M2 is Max Nxy, find the minimum value of E2:E9 (the Beam1 range for Nxy) and type into O2
- if L2 is Beam1, and M2 is Max Nxz, find the minimum value of F2:F9 (the Beam1 range for NxZ) and type into P2
- if L2 is Beam1, and M2 is Max Mxx, find the minimum value of G2:G9 (the Beam1 range for Nxx) and type into N2
- if L2 is Beam1, and M2 is Max Mxy, find the minimum value of H2:H9 (the Beam1 range for Nxy) and type into O2
- if L2 is Beam1, and M2 is Max Mxz, find the minimum value of I2I9 (the Beam1 range for NxZ) and type into P2

- do these steps for L3, L4, L5 and so on until the data finishes in column A (L2,L3,L,4,... data depending on A column)

I tried to use index, max(if) as boolean logic but the formula got really complicated and did not give me the results I wanted.

I hope it is clear but please let me know if you need more explanation.

Any help from your side would be really appreciated. Thank you very much in advance.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Check if this is what you need:

varios 18feb2022.xlsm
ABCDEFGHIJKLMNOPQRS
1NameposlengNXX [N]NXY [N]NXZ [N]MXX [N*m]MXY [N*m]MXZ [N*m]NXX [N]NXY [N]NXZ [N]MXX [N*m]MXY [N*m]MXZ [N*m]
2Beam1755752316486312404Beam1Max755768571766726794
3Beam1551525357760580313Beam1Min452525316371312313
4Beam1647757457732592794Beam2Max789772780749780774
5Beam1452612571371632445Beam2Min454387459438442412
6Beam1594768563718432502Beam3Max684741707719703712
7Beam1603627391766726351Beam3Min374483305437546317
8Beam1678549356480712731
9Beam2558772779749780666
10Beam2454681780663549412
11Beam2502387459665665469
12Beam2787763690465442492
13Beam2789503763556673774
14Beam2657615648438468652
15Beam3684741707719548317
16Beam3376483579437576712
17Beam3374652305531703661
18Beam3649721377521546543
Hoja2
Cell Formulas
RangeFormula
N2:S7N2=IF($M2="Max",MAX(IF($A$2:$A$18=$L2,IF($D$1:$I$1=N$1,$D$2:$I$18))),MIN(IF($A$2:$A$18=$L2,IF($D$1:$I$1=N$1,$D$2:$I$18))))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Welcome to the MrExcel board!

For next time:
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.

- if L2 is Beam1, and M2 is Max Nxy, find the maximum value of E2:E9 (the Beam1 range for Nxy) and type into O2
A bit confusing. In your sample data, it looks like this value might actually be Nyx?

If so, perhaps it is more this sort of thing you are after?

22 02 19.xlsm
ADEFGHIJKLMNOPQRS
1NameNXX [N]NXY [N]NXZ [N]MXX [N*m]MXY [N*m]MXZ [N*m]NXX [N]NXY [N]NXZ [N]MXX [N*m]MXY [N*m]MXZ [N*m]
2Beam1755752316486312404Beam1Max Nxx755     
3Beam1551525357760580313Beam1Min Nxy 525    
4Beam1647757457732592794Beam2Max Mxx   749  
5Beam1452612571371632445Beam2Min Mxz     412
6Beam1594768563718432502Beam3Max Mxy    703 
7Beam1603627391766726351Beam3Min Nxz  305   
8Beam1678549356480712731
9Beam2558772779749780666
10Beam2454681780663549412
11Beam2502387459665665469
12Beam2787763690465442492
13Beam2789503763556673774
14Beam2657615648438468652
15Beam3684741707719548317
16Beam3376483579437576712
17Beam3374652305531703661
18Beam3649721377521546543
Max Min
Cell Formulas
RangeFormula
N2:S7N2=IF(RIGHT($M2,3)=LEFT(N$1,3),AGGREGATE(IF(LEFT($M2,3)="Max",14,15),6,INDEX($D$2:$I$18,0,MATCH(N$1,$D$1:$I$1,0))/($A$2:$A$18=$L2),1),"")
 
Upvote 0
Hi both,

Thank you very much for your responses and thanks for introducing XL2BB. I am quite new to here but I will definitely get myself familiar with more features!

I know, the thing I am trying to achieve is a bit complicated (even explaining!) but hopefully we can sort it out. I attached a simplified version of my workbook I am working on, where the cells are manually saved for the reference.

I hope it makes it a bit simpler.

Thank you very much again for your help.

Test.xlsx
ABCDEFGHIJKLMNOPQRST
1NamePositionLength [m]NXX [N]NXY [N]NXZ [N]MXX [N*m]MXY [N*m]MXZ [N*m]NameLoadNXX [N]NXY [N]NXZ [N]MXX [N*m]MXY [N*m]MXZ [N*m]
2RP_Bm100304.925-844.201-4012.25-78.8421304.925328.703RP_Bm1Max Nxx2514.330-1329.07-977.51718.3758-546.222449.834Find the 2514.330 in D:D, which is max value of Nxx for RP_Bm1 and write the rest of the data, highlighted in yellow. For instance for this row, it is on row210
3RP_Bm110.725415.847-579.474-3171.93-78.8421393.444-187.331RP_Bm1Max Nxy1674.620-72.853-3244.800-97.997-1766.250275.349Find the -72.853 in E:E, which is max value of Nxy for RP_Bm1 and write the rest of the data, highlighted in yellow. For instance for this row, it is on row156
4RP_Bm100304.925-749.923-4004.62-78.915-2205.39310.541RP_Bm1Max Nxz-721.100Do this for RP_Bm10, RO_Bm103, and so on, continue until data finishes in column A:A
5RP_Bm110.725304.925-513.525-3164.3-78.915392.65-147.416RP_Bm1Max Mxx18.376
6RP_Bm100491.227-579.67-3980.92-85.9569-2187.9303.333RP_Bm1Max Mxy399.018
7RP_Bm110.725491.227-440.064-3140.59-85.9569392.957-66.2948RP_Bm1Max Mxz449.834
8RP_Bm100873.673-380.372-3954.64-94.5345-2167.93294.966RP_Bm1Min Nxx-34.312
9RP_Bm110.725873.673-380.372-3114.31-94.5345393.87819.196RP_Bm1Min Nxy-1446.400
10RP_Bm1001345.86-212.968-3931.27-103.778-2149.46292.69RP_Bm1Min Nxz-4012.250
11RP_Bm110.7251345.86-351.575-3090.95-103.778395.40588.0184RP_Bm1Min Mxx-114.185
12RP_Bm1001801.8-133.639-3916.45-111.022-2137.07304.415RP_Bm1Min Mxy-2209.500
13RP_Bm110.7251801.8-370.254-3076.13-111.022397.054121.711RP_Bm1Min Mxz-556.296
14RP_Bm1002129.11-160.057-3912.95-114.041-2133.4325.863RP_Bm10Max Nxx
15RP_Bm110.7252129.11-422.037-3072.62-114.041398.181114.806RP_Bm10Max Nxy
16RP_Bm1002234.21-281.519-3920.57-112.989-2138.22348.731RP_Bm10Max Nxz
17RP_Bm110.7252234.21-507.319-3080.25-112.989398.89462.7361RP_Bm10Max Mxx
18RP_Bm1002042.26-469.123-3942.31-106.102-2154.1357.831RP_Bm10Max Mxy
19RP_Bm110.7252042.26-599.863-3101.99-106.102398.776-29.7RP_Bm10Max Mxz
20RP_Bm1001589.84-651.413-3967.03-99.606-2172.49359.884RP_Bm10Min Nxx
21RP_Bm110.7251589.84-651.413-3126.71-99.606398.301-112.391RP_Bm10Min Nxy
22RP_Bm1001126.72-766.254-3990.02-92.5375-2190.49354.177RP_Bm10Min Nxz
23RP_Bm1012.147391098.891455.37-451.537388.16996.467100.971RP_Bm10Min Mxx
24RP_Bm1000-753.268-127.7881275.32332.454-480.992109.534RP_Bm10Min Mxy
25RP_Bm1012.14739879.373700.826-446.277378.76471.7518155.566RP_Bm10Min Mxz
26RP_Bm1000930.687-145.602390.093146.17-131.7488.0633RP_Bm103Max Nxx
27RP_Bm1012.14739464.855-36.4774-223.167102.642-15.4912150.549RP_Bm103Max Nxy
28RP_Bm10001355.04-199.505534.882149.668-281.18846.0798RP_Bm103Max Nxz
29RP_Bm1012.14739222.142-225.222-271.857138.02-2.32233118.243RP_Bm103Max Mxx
30RP_Bm10001084.18-209.461702.1140.62-445.202-0.705403RP_Bm103Max Mxy
31RP_Bm1012.14739-11.3334-194.737-314.03181.92725.0452.6684RP_Bm103Max Mxz
32RP_Bm1000674.223-150.049792.255119.323-546.768-41.2227RP_Bm103Min Nxx
33RP_Bm1012.14739-265.225-192.698-273.542201.62451.2093-20.645RP_Bm103Min Nxy
34RP_Bm1000-553.141-75.9508839.23993.7811-583.022-60.2077RP_Bm103Min Nxz
35RP_Bm1012.14739-325.13171.064-246.844218.31479.9909-94.6941RP_Bm103Min Mxx
36RP_Bm1000-1901.7625.4742785.90767.7753-519.314-51.0528RP_Bm103Min Mxy
37RP_Bm1012.14739-249.118600.454-185.018209.11997.3214-143.794RP_Bm103Min Mxz
38RP_Bm1000-2874.83118.494679.0551.4715-403.908-23.1999
39RP_Bm1012.14739-63.9375934.351-125.2185.24499.9716-151.381
40RP_Bm1000-3678.96150.71546.06850.3216-247.92323.9137
41RP_Bm1012.14739282.1111325.15-116.268159.69189.8917-118.611
42RP_Bm1000-4107.94116.845413.91363.463-86.824278.8625
43RP_Bm1012.14739685.5251664.96-150.93136.2669.2678-56.1412
44RP_Bm1000-3426.9658.2307308.11685.405419.1858118.842
45RP_Bm1012.147398.92E+021.54E+03-1.68E+021.09E+023.87E+012.23E+01
46RP_Bm1000-2529.68-34.499280.571111.17453.8998135.271
47RP_Bm1012.14739996.2931339-229.887103.80915.824487.1615
48RP_Bm1000-666.559-95.6609308.535132.645-12.6949120.549
49RP_Bm1012.14739782.731625.033-225.70496.0939-6.33297136.511
50RP_Bm1000761.599-141.892385.969142.956-134.53885.4997
51RP_Bm1012.14739467.15423.1408-195.647100.427-13.8794142.878
52RP_Bm10001275.83-187.909527.021146.177-285.29543.8343
53RP_Bm1012.14739213.994-211.61-234.698132.862-2.03063113.228
54RP_Bm10001041.62-196.756692.027137.743-449.966-0.858227
55RP_Bm1012.14739-10.1989-192.764-273.579174.98923.843651.555
56RP_Bm1000626.438-143.83774.557117.727-539.402-40.5196
57RP_Bm1012.14739-244.347-175.634-239.299194.68749.2614-18.3672
58RP_Bm1000-534.575-73.6755819.16393.5182-575.961-57.5607
59RP_Bm1012.14739-298.745169.435-210.977209.6676.0258-87.756
60RP_Bm1000-1839.9320.8698762.81668.8765-508.469-47.7618
61RP_Bm1012.14739-219.128591.027-151.954200.06992.1366-133.967
62RP_Bm1000-2810.51106.659656.39453.4752-391.429-20.0798
63RP_Bm1012.14739-32.8272932.104-97.1656177.17394.6123-141.288
64RP_Bm1000-3573.58138.01526.41552.2678-240.28325.7406
65RP_Bm1012.14739295.1281302.3-86.1563151.68984.544-109.967
66RP_Bm1000-4107.53100.184400.51664.8752-80.941279.3191
67RP_Bm1012.14739702.5191687.31-128.601131.6466.0773-52.2624
68RP_Bm1000-3394.4150.1576297.11185.303818.4153117.98
69RP_Bm1012.14739882.7891535.98-136.761102.8636.005822.8523
70RP_Bm1000-2559.96-38.2861275.003109.75248.5762132.899
71RP_Bm1012.14739982.6261348.99-199.34299.741414.999883.543
72RP_Bm1000392.684-26.039230.332125.8494.62976117.63
73RP_Bm1012.14739535.03366.5711-79.133154.1882-21.6308145.655
74RP_Bm1000655.919-195.521367.47347.156-601.59677.8227
75RP_Bm1012.14739594.651141.023-464.502391.46164.7178166.335
76RP_Bm10001272.8-243.5081510.14350.191-756.48832.8841
77RP_Bm1012.14739298.492-144.969-498.96423.46476.5129133.456
78RP_Bm1000993.032-248.1721676.42339.411-920.069-16.5231
79RP_Bm1012.1473940.2367-125.371-535.169467.111105.23862.5954
80RP_Bm1000524.12-185.7431777.49316.872-1033.8-58.0322
81RP_Bm1012.14739-224.823-107.522-494.979488.873133.18-15.8124
82RP_Bm1000-643.354-98.10381819.78289.386-1068.47-79.6343
83RP_Bm1012.14739-315.447208.246-456.431503.331162.515-92.8591
84RP_Bm1000-2175.560.9331251778.84263.263-1010.09-69.7296
85RP_Bm1012.14739-205.53721.229-411.27499.754182.626-145.006
86RP_Bm1000-3372.4986.57551678.44246.977-892.791-39.8657
87RP_Bm1012.1473928.87131164.41-367.843480.584187.625-154.514
88RP_Bm1000-4135.36123.9691540.79245.419-734.4827.43612
89RP_Bm1012.14739371.3591532.7-352.604452.957176.865-120.266
90RP_Bm1000-4279.02104.9721388.79257.921-565.50661.2144
91RP_Bm1012.14739727.3651732.07-358.05420.226152.274-52.2029
92RP_Bm1000-4009.7422.01531294.22282.19-445.914103.574
93RP_Bm1012.147391037.51826.81-423.402404.978126.37924.4551
94RP_Bm1000-2688.82-56.66931250.88308.613-417.677122.171
95RP_Bm1012.147391081.061427.34-446.786387.46296.2947100.143
96RP_Bm1000-807.296-128.7221279.87332.013-483.746108.704
97RP_Bm1012.14739879.728722.382-449.767380.59872.9999152.78
98RP_Bm1000797.048-149.335396.158145.872-133.2488.4811
99RP_Bm10300-88.7932-251.286-1881.01-224.545-1167.62280.179
100RP_Bm10310.665-88.7932-506.982-1133.21-224.545-165.60728.0123
101RP_Bm1030026.4276-336.31-1844.55-197.293-1130.37317.322
102RP_Bm10310.66526.4276-556.684-1096.75-197.293-152.59320.3647
103RP_Bm10300-272.787318.134-1571.0643.7993-862.263147.933
104RP_Bm10310.665-272.787190.778-823.2643.7993-66.3632317.125
105RP_Bm10300223.987-616.771-1783.74-149.067-1066.08382.145
106RP_Bm10310.665223.987-616.771-1035.94-149.067-128.745-28.0073
107RP_Bm10300243.765-812.547-1784.41-150.673-1065.87426.697
108RP_Bm10310.665243.765-668.583-1036.6-150.673-128.095-65.7545
109RP_Bm10300200.265-997.843-1807.97-170.181-1088.53480.585
110RP_Bm10310.665200.265-752.302-1060.17-170.181-135.084-101.297
111RP_Bm1030091.0047-1110.65-1833.38-188.048-1114.56533.811
112RP_Bm10310.66591.0047-823.545-1085.57-188.048-144.225-109.26
113RP_Bm10300-40.8909-1070.94-1867.68-214.211-1149.25525.494
114RP_Bm10310.665-40.8909-817.059-1119.87-214.211-156.104-102.222
115RP_Bm10300-173.197-904.654-1907.38-244.798-1192.09478.99
116RP_Bm10310.665-173.197-755.19-1159.58-244.798-172.534-72.883
117RP_Bm10300-249.894-683.745-1932.98-263.978-1218.76414.602
118RP_Bm10310.665-249.894-683.745-1185.18-263.978-182.191-40.088
119RP_Bm10300-252.518-462.783-1940.05-268.861-1225.93346.307
120RP_Bm10310.665-252.518-610.872-1192.25-268.861-184.649-10.7081
121RP_Bm10300-194.293-287.279-1921.17-253.984-1207.09290.732
122RP_Bm10310.665-194.293-539.013-1173.37-253.984-178.36515.9487
123RP_Bm10300-85.5642-266.185-1888.38-229.738-1174.51296.083
124RP_Bm10310.665-85.5642-549.436-1140.58-229.738-167.59424.8418
125RP_Bm1030038.2749-305.814-1852.63-202.084-1138.69305.408
126RP_Bm10310.66538.2749-550.641-1104.83-202.084-155.54920.5962
127RP_Bm10300153.068-442.545-1810.06-168.803-1093.47340.945
128RP_Bm10310.665153.068-584.171-1062.26-168.803-138.636-0.461399
129RP_Bm10300195.768-615.651-1775.03-143.588-1056.78388.729
130RP_Bm10310.665195.768-615.651-1027.22-143.588-125.243-20.6789
131RP_Bm10300221.429-809.537-1779.09-147.636-1059.56433.064
132RP_Bm10310.665221.429-676.142-1031.28-147.636-125.32-60.9025
133RP_Bm10300189.27-984.88-1804.82-168.484-1084.21479.581
134RP_Bm10310.665189.27-754.277-1057.02-168.484-132.858-98.6503
135RP_Bm1030086.7061-1088.72-1827.58-184.484-1107.22528.736
136RP_Bm10310.66586.7061-820.899-1079.77-184.484-140.74-106.167
137RP_Bm10300-34.5863-1053.67-1860.77-210.054-1140.72520.368
138RP_Bm10310.665-34.5863-815.949-1112.97-210.054-152.165-101.241
139RP_Bm10300-165.953-891.82-1894.79-236.08-1178.07477.097
140RP_Bm10310.665-165.953-750.971-1146.99-236.08-166.894-69.1081
141RP_Bm10300-238.978-684.551-1920.98-255.534-1205.72417.108
142RP_Bm10310.665-238.978-684.551-1173.18-255.534-177.127-38.1183
143RP_Bm10300-246.785-472.858-1923.37-257.041-1208.51354.838
144RP_Bm10310.665-246.785-612.422-1175.57-257.041-178.324-6.04051
145RP_Bm10300-187.957-311.672-1908.43-245.39-1193.81302.351
146RP_Bm10310.665-187.957-547.394-1160.63-245.39-173.56116.6725
147RP_Bm10300-86.8761-290.347-1878.44-222.905-1164.36306.359
148RP_Bm10310.665-86.8761-553.797-1130.64-222.905-164.04625.6379
149RP_Bm1030029.1411-323.671-1845.01-197.283-1130.62312.107
150RP_Bm10310.66529.1411-551.38-1097.21-197.283-152.54721.1152
Test
 
Upvote 0
Just to clarify a bit better, I included some formula. I know it is a bit complicated and I am certainly open to any suggestions, regarding presentation/organisation of the data, if it makes it better and easier.

Thank you very much again for you help!

Test.xlsx
ABCDEFGHIJKLMNOPQRST
1NamePositionLength [m]NXX [N]NXY [N]NXZ [N]MXX [N*m]MXY [N*m]MXZ [N*m]NameLoadNXX [N]NXY [N]NXZ [N]MXX [N*m]MXY [N*m]MXZ [N*m]
2RP_Bm100304.925-844.201-4012.25-78.8421304.925328.703RP_Bm1Max Nxx2234.210-1329.07-977.51718.3758-546.222449.834Find the 2514.330 in D:D, which is max value of Nxx for RP_Bm1 and write the rest of the data, highlighted in yellow. For instance for this row, it is on row210
3RP_Bm110.725415.847-579.474-3171.93-78.8421393.444-187.331RP_Bm1Max Nxy1674.620-133.639-3244.800-97.997-1766.250275.349Find the -72.853 in E:E, which is max value of Nxy for RP_Bm1 and write the rest of the data, highlighted in yellow. For instance for this row, it is on row156
4RP_Bm100304.925-749.923-4004.62-78.915-2205.39310.541RP_Bm1Max Nxz-3072.620Do this for RP_Bm10, RP_Bm103, and so on, continue until data finishes in column A:A
5RP_Bm110.725304.925-513.525-3164.3-78.915392.65-147.416RP_Bm1Max Mxx-78.842
6RP_Bm100491.227-579.67-3980.92-85.9569-2187.9303.333RP_Bm1Max Mxy398.894
7RP_Bm110.725491.227-440.064-3140.59-85.9569392.957-66.2948RP_Bm1Max Mxz359.884
8RP_Bm100873.673-380.372-3954.64-94.5345-2167.93294.966RP_Bm1Min Nxx304.925
9RP_Bm110.725873.673-380.372-3114.31-94.5345393.87819.196RP_Bm1Min Nxy-844.201
10RP_Bm1001345.86-212.968-3931.27-103.778-2149.46292.69RP_Bm1Min Nxz-4012.250
11RP_Bm110.7251345.86-351.575-3090.95-103.778395.40588.0184RP_Bm1Min Mxx-114.041
12RP_Bm1001801.8-133.639-3916.45-111.022-2137.07304.415RP_Bm1Min Mxy-2205.390
13RP_Bm110.7251801.8-370.254-3076.13-111.022397.054121.711RP_Bm1Min Mxz-187.331
14RP_Bm1002129.11-160.057-3912.95-114.041-2133.4325.863RP_Bm10Max Nxx
15RP_Bm110.7252129.11-422.037-3072.62-114.041398.181114.806RP_Bm10Max Nxy
16RP_Bm1002234.21-281.519-3920.57-112.989-2138.22348.731RP_Bm10Max Nxz
17RP_Bm110.7252234.21-507.319-3080.25-112.989398.89462.7361RP_Bm10Max Mxx
18RP_Bm1002042.26-469.123-3942.31-106.102-2154.1357.831RP_Bm10Max Mxy
19RP_Bm110.7252042.26-599.863-3101.99-106.102398.776-29.7RP_Bm10Max Mxz
20RP_Bm1001589.84-651.413-3967.03-99.606-2172.49359.884RP_Bm10Min Nxx
21RP_Bm110.7251589.84-651.413-3126.71-99.606398.301-112.391RP_Bm10Min Nxy
22RP_Bm1001126.72-766.254-3990.02-92.5375-2190.49354.177RP_Bm10Min Nxz
23RP_Bm1012.147391098.891455.37-451.537388.16996.467100.971RP_Bm10Min Mxx
24RP_Bm1000-753.268-127.7881275.32332.454-480.992109.534RP_Bm10Min Mxy
25RP_Bm1012.14739879.373700.826-446.277378.76471.7518155.566RP_Bm10Min Mxz
26RP_Bm1000930.687-145.602390.093146.17-131.7488.0633RP_Bm103Max Nxx
27RP_Bm1012.14739464.855-36.4774-223.167102.642-15.4912150.549RP_Bm103Max Nxy
28RP_Bm10001355.04-199.505534.882149.668-281.18846.0798RP_Bm103Max Nxz
29RP_Bm1012.14739222.142-225.222-271.857138.02-2.32233118.243RP_Bm103Max Mxx
30RP_Bm10001084.18-209.461702.1140.62-445.202-0.705403RP_Bm103Max Mxy
31RP_Bm1012.14739-11.3334-194.737-314.03181.92725.0452.6684RP_Bm103Max Mxz
32RP_Bm1000674.223-150.049792.255119.323-546.768-41.2227RP_Bm103Min Nxx
33RP_Bm1012.14739-265.225-192.698-273.542201.62451.2093-20.645RP_Bm103Min Nxy
34RP_Bm1000-553.141-75.9508839.23993.7811-583.022-60.2077RP_Bm103Min Nxz
35RP_Bm1012.14739-325.13171.064-246.844218.31479.9909-94.6941RP_Bm103Min Mxx
36RP_Bm1000-1901.7625.4742785.90767.7753-519.314-51.0528RP_Bm103Min Mxy
37RP_Bm1012.14739-249.118600.454-185.018209.11997.3214-143.794RP_Bm103Min Mxz
38RP_Bm1000-2874.83118.494679.0551.4715-403.908-23.1999
39RP_Bm1012.14739-63.9375934.351-125.2185.24499.9716-151.381
40RP_Bm1000-3678.96150.71546.06850.3216-247.92323.9137
41RP_Bm1012.14739282.1111325.15-116.268159.69189.8917-118.611
42RP_Bm1000-4107.94116.845413.91363.463-86.824278.8625
43RP_Bm1012.14739685.5251664.96-150.93136.2669.2678-56.1412
44RP_Bm1000-3426.9658.2307308.11685.405419.1858118.842
45RP_Bm1012.147398.92E+021.54E+03-1.68E+021.09E+023.87E+012.23E+01
46RP_Bm1000-2529.68-34.499280.571111.17453.8998135.271
47RP_Bm1012.14739996.2931339-229.887103.80915.824487.1615
48RP_Bm1000-666.559-95.6609308.535132.645-12.6949120.549
49RP_Bm1012.14739782.731625.033-225.70496.0939-6.33297136.511
50RP_Bm1000761.599-141.892385.969142.956-134.53885.4997
51RP_Bm1012.14739467.15423.1408-195.647100.427-13.8794142.878
52RP_Bm10001275.83-187.909527.021146.177-285.29543.8343
53RP_Bm1012.14739213.994-211.61-234.698132.862-2.03063113.228
54RP_Bm10001041.62-196.756692.027137.743-449.966-0.858227
55RP_Bm1012.14739-10.1989-192.764-273.579174.98923.843651.555
56RP_Bm1000626.438-143.83774.557117.727-539.402-40.5196
57RP_Bm1012.14739-244.347-175.634-239.299194.68749.2614-18.3672
58RP_Bm1000-534.575-73.6755819.16393.5182-575.961-57.5607
59RP_Bm1012.14739-298.745169.435-210.977209.6676.0258-87.756
60RP_Bm1000-1839.9320.8698762.81668.8765-508.469-47.7618
61RP_Bm1012.14739-219.128591.027-151.954200.06992.1366-133.967
62RP_Bm1000-2810.51106.659656.39453.4752-391.429-20.0798
63RP_Bm1012.14739-32.8272932.104-97.1656177.17394.6123-141.288
64RP_Bm1000-3573.58138.01526.41552.2678-240.28325.7406
65RP_Bm1012.14739295.1281302.3-86.1563151.68984.544-109.967
66RP_Bm1000-4107.53100.184400.51664.8752-80.941279.3191
67RP_Bm1012.14739702.5191687.31-128.601131.6466.0773-52.2624
68RP_Bm1000-3394.4150.1576297.11185.303818.4153117.98
69RP_Bm1012.14739882.7891535.98-136.761102.8636.005822.8523
70RP_Bm1000-2559.96-38.2861275.003109.75248.5762132.899
71RP_Bm1012.14739982.6261348.99-199.34299.741414.999883.543
72RP_Bm1000392.684-26.039230.332125.8494.62976117.63
73RP_Bm1012.14739535.03366.5711-79.133154.1882-21.6308145.655
74RP_Bm1000655.919-195.521367.47347.156-601.59677.8227
75RP_Bm1012.14739594.651141.023-464.502391.46164.7178166.335
76RP_Bm10001272.8-243.5081510.14350.191-756.48832.8841
77RP_Bm1012.14739298.492-144.969-498.96423.46476.5129133.456
78RP_Bm1000993.032-248.1721676.42339.411-920.069-16.5231
79RP_Bm1012.1473940.2367-125.371-535.169467.111105.23862.5954
80RP_Bm1000524.12-185.7431777.49316.872-1033.8-58.0322
81RP_Bm1012.14739-224.823-107.522-494.979488.873133.18-15.8124
82RP_Bm1000-643.354-98.10381819.78289.386-1068.47-79.6343
83RP_Bm1012.14739-315.447208.246-456.431503.331162.515-92.8591
84RP_Bm1000-2175.560.9331251778.84263.263-1010.09-69.7296
85RP_Bm1012.14739-205.53721.229-411.27499.754182.626-145.006
86RP_Bm1000-3372.4986.57551678.44246.977-892.791-39.8657
87RP_Bm1012.1473928.87131164.41-367.843480.584187.625-154.514
88RP_Bm1000-4135.36123.9691540.79245.419-734.4827.43612
89RP_Bm1012.14739371.3591532.7-352.604452.957176.865-120.266
90RP_Bm1000-4279.02104.9721388.79257.921-565.50661.2144
91RP_Bm1012.14739727.3651732.07-358.05420.226152.274-52.2029
92RP_Bm1000-4009.7422.01531294.22282.19-445.914103.574
93RP_Bm1012.147391037.51826.81-423.402404.978126.37924.4551
94RP_Bm1000-2688.82-56.66931250.88308.613-417.677122.171
95RP_Bm1012.147391081.061427.34-446.786387.46296.2947100.143
96RP_Bm1000-807.296-128.7221279.87332.013-483.746108.704
97RP_Bm1012.14739879.728722.382-449.767380.59872.9999152.78
98RP_Bm1000797.048-149.335396.158145.872-133.2488.4811
99RP_Bm10300-88.7932-251.286-1881.01-224.545-1167.62280.179
100RP_Bm10310.665-88.7932-506.982-1133.21-224.545-165.60728.0123
101RP_Bm1030026.4276-336.31-1844.55-197.293-1130.37317.322
102RP_Bm10310.66526.4276-556.684-1096.75-197.293-152.59320.3647
103RP_Bm10300-272.787318.134-1571.0643.7993-862.263147.933
104RP_Bm10310.665-272.787190.778-823.2643.7993-66.3632317.125
105RP_Bm10300223.987-616.771-1783.74-149.067-1066.08382.145
106RP_Bm10310.665223.987-616.771-1035.94-149.067-128.745-28.0073
107RP_Bm10300243.765-812.547-1784.41-150.673-1065.87426.697
108RP_Bm10310.665243.765-668.583-1036.6-150.673-128.095-65.7545
109RP_Bm10300200.265-997.843-1807.97-170.181-1088.53480.585
110RP_Bm10310.665200.265-752.302-1060.17-170.181-135.084-101.297
111RP_Bm1030091.0047-1110.65-1833.38-188.048-1114.56533.811
112RP_Bm10310.66591.0047-823.545-1085.57-188.048-144.225-109.26
113RP_Bm10300-40.8909-1070.94-1867.68-214.211-1149.25525.494
114RP_Bm10310.665-40.8909-817.059-1119.87-214.211-156.104-102.222
115RP_Bm10300-173.197-904.654-1907.38-244.798-1192.09478.99
116RP_Bm10310.665-173.197-755.19-1159.58-244.798-172.534-72.883
117RP_Bm10300-249.894-683.745-1932.98-263.978-1218.76414.602
118RP_Bm10310.665-249.894-683.745-1185.18-263.978-182.191-40.088
119RP_Bm10300-252.518-462.783-1940.05-268.861-1225.93346.307
120RP_Bm10310.665-252.518-610.872-1192.25-268.861-184.649-10.7081
121RP_Bm10300-194.293-287.279-1921.17-253.984-1207.09290.732
122RP_Bm10310.665-194.293-539.013-1173.37-253.984-178.36515.9487
123RP_Bm10300-85.5642-266.185-1888.38-229.738-1174.51296.083
124RP_Bm10310.665-85.5642-549.436-1140.58-229.738-167.59424.8418
125RP_Bm1030038.2749-305.814-1852.63-202.084-1138.69305.408
126RP_Bm10310.66538.2749-550.641-1104.83-202.084-155.54920.5962
127RP_Bm10300153.068-442.545-1810.06-168.803-1093.47340.945
128RP_Bm10310.665153.068-584.171-1062.26-168.803-138.636-0.461399
129RP_Bm10300195.768-615.651-1775.03-143.588-1056.78388.729
130RP_Bm10310.665195.768-615.651-1027.22-143.588-125.243-20.6789
131RP_Bm10300221.429-809.537-1779.09-147.636-1059.56433.064
132RP_Bm10310.665221.429-676.142-1031.28-147.636-125.32-60.9025
133RP_Bm10300189.27-984.88-1804.82-168.484-1084.21479.581
134RP_Bm10310.665189.27-754.277-1057.02-168.484-132.858-98.6503
135RP_Bm1030086.7061-1088.72-1827.58-184.484-1107.22528.736
136RP_Bm10310.66586.7061-820.899-1079.77-184.484-140.74-106.167
137RP_Bm10300-34.5863-1053.67-1860.77-210.054-1140.72520.368
138RP_Bm10310.665-34.5863-815.949-1112.97-210.054-152.165-101.241
139RP_Bm10300-165.953-891.82-1894.79-236.08-1178.07477.097
140RP_Bm10310.665-165.953-750.971-1146.99-236.08-166.894-69.1081
141RP_Bm10300-238.978-684.551-1920.98-255.534-1205.72417.108
142RP_Bm10310.665-238.978-684.551-1173.18-255.534-177.127-38.1183
143RP_Bm10300-246.785-472.858-1923.37-257.041-1208.51354.838
144RP_Bm10310.665-246.785-612.422-1175.57-257.041-178.324-6.04051
Test
Cell Formulas
RangeFormula
M2M2=MAX(D2:D22)
N3N3=MAX(E2:E22)
O4O4=MAX(F2:F22)
P5P5=MAX(G2:G22)
Q6Q6=MAX(H2:H22)
R7R7=MAX(I2:I22)
M8M8=MIN(D2:D22)
N9N9=MIN(E2:E22)
O10O10=MIN(F2:F22)
P11P11=MIN(G2:G22)
Q12Q12=MIN(H2:H22)
R13R13=MIN(I2:I22)
 
Upvote 0
Glad you have XL2BB going now.
However, you have given us examples where the results came from rows 210 and 156, yet your XL2BB sample does not go that far! ;)
In your sheet, hide rows 20-150 and 160-200 then post your mini-sheet again down to row 210. That way we should be able to see where the results came from without making your post huge.
 
Upvote 0
Could you rewrite your example, because rows 210 and 156 don't exist in your minisheet. So that makes it difficult for me to understand.
And another thing, in cells M2 to R7, there are already values and you only want results in M2, N3, O4, P5, Q6 and R7?
 
Upvote 0
Hi again,

You are perfectly right to flag up these points, apologies. I missed them unfortunately.

I created a new clean version below, hope it makes more sense.

The blue cells should be depending on the data in both K:K and L:L. For instance,

if K2=RP_BM1 and L2="Max Nxx", it should calculate max (D2:D22) and write it to M2. or if K24=RP_BM10 and L24="Min Mxy", it should calculate min (H23:H98) and write it to , etc.

Yellow cells are depending on blue cells9 like vlookup. For instance,

if M2 is 2234.210, it should find the row where D:D is 2234.21 (would be row16 in this case) then N2, O2, P2, Q2, R2 should be coming from this row, if Q24 is (lets say) -1068.47, it should find the row where H:H is 2234.21 (would be row82 in this case) then M24, N24, O24, P24, R24 should be coming from this row.

Hope it is a lot more clear now, even explaining is a kind of VBA writing exercise for me! :D

Test.xlsx
ABCDEFGHIJKLMNOPQRSTUV
1NamePositionLength [m]NXX [N]NXY [N]NXZ [N]MXX [N*m]MXY [N*m]MXZ [N*m]NameLoadNXX [N]NXY [N]NXZ [N]MXX [N*m]MXY [N*m]MXZ [N*m]
2RP_Bm100304.925-844.201-4012.25-78.8421304.925328.703RP_Bm1Max Nxx2234.210-281.519-3920.57-112.989-2138.22348.731Find the 2234.210 in D:D, which is max value of Nxx for RP_Bm1 and write the rest of the data, highlighted in yellow. For instance for this row, it is on row16.
3RP_Bm110.725415.847-579.474-3171.93-78.8421393.444-187.331RP_Bm1Max Nxy1801.800-133.639-3916.450-111.022-2137.070304.415Find the -133.639 in E:E, which is max value of Nxy for RP_Bm1 and write the rest of the data, highlighted in yellow. For instance for this row, it is on row12.
4RP_Bm100304.925-749.923-4004.62-78.915-2205.39310.541RP_Bm1Max Nxz-3072.620
5RP_Bm110.725304.925-513.525-3164.3-78.915392.65-147.416RP_Bm1Max Mxx-78.842Do this for Max Nxz, Max Mxx, Max Mxy, Max Mxz, Min Nxx, Min Nxy, Min Nxz, Min Mxx, Min Mxy, Min Mxz, for RP_Bm1.
6RP_Bm100491.227-579.67-3980.92-85.9569-2187.9303.333RP_Bm1Max Mxy398.894
7RP_Bm110.725491.227-440.064-3140.59-85.9569392.957-66.2948RP_Bm1Max Mxz359.884
8RP_Bm100873.673-380.372-3954.64-94.5345-2167.93294.966RP_Bm1Min Nxx304.925Do this for RP_Bm10, RP_Bm103, and so on, continue until data finishes in column A:A
9RP_Bm110.725873.673-380.372-3114.31-94.5345393.87819.196RP_Bm1Min Nxy-844.201
10RP_Bm1001345.86-212.968-3931.27-103.778-2149.46292.69RP_Bm1Min Nxz-4012.250
11RP_Bm110.7251345.86-351.575-3090.95-103.778395.40588.0184RP_Bm1Min Mxx-114.041
12RP_Bm1001801.8-133.639-3916.45-111.022-2137.07304.415RP_Bm1Min Mxy-2205.390
13RP_Bm110.7251801.8-370.254-3076.13-111.022397.054121.711RP_Bm1Min Mxz-187.331
14RP_Bm1002129.11-160.057-3912.95-114.041-2133.4325.863RP_Bm10Max Nxx
15RP_Bm110.7252129.11-422.037-3072.62-114.041398.181114.806RP_Bm10Max Nxy
16RP_Bm1002234.21-281.519-3920.57-112.989-2138.22348.731RP_Bm10Max Nxz
17RP_Bm110.7252234.21-507.319-3080.25-112.989398.89462.7361RP_Bm10Max Mxx
18RP_Bm1002042.26-469.123-3942.31-106.102-2154.1357.831RP_Bm10Max Mxy
19RP_Bm110.7252042.26-599.863-3101.99-106.102398.776-29.7RP_Bm10Max Mxz
20RP_Bm1001589.84-651.413-3967.03-99.606-2172.49359.884RP_Bm10Min Nxx
21RP_Bm110.7251589.84-651.413-3126.71-99.606398.301-112.391RP_Bm10Min Nxy
22RP_Bm1001126.72-766.254-3990.02-92.5375-2190.49354.177RP_Bm10Min Nxz
23RP_Bm1012.147391098.891455.37-451.537388.16996.467100.971RP_Bm10Min Mxx
24RP_Bm1000-753.268-127.7881275.32332.454-480.992109.534RP_Bm10Min Mxy
25RP_Bm1012.14739879.373700.826-446.277378.76471.7518155.566RP_Bm10Min Mxz
26RP_Bm1000930.687-145.602390.093146.17-131.7488.0633RP_Bm103Max Nxx
27RP_Bm1012.14739464.855-36.4774-223.167102.642-15.4912150.549RP_Bm103Max Nxy
28RP_Bm10001355.04-199.505534.882149.668-281.18846.0798RP_Bm103Max Nxz
29RP_Bm1012.14739222.142-225.222-271.857138.02-2.32233118.243RP_Bm103Max Mxx
30RP_Bm10001084.18-209.461702.1140.62-445.202-0.705403RP_Bm103Max Mxy
31RP_Bm1012.14739-11.3334-194.737-314.03181.92725.0452.6684RP_Bm103Max Mxz
32RP_Bm1000674.223-150.049792.255119.323-546.768-41.2227RP_Bm103Min Nxx
33RP_Bm1012.14739-265.225-192.698-273.542201.62451.2093-20.645RP_Bm103Min Nxy
34RP_Bm1000-553.141-75.9508839.23993.7811-583.022-60.2077RP_Bm103Min Nxz
35RP_Bm1012.14739-325.13171.064-246.844218.31479.9909-94.6941RP_Bm103Min Mxx
36RP_Bm1000-1901.7625.4742785.90767.7753-519.314-51.0528RP_Bm103Min Mxy
37RP_Bm1012.14739-249.118600.454-185.018209.11997.3214-143.794RP_Bm103Min Mxz
38RP_Bm1000-2874.83118.494679.0551.4715-403.908-23.1999
39RP_Bm1012.14739-63.9375934.351-125.2185.24499.9716-151.381
40RP_Bm1000-3678.96150.71546.06850.3216-247.92323.9137
41RP_Bm1012.14739282.1111325.15-116.268159.69189.8917-118.611
42RP_Bm1000-4107.94116.845413.91363.463-86.824278.8625
43RP_Bm1012.14739685.5251664.96-150.93136.2669.2678-56.1412
44RP_Bm1000-3426.9658.2307308.11685.405419.1858118.842
45RP_Bm1012.147398.92E+021.54E+03-1.68E+021.09E+023.87E+012.23E+01
46RP_Bm1000-2529.68-34.499280.571111.17453.8998135.271
47RP_Bm1012.14739996.2931339-229.887103.80915.824487.1615
48RP_Bm1000-666.559-95.6609308.535132.645-12.6949120.549
49RP_Bm1012.14739782.731625.033-225.70496.0939-6.33297136.511
50RP_Bm1000761.599-141.892385.969142.956-134.53885.4997
51RP_Bm1012.14739467.15423.1408-195.647100.427-13.8794142.878
52RP_Bm10001275.83-187.909527.021146.177-285.29543.8343
53RP_Bm1012.14739213.994-211.61-234.698132.862-2.03063113.228
54RP_Bm10001041.62-196.756692.027137.743-449.966-0.858227
55RP_Bm1012.14739-10.1989-192.764-273.579174.98923.843651.555
56RP_Bm1000626.438-143.83774.557117.727-539.402-40.5196
57RP_Bm1012.14739-244.347-175.634-239.299194.68749.2614-18.3672
58RP_Bm1000-534.575-73.6755819.16393.5182-575.961-57.5607
59RP_Bm1012.14739-298.745169.435-210.977209.6676.0258-87.756
60RP_Bm1000-1839.9320.8698762.81668.8765-508.469-47.7618
61RP_Bm1012.14739-219.128591.027-151.954200.06992.1366-133.967
62RP_Bm1000-2810.51106.659656.39453.4752-391.429-20.0798
63RP_Bm1012.14739-32.8272932.104-97.1656177.17394.6123-141.288
64RP_Bm1000-3573.58138.01526.41552.2678-240.28325.7406
65RP_Bm1012.14739295.1281302.3-86.1563151.68984.544-109.967
66RP_Bm1000-4107.53100.184400.51664.8752-80.941279.3191
67RP_Bm1012.14739702.5191687.31-128.601131.6466.0773-52.2624
68RP_Bm1000-3394.4150.1576297.11185.303818.4153117.98
69RP_Bm1012.14739882.7891535.98-136.761102.8636.005822.8523
70RP_Bm1000-2559.96-38.2861275.003109.75248.5762132.899
71RP_Bm1012.14739982.6261348.99-199.34299.741414.999883.543
72RP_Bm1000392.684-26.039230.332125.8494.62976117.63
73RP_Bm1012.14739535.03366.5711-79.133154.1882-21.6308145.655
74RP_Bm1000655.919-195.521367.47347.156-601.59677.8227
75RP_Bm1012.14739594.651141.023-464.502391.46164.7178166.335
76RP_Bm10001272.8-243.5081510.14350.191-756.48832.8841
77RP_Bm1012.14739298.492-144.969-498.96423.46476.5129133.456
78RP_Bm1000993.032-248.1721676.42339.411-920.069-16.5231
79RP_Bm1012.1473940.2367-125.371-535.169467.111105.23862.5954
80RP_Bm1000524.12-185.7431777.49316.872-1033.8-58.0322
81RP_Bm1012.14739-224.823-107.522-494.979488.873133.18-15.8124
82RP_Bm1000-643.354-98.10381819.78289.386-1068.47-79.6343
83RP_Bm1012.14739-315.447208.246-456.431503.331162.515-92.8591
84RP_Bm1000-2175.560.9331251778.84263.263-1010.09-69.7296
85RP_Bm1012.14739-205.53721.229-411.27499.754182.626-145.006
86RP_Bm1000-3372.4986.57551678.44246.977-892.791-39.8657
87RP_Bm1012.1473928.87131164.41-367.843480.584187.625-154.514
88RP_Bm1000-4135.36123.9691540.79245.419-734.4827.43612
89RP_Bm1012.14739371.3591532.7-352.604452.957176.865-120.266
90RP_Bm1000-4279.02104.9721388.79257.921-565.50661.2144
91RP_Bm1012.14739727.3651732.07-358.05420.226152.274-52.2029
92RP_Bm1000-4009.7422.01531294.22282.19-445.914103.574
93RP_Bm1012.147391037.51826.81-423.402404.978126.37924.4551
94RP_Bm1000-2688.82-56.66931250.88308.613-417.677122.171
95RP_Bm1012.147391081.061427.34-446.786387.46296.2947100.143
96RP_Bm1000-807.296-128.7221279.87332.013-483.746108.704
97RP_Bm1012.14739879.728722.382-449.767380.59872.9999152.78
98RP_Bm1000797.048-149.335396.158145.872-133.2488.4811
99RP_Bm10300-88.7932-251.286-1881.01-224.545-1167.62280.179
100RP_Bm10310.665-88.7932-506.982-1133.21-224.545-165.60728.0123
101RP_Bm1030026.4276-336.31-1844.55-197.293-1130.37317.322
102RP_Bm10310.66526.4276-556.684-1096.75-197.293-152.59320.3647
103RP_Bm10300-272.787318.134-1571.0643.7993-862.263147.933
104RP_Bm10310.665-272.787190.778-823.2643.7993-66.3632317.125
105RP_Bm10300223.987-616.771-1783.74-149.067-1066.08382.145
106RP_Bm10310.665223.987-616.771-1035.94-149.067-128.745-28.0073
107RP_Bm10300243.765-812.547-1784.41-150.673-1065.87426.697
108RP_Bm10310.665243.765-668.583-1036.6-150.673-128.095-65.7545
109RP_Bm10300200.265-997.843-1807.97-170.181-1088.53480.585
110RP_Bm10310.665200.265-752.302-1060.17-170.181-135.084-101.297
111RP_Bm1030091.0047-1110.65-1833.38-188.048-1114.56533.811
112RP_Bm10310.66591.0047-823.545-1085.57-188.048-144.225-109.26
113RP_Bm10300-40.8909-1070.94-1867.68-214.211-1149.25525.494
114RP_Bm10310.665-40.8909-817.059-1119.87-214.211-156.104-102.222
115RP_Bm10300-173.197-904.654-1907.38-244.798-1192.09478.99
116RP_Bm10310.665-173.197-755.19-1159.58-244.798-172.534-72.883
117RP_Bm10300-249.894-683.745-1932.98-263.978-1218.76414.602
118RP_Bm10310.665-249.894-683.745-1185.18-263.978-182.191-40.088
119RP_Bm10300-252.518-462.783-1940.05-268.861-1225.93346.307
120RP_Bm10310.665-252.518-610.872-1192.25-268.861-184.649-10.7081
121RP_Bm10300-194.293-287.279-1921.17-253.984-1207.09290.732
122RP_Bm10310.665-194.293-539.013-1173.37-253.984-178.36515.9487
123RP_Bm10300-85.5642-266.185-1888.38-229.738-1174.51296.083
124RP_Bm10310.665-85.5642-549.436-1140.58-229.738-167.59424.8418
125RP_Bm1030038.2749-305.814-1852.63-202.084-1138.69305.408
126RP_Bm10310.66538.2749-550.641-1104.83-202.084-155.54920.5962
127RP_Bm10300153.068-442.545-1810.06-168.803-1093.47340.945
128RP_Bm10310.665153.068-584.171-1062.26-168.803-138.636-0.461399
129RP_Bm10300195.768-615.651-1775.03-143.588-1056.78388.729
130RP_Bm10310.665195.768-615.651-1027.22-143.588-125.243-20.6789
131RP_Bm10300221.429-809.537-1779.09-147.636-1059.56433.064
132RP_Bm10310.665221.429-676.142-1031.28-147.636-125.32-60.9025
133RP_Bm10300189.27-984.88-1804.82-168.484-1084.21479.581
134RP_Bm10310.665189.27-754.277-1057.02-168.484-132.858-98.6503
135RP_Bm1030086.7061-1088.72-1827.58-184.484-1107.22528.736
136RP_Bm10310.66586.7061-820.899-1079.77-184.484-140.74-106.167
Test
Cell Formulas
RangeFormula
M2M2=MAX(D2:D22)
N3N3=MAX(E2:E22)
O4O4=MAX(F2:F22)
P5P5=MAX(G2:G22)
Q6Q6=MAX(H2:H22)
R7R7=MAX(I2:I22)
M8M8=MIN(D2:D22)
N9N9=MIN(E2:E22)
O10O10=MIN(F2:F22)
P11P11=MIN(G2:G22)
Q12Q12=MIN(H2:H22)
R13R13=MIN(I2:I22)
 
Upvote 0
I have used a helper column. See if this is any use.

elgre.xlsm
ADEFGHIJKLMNOPQRS
1NameNXX [N]NXY [N]NXZ [N]MXX [N*m]MXY [N*m]MXZ [N*m]NameLoadNXX [N]NXY [N]NXZ [N]MXX [N*m]MXY [N*m]MXZ [N*m]Idx
2RP_Bm1304.925-844.201-4012.25-78.8421304.925328.703RP_Bm1Max Nxx2234.21-281.519-3920.57-112.989-2138.22348.73116
3RP_Bm1415.847-579.474-3171.93-78.8421393.444-187.331RP_Bm1Max Nxy1801.8-133.639-3916.45-111.022-2137.07304.41512
4RP_Bm1304.925-749.923-4004.62-78.915-2205.39310.541RP_Bm1Max Nxz2129.11-422.037-3072.62-114.041398.181114.80615
5RP_Bm1304.925-513.525-3164.3-78.915392.65-147.416RP_Bm1Max Mxx304.925-844.201-4012.25-78.8421304.925328.7032
6RP_Bm1491.227-579.67-3980.92-85.9569-2187.9303.333RP_Bm1Max Mxy2234.21-507.319-3080.25-112.989398.89462.736117
7RP_Bm1491.227-440.064-3140.59-85.9569392.957-66.2948RP_Bm1Max Mxz1589.84-651.413-3967.03-99.606-2172.49359.88420
8RP_Bm1873.673-380.372-3954.64-94.5345-2167.93294.966RP_Bm1Min Nxx304.925-844.201-4012.25-78.8421304.925328.7032
9RP_Bm1873.673-380.372-3114.31-94.5345393.87819.196RP_Bm1Min Nxy304.925-844.201-4012.25-78.8421304.925328.7032
10RP_Bm11345.86-212.968-3931.27-103.778-2149.46292.69RP_Bm1Min Nxz304.925-844.201-4012.25-78.8421304.925328.7032
11RP_Bm11345.86-351.575-3090.95-103.778395.40588.0184RP_Bm1Min Mxx2129.11-160.057-3912.95-114.041-2133.4325.86314
12RP_Bm11801.8-133.639-3916.45-111.022-2137.07304.415RP_Bm1Min Mxy304.925-749.923-4004.62-78.915-2205.39310.5414
13RP_Bm11801.8-370.254-3076.13-111.022397.054121.711RP_Bm1Min Mxz415.847-579.474-3171.93-78.8421393.444-187.3313
14RP_Bm12129.11-160.057-3912.95-114.041-2133.4325.863RP_Bm10Max Nxx1355.04-199.505534.882149.668-281.18846.079828
15RP_Bm12129.11-422.037-3072.62-114.041398.181114.806RP_Bm10Max Nxy1037.51826.81-423.402404.978126.37924.455193
16RP_Bm12234.21-281.519-3920.57-112.989-2138.22348.731RP_Bm10Max Nxz-643.354-98.10381819.78289.386-1068.47-79.634382
17RP_Bm12234.21-507.319-3080.25-112.989398.89462.7361RP_Bm10Max Mxx-315.447208.246-456.431503.331162.515-92.859183
18RP_Bm12042.26-469.123-3942.31-106.102-2154.1357.831RP_Bm10Max Mxy28.87131164.41-367.843480.584187.625-154.51487
19RP_Bm12042.26-599.863-3101.99-106.102398.776-29.7RP_Bm10Max Mxz594.651141.023-464.502391.46164.7178166.33575
20RP_Bm11589.84-651.413-3967.03-99.606-2172.49359.884RP_Bm10Min Nxx-4279.02104.9721388.79257.921-565.50661.214490
21RP_Bm11589.84-651.413-3126.71-99.606398.301-112.391RP_Bm10Min Nxy993.032-248.1721676.42339.411-920.069-16.523178
22RP_Bm11126.72-766.254-3990.02-92.5375-2190.49354.177RP_Bm10Min Nxz40.2367-125.371-535.169467.111105.23862.595479
23RP_Bm101098.891455.37-451.537388.16996.467100.971RP_Bm10Min Mxx-3678.96150.71546.06850.3216-247.92323.913740
24RP_Bm10-753.268-127.7881275.32332.454-480.992109.534RP_Bm10Min Mxy-643.354-98.10381819.78289.386-1068.47-79.634382
25RP_Bm10879.373700.826-446.277378.76471.7518155.566RP_Bm10Min Mxz28.87131164.41-367.843480.584187.625-154.51487
26RP_Bm10930.687-145.602390.093146.17-131.7488.0633RP_Bm103Max Nxx243.765-812.547-1784.41-150.673-1065.87426.697107
27RP_Bm10464.855-36.4774-223.167102.642-15.4912150.549RP_Bm103Max Nxy-272.787318.134-1571.0643.7993-862.263147.933103
28RP_Bm101355.04-199.505534.882149.668-281.18846.0798RP_Bm103Max Nxz-272.787190.778-823.2643.7993-66.3632317.125104
29RP_Bm10222.142-225.222-271.857138.02-2.32233118.243RP_Bm103Max Mxx-272.787318.134-1571.0643.7993-862.263147.933103
30RP_Bm101084.18-209.461702.1140.62-445.202-0.705403RP_Bm103Max Mxy-272.787190.778-823.2643.7993-66.3632317.125104
31RP_Bm10-11.3334-194.737-314.03181.92725.0452.6684RP_Bm103Max Mxz91.0047-1110.65-1833.38-188.048-1114.56533.811111
32RP_Bm10674.223-150.049792.255119.323-546.768-41.2227RP_Bm103Min Nxx-272.787318.134-1571.0643.7993-862.263147.933103
33RP_Bm10-265.225-192.698-273.542201.62451.2093-20.645RP_Bm103Min Nxy91.0047-1110.65-1833.38-188.048-1114.56533.811111
34RP_Bm10-553.141-75.9508839.23993.7811-583.022-60.2077RP_Bm103Min Nxz-252.518-462.783-1940.05-268.861-1225.93346.307119
35RP_Bm10-325.13171.064-246.844218.31479.9909-94.6941RP_Bm103Min Mxx-252.518-462.783-1940.05-268.861-1225.93346.307119
36RP_Bm10-1901.7625.4742785.90767.7753-519.314-51.0528RP_Bm103Min Mxy-252.518-462.783-1940.05-268.861-1225.93346.307119
37RP_Bm10-249.118600.454-185.018209.11997.3214-143.794RP_Bm103Min Mxz91.0047-823.545-1085.57-188.048-144.225-109.26112
38RP_Bm10-2874.83118.494679.0551.4715-403.908-23.1999
39RP_Bm10-63.9375934.351-125.2185.24499.9716-151.381
40RP_Bm10-3678.96150.71546.06850.3216-247.92323.9137
41RP_Bm10282.1111325.15-116.268159.69189.8917-118.611
42RP_Bm10-4107.94116.845413.91363.463-86.824278.8625
43RP_Bm10685.5251664.96-150.93136.2669.2678-56.1412
44RP_Bm10-3426.9658.2307308.11685.405419.1858118.842
45RP_Bm10891.9671543.55-167.844108.61638.686722.2554
46RP_Bm10-2529.68-34.499280.571111.17453.8998135.271
47RP_Bm10996.2931339-229.887103.80915.824487.1615
48RP_Bm10-666.559-95.6609308.535132.645-12.6949120.549
49RP_Bm10782.731625.033-225.70496.0939-6.33297136.511
50RP_Bm10761.599-141.892385.969142.956-134.53885.4997
51RP_Bm10467.15423.1408-195.647100.427-13.8794142.878
52RP_Bm101275.83-187.909527.021146.177-285.29543.8343
53RP_Bm10213.994-211.61-234.698132.862-2.03063113.228
54RP_Bm101041.62-196.756692.027137.743-449.966-0.858227
55RP_Bm10-10.1989-192.764-273.579174.98923.843651.555
56RP_Bm10626.438-143.83774.557117.727-539.402-40.5196
57RP_Bm10-244.347-175.634-239.299194.68749.2614-18.3672
58RP_Bm10-534.575-73.6755819.16393.5182-575.961-57.5607
59RP_Bm10-298.745169.435-210.977209.6676.0258-87.756
60RP_Bm10-1839.9320.8698762.81668.8765-508.469-47.7618
61RP_Bm10-219.128591.027-151.954200.06992.1366-133.967
62RP_Bm10-2810.51106.659656.39453.4752-391.429-20.0798
63RP_Bm10-32.8272932.104-97.1656177.17394.6123-141.288
64RP_Bm10-3573.58138.01526.41552.2678-240.28325.7406
65RP_Bm10295.1281302.3-86.1563151.68984.544-109.967
66RP_Bm10-4107.53100.184400.51664.8752-80.941279.3191
67RP_Bm10702.5191687.31-128.601131.6466.0773-52.2624
68RP_Bm10-3394.4150.1576297.11185.303818.4153117.98
69RP_Bm10882.7891535.98-136.761102.8636.005822.8523
70RP_Bm10-2559.96-38.2861275.003109.75248.5762132.899
71RP_Bm10982.6261348.99-199.34299.741414.999883.543
72RP_Bm10392.684-26.039230.332125.8494.62976117.63
73RP_Bm10535.03366.5711-79.133154.1882-21.6308145.655
74RP_Bm10655.919-195.521367.47347.156-601.59677.8227
75RP_Bm10594.651141.023-464.502391.46164.7178166.335
76RP_Bm101272.8-243.5081510.14350.191-756.48832.8841
77RP_Bm10298.492-144.969-498.96423.46476.5129133.456
78RP_Bm10993.032-248.1721676.42339.411-920.069-16.5231
79RP_Bm1040.2367-125.371-535.169467.111105.23862.5954
80RP_Bm10524.12-185.7431777.49316.872-1033.8-58.0322
81RP_Bm10-224.823-107.522-494.979488.873133.18-15.8124
82RP_Bm10-643.354-98.10381819.78289.386-1068.47-79.6343
83RP_Bm10-315.447208.246-456.431503.331162.515-92.8591
84RP_Bm10-2175.560.9331251778.84263.263-1010.09-69.7296
85RP_Bm10-205.53721.229-411.27499.754182.626-145.006
86RP_Bm10-3372.4986.57551678.44246.977-892.791-39.8657
87RP_Bm1028.87131164.41-367.843480.584187.625-154.514
88RP_Bm10-4135.36123.9691540.79245.419-734.4827.43612
89RP_Bm10371.3591532.7-352.604452.957176.865-120.266
90RP_Bm10-4279.02104.9721388.79257.921-565.50661.2144
91RP_Bm10727.3651732.07-358.05420.226152.274-52.2029
92RP_Bm10-4009.7422.01531294.22282.19-445.914103.574
93RP_Bm101037.51826.81-423.402404.978126.37924.4551
94RP_Bm10-2688.82-56.66931250.88308.613-417.677122.171
95RP_Bm101081.061427.34-446.786387.46296.2947100.143
96RP_Bm10-807.296-128.7221279.87332.013-483.746108.704
97RP_Bm10879.728722.382-449.767380.59872.9999152.78
98RP_Bm10797.048-149.335396.158145.872-133.2488.4811
99RP_Bm103-88.7932-251.286-1881.01-224.545-1167.62280.179
100RP_Bm103-88.7932-506.982-1133.21-224.545-165.60728.0123
101RP_Bm10326.4276-336.31-1844.55-197.293-1130.37317.322
102RP_Bm10326.4276-556.684-1096.75-197.293-152.59320.3647
103RP_Bm103-272.787318.134-1571.0643.7993-862.263147.933
104RP_Bm103-272.787190.778-823.2643.7993-66.3632317.125
105RP_Bm103223.987-616.771-1783.74-149.067-1066.08382.145
106RP_Bm103223.987-616.771-1035.94-149.067-128.745-28.0073
107RP_Bm103243.765-812.547-1784.41-150.673-1065.87426.697
108RP_Bm103243.765-668.583-1036.6-150.673-128.095-65.7545
109RP_Bm103200.265-997.843-1807.97-170.181-1088.53480.585
110RP_Bm103200.265-752.302-1060.17-170.181-135.084-101.297
111RP_Bm10391.0047-1110.65-1833.38-188.048-1114.56533.811
112RP_Bm10391.0047-823.545-1085.57-188.048-144.225-109.26
113RP_Bm103-40.8909-1070.94-1867.68-214.211-1149.25525.494
114RP_Bm103-40.8909-817.059-1119.87-214.211-156.104-102.222
115RP_Bm103-173.197-904.654-1907.38-244.798-1192.09478.99
116RP_Bm103-173.197-755.19-1159.58-244.798-172.534-72.883
117RP_Bm103-249.894-683.745-1932.98-263.978-1218.76414.602
118RP_Bm103-249.894-683.745-1185.18-263.978-182.191-40.088
119RP_Bm103-252.518-462.783-1940.05-268.861-1225.93346.307
120RP_Bm103-252.518-610.872-1192.25-268.861-184.649-10.7081
121RP_Bm103-194.293-287.279-1921.17-253.984-1207.09290.732
122RP_Bm103-194.293-539.013-1173.37-253.984-178.36515.9487
123RP_Bm103-85.5642-266.185-1888.38-229.738-1174.51296.083
124RP_Bm103-85.5642-549.436-1140.58-229.738-167.59424.8418
125RP_Bm10338.2749-305.814-1852.63-202.084-1138.69305.408
126RP_Bm10338.2749-550.641-1104.83-202.084-155.54920.5962
127RP_Bm103153.068-442.545-1810.06-168.803-1093.47340.945
128RP_Bm103153.068-584.171-1062.26-168.803-138.636-0.461399
129RP_Bm103195.768-615.651-1775.03-143.588-1056.78388.729
130RP_Bm103195.768-615.651-1027.22-143.588-125.243-20.6789
131RP_Bm103221.429-809.537-1779.09-147.636-1059.56433.064
132RP_Bm103221.429-676.142-1031.28-147.636-125.32-60.9025
133RP_Bm103189.27-984.88-1804.82-168.484-1084.21479.581
134RP_Bm103189.27-754.277-1057.02-168.484-132.858-98.6503
135RP_Bm10386.7061-1088.72-1827.58-184.484-1107.22528.736
136RP_Bm10386.7061-820.899-1079.77-184.484-140.74-106.167
Sheet1
Cell Formulas
RangeFormula
M2:R37M2=INDEX(D:D,$S2)
S2:S37S2=AGGREGATE(15,6,ROW(A$2:A$1000)/((A$2:A$1000=$K2)*(INDEX(D$2:I$1000,0,MATCH(RIGHT(L2,3)&"*",D$1:I$1,0))=AGGREGATE(IF(LEFT(L2,3)="Max",14,15),6,INDEX(D$2:I$1000,0,MATCH(RIGHT(L2,3)&"*",D$1:I$1,0))/(A$2:A$1000=$K2),1))),1)
 
Last edited:
Upvote 0
Solution
Just one word: Brilliant!

Thank you very much for this! It works perfectly!
 
Upvote 0

Forum statistics

Threads
1,214,992
Messages
6,122,631
Members
449,095
Latest member
bsb1122

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