Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract Records from Database which Matches Criteria

Status
Not open for further replies.

barbershopper

Structural
May 31, 2002
2
AU
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?
 
Replies continue below

Recommended for you

maybe you could do this using standard excell commands, but VB would also be quite easy.

Best Regards

Morten
 
Barbershopper, try the following:
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!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top