A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Edited
Hi,
Please check whether the following solution is helpful:
Output-1
Formula in cell B2 is: =A2&"-"&COUNTIF($A$2:A2,A2)
- Please drag the formula down to more rows.
Output-2
Formula in cell C2 is: =IF(COUNTIF($A:$A,A2)=1,A2,A2&"-"&COUNTIF($A$2:A2,A2))
- Please drag the formula down to more rows.
Note
In the above suggested formulas, please change cell reference/ranges to suit Your requirement.
Please respond if You require further assistance. I will try My best to be of help.
If I was able to help You, please mark My response as answer and helpful.
Thank You!