Hi Guys and Gals!!
I have a list of products in an excel spreadsheet and I need to give duplicates titles a matching code which for ease I'm starting at 1.
For example: Column A has the title and column B has the number I want to generate using some code. Counting upwards from 1.
Manchester United FC Stripe Ring 1
Manchester United FC Stripe Ring 1
Manchester United FC Stripe Ring 1
Manchester United FC Super Titanium Ring 2
Manchester United FC Super Titanium Ring 2
Manchester United FC Super Titanium Ring 2
Manchester United FC Velcro Boot Crib 3
Manchester United FC Velcro Boot Crib 3 etc. etc.
There must be a very simple bit of code (that is beyond me!!) that will do column B for me as currently I'm doing manually and it taking me forever and therefore easier to make a mistake!!!! I assume I should uses an IF statement that tells the Cell in column B to add 1 to the value of the previous cell if it is not a duplicate and to remain the same if it is.
Can you help please with writing of some simple code to do this!!
Thank you
Stephen
Bookmarks