A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hope this is what you looking for
The formula in cell B10
=IF(C10="Ticket Created","TLC-TOC-2020-"&TEXT(COUNTIF($C$10:C10,C10),"000"),"")
and fill it down
If this is not the answer you're looking for please,
take a screenshot of your data and show it to us here so we could understand better your scenario.
Regards