I've been working on a formula to extract unique combinations from two columns using a helper column. However, I've been unsuccessful in applying criteria to this. I'm using the following array formula:
=IFERROR(IF(COUNTA(Master!$B$2:B2)>MAX(Master!$D$2:$D$16),"",INDEX(Master!$B$2:$B$16,MATCH($A$1&COUNTA(Master!$B$2:B2),Master!$F$2:$F$16&Master!$D$2:$D$16,0))),"")
The criteria is simply the name of the client which is populated into A1, and I've got a separate sheet for each client.
The idea is that I want to be able to enter the data into the master table and then have it output to each sheet based on the client's name, and this formula functions to split the data up by season and department.
This formula works as expected, except that it creates blank cells when a client doesn't match one of the combinations of season and department. For example, if one client doesn't have any data for the first unique combination of season and department, then their first row in the table will just be blank.
I'd like to not show a blank, and instead skip that row for that client altogether. The way it is now is very hard to manage with larger data sets with multiple clients.
I've attached a dummy worksheet. Could somebody take a look and help me out here? I generally understand why my criteria isn't working, but I don't quite understand how to fix it.
Bookmarks