The data is extracted from an MS Access database, and includes columns for MachineID and cumulativeHours, among others. Sorted ascending for MachineID and descending for cumulativeHours. Presently several thousand rows, with a variable number of rows per machineID.
I want to filter the data such that no cumulativeHOurs is greater than a user-specified amount (I can do that with AutoFilter), and then extract the first row of data for each machine. For example, the user may specify 10000 hours as the upper limit. I want to find the first occurrence for each machineID that is less than 10000 hours. I can’t specify a lower limit to combine with an AND condition because it will vary depending on the machine. Some machines may have entries that are only 5 hours apart, while others may have entries that are 300 hours apart.
From there, I intend to copy-and-paste into a separate area of the spreadsheet where the data will become “static”.
I am getting stuck trying to find and extract the first, whole row for each machineID. All help appreciated.