Extract Records from Database which Matches Criteria
Extract Records from Database which Matches Criteria
(OP)
I have a large list of data from a structural analysis package, which contains the following data for each record:
member, loadcase, Fx, Fy, Fz, Mx, My, Mz.
a sample extract is like this
2181,152,643.57,4083.5,0,0,0,-41141
2182,152,643.57,4083.5,0,0,0,-28890
2183,152,643.57,4083.5,0,0,0,-9563.2
2184,152,643.57,4083.5,0,0,0,9759.9
For each member the maximum and minimum value for each component (Fx, Fy....) is determined using the function DMAX(). What I want to do is extract the entire record which correlates with this maxima or minima (ie coexisting forces).
I have tried using the MATCH function to find the row, to then use INDEX, however stops at the first occurence, not necessarily the row for the correct member record.
Any ideas?
member, loadcase, Fx, Fy, Fz, Mx, My, Mz.
a sample extract is like this
2181,152,643.57,4083.5,0,0,0,-41141
2182,152,643.57,4083.5,0,0,0,-28890
2183,152,643.57,4083.5,0,0,0,-9563.2
2184,152,643.57,4083.5,0,0,0,9759.9
For each member the maximum and minimum value for each component (Fx, Fy....) is determined using the function DMAX(). What I want to do is extract the entire record which correlates with this maxima or minima (ie coexisting forces).
I have tried using the MATCH function to find the row, to then use INDEX, however stops at the first occurence, not necessarily the row for the correct member record.
Any ideas?
RE: Extract Records from Database which Matches Criteria
Best Regards
Morten
RE: Extract Records from Database which Matches Criteria
Assume your data is located in cells A1:F10 then
Fxmax = max(A1:A10)
row = match(Fxmax,A1:A10,0)
Fyass = index(B1:B10,row)
Fzass = index(C1:C10,row) and so on..
Hope it helps!