Hello Naazneen,
We can achieve this using Javascript based on requirements. We just need to create a text field and mark it as unique (without javascript user need to put values in it manually and with javascript we can use it as a formula.
Regards,
Sunny Singla