Hi can any one help with a VBA macro, I have a folder with text files so N1.txt, N2.txt about 4000 of them in the folder from row 2 in each text file I have data like this written all the way down the text file.
1,Amazon,1,2,3,4,BUY
2,EBAY,1,2,4,8,SELL
3.Amazon,1,0,3,9,BUY
4,Amazon,1,4,7,4,BUY
5.EBAY,7,2,9,6,BUY
In each text file I am trying to do a running count of the the unique names for example using the data above amazon has been written 3 times so next to the first amazon entry I need to write "1" next to the second amazon entry I need to write "2" and next to the third amazon entry I need to write "3"
EBAY has been written twice so next to the first EBAY entry I need to write "1" and next to the second EBAY entry I need to write "2"
See last column below
1,Amazon,1,2,3,4,BUY,1
2,EBAY,1,2,3,4,SELL,1
3.Amazon,1,2,3,4,BUY,2
4,Amazon,1,2,3,4,BUY,3
5.EBAY,1,2,3,4,BUY,2
I need to add the comma before writing the count
Bookmarks