How about letting a pivot table do the work for you?
I put your data in cells B3:D11, assigning headings and skipping the blank column:
I converted that range into an Excel Table (Because they're so easy to work with)
• Select the data range
• Home.Format_as_table....follow the prompts
Then I created a pivot table, based on the Excel Table.
• Row Labels:
...Category
...Type
Values:
Seq
Seq <-yes, I used Seq twice
Set the 1st seq formula to MIN
Set the 2nd seq formula to MAX
...Use the Classic Display
...Remove subtotals and the grand total
This will be the result:
Is that something you can work with?
Bookmarks