Outdoors & Field Logs

How to group specimen records without merging incomplete rows

A fictional trait table shows missing shape for S4 and missing feature for S5.

Two complete records can share a group when every required field matches. In this fictional inventory, S1 and S2 match across eight traits. S3 forms a separate group. S4 and S5 have blanks in different fields and need review.

Fictional records

Samples
SampleColorShapeFeatureSurfaceLengthOrientationPatternEdge
S1redcircleabsentsmoothshortuprightsinglenone
S2redcircleabsentsmoothshortuprightsinglenone
S3redtriangleabsentsmoothshortuprightsinglenone
S4redabsentsmoothshortuprightsinglenone
S5redabsentsmoothshortuprightsinglenone

What to check

  1. Mark the eight required trait columns. Preserve the original row and sample ID.
  2. Review empty required fields before making groups. Keep recorded values such as absent and none as text values.
  3. Compare complete rows field by field in the same column order. Joining only nonblank values can collapse different field positions into the same key.

Worked result

Samples!B2:I3 supplies the matched group and B4:I4 the separate one. Samples!C5 and D6 are the missing cells. Repeat with a value containing the delimiter if you use a string key.

Try it in Jolene.pro

Sources

Leave a comment