I’m playing around with the REPLACE.() method.
How do I replace all occurrences of an argument with a certain range of numbers?
I created a long string and counted ‘abc’ has 12 occurrences. I wanted to replace them with numbers 1- 12
So I tried to use a for loop but failed.
Is there anything wrong with my code? Is this even achievable by using replace.()?
or is there any other way to get the result I want.