There may be other ways to go about this, but it's tough without seeing how the data table is organized. Can you upload a sanitized sample file?