VLOOKUP, MAX, IF, ARRAY combination problem

Sayeem

New Member
Joined
Jan 8, 2018
Messages
2
Dear All

My data set is given below.

I want to get the maximum value for "Package 1" highlighted in RED, BLUE and the middle column is just BLACK. So the output should be 0.69, 0.59,0.96. There are other packages too. The next one is Package 11+14, for that the answer I want should be 0.54, 0.62, 2.82.

What should be the approach here? See the attached picture to know the row or column numbers.
Picture link - https://drive.google.com/open?id=12KxBezduG3afHeFzb2vIC55w0oLnCAmX

Dataset below:
Basic Speed 0.0 Knots
Heading 60 Sea state Surge Motion (m) Sway Motion (m) Heave Motion (m) Roll Motion (deg) Pitch Motion (deg) Yaw Motion (deg) X-Acc (deg/s^2) Y-Acc (deg/s^2) Z-Acc (deg/s^2) X-Acc+g (m/s^2) Y-Acc+g (m/s^2) Z-Acc (m/s^2)
1.001.332.323.0912.004.781.537.142.570.880.301.311.50
2.001.702.823.7011.915.111.656.592.470.830.291.201.53
3.002.003.224.2011.455.151.706.002.280.760.271.081.50
4.002.233.524.5810.735.021.695.372.060.690.250.961.44
5.002.413.754.879.944.781.654.791.850.620.230.851.37
Heading 75 Sea state Surge Motion (m) Sway Motion (m) Heave Motion (m) Roll Motion (deg) Pitch Motion (deg) Yaw Motion (deg) X-Acc (deg/s^2) Y-Acc (deg/s^2) Z-Acc (deg/s^2) X-Acc+g (m/s^2) Y-Acc+g (m/s^2) Z-Acc (m/s^2)
1.001.132.823.7714.904.261.469.092.450.900.271.641.90
2.001.393.364.3714.644.421.538.342.290.820.251.491.90
3.001.603.784.8113.984.351.547.572.070.740.231.341.83
4.001.754.085.1313.024.161.516.771.850.660.211.191.72
5.001.864.315.3512.013.911.466.031.640.590.191.051.61
Package 1 Speed 0.0 Knots
Heading -180 Sea state X-Acc+g (m/s^2) Y-Acc+g (m/s^2) Z-Acc (m/s^2)
1.000.630.470.75
2.000.670.440.82
3.000.670.400.87
4.000.640.360.89
5.000.600.320.89
Heading -165 Sea state X-Acc+g (m/s^2) Y-Acc+g (m/s^2) Z-Acc (m/s^2)
1.000.650.63
view
0.84
2.000.690.590.91
3.000.680.540.95
4.000.650.490.96
5.000.610.440.95
Package 11+14 Speed 0.0 Knots
Heading -180 Sea state X-Acc+g (m/s^2) Y-Acc+g (m/s^2) Z-Acc (m/s^2)
1.000.500.452.42
2.000.540.442.57
3.000.540.422.57
4.000.510.392.47
5.000.480.362.33
Heading -165 Sea state X-Acc+g (m/s^2) Y-Acc+g (m/s^2) Z-Acc (m/s^2)
1.000.510.622.69
2.000.540.602.82
3.000.540.572.78
4.000.520.522.66
5.000.480.472.49

<tbody>
</tbody>
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi,

Check if this works for you:


Book1
IJKL
18X-Acc+g (m/s^2)Y-Acc+g (m/s^2)Z-Acc (m/s^2)
19Package 10,690,630,96
20Package 11+140,540,622,82
Sheet1
Cell Formulas
RangeFormula
J19=MAX(INDEX(OFFSET(INDIRECT(ADDRESS(MATCH($I19,$A:$A,0),1)),3,3,11,3),0,1))
K19=MAX(INDEX(OFFSET(INDIRECT(ADDRESS(MATCH($I19,$A:$A,0),1)),3,3,11,3),0,2))
L19=MAX(INDEX(OFFSET(INDIRECT(ADDRESS(MATCH($I19,$A:$A,0),1)),3,3,11,3),0,3))
 
Upvote 0
Dear Jorismoerings

Do not know how to thank you properly. The formula works based on what I have share before.

However as I try to tweak it to suit my need I initially got 0.00 or #NAME error.

Here is the additional corrections I did to make it work for my actual worksheet.

A. The OFFSET table height is 153 rows so I Corrected height in OFFSET formula.
B. My reference data is in another sheet within same workbook titled "DataHs6.5"
So I changed the ADDRESS formula
Code:
ADDRESS(MATCH($H6,DataHs6.5!$A:$A,0),1,,,"DataHs6.5")
Sheet Name - DataHs6.5

Otherwise the INDIRECT formula was not working assuming the reference data is on the same sheet.

Thanks again. I will be back for more help.
 
Upvote 0
Hi,

My formula was based on the data provided but if you've made the changes and they work, it's shows you're grasping the construct of the formula.
Well Done!
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,181
Members
449,071
Latest member
cdnMech

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