Originally Posted by
Pete_UK
I've changed the layout of your Lookup sheet slightly, so that each category table occupies only one column - this makes it easier to expand if you need to.
I've set up data validation in cell E2 so that you can select the Ticket number from the drop-down - this is governed by a table I have set up in column J of the Tracking Log sheet.
I've used a helper column in column H of the Tracking Log sheet, with this formula in H5:
=IF(F5=Lookup!$E$2,D5&"_"&COUNTIFS(F$5:F5,F5,D$5:D5,D5),"")
This identifies each record which matches the criteria, and gives each a unique code. Then I have used this in cell B8 of the Lookup sheet:
=IFERROR(INDEX('Tracking Log'!$E$5:$E$500,MATCH(B$7&"_"&ROWS($1:1),'Tracking Log'!$H$5:$H$500,0)),"")
This can be copied down as far as you need it, and then that block of formulae can be copied across into D8, F8 etc.
Then you can just use the drop-down to select a new Ticket number in E2, and the display will change automatically.
Hope this helps.
Pete
Bookmarks