Hi everybody!
Here's a business issue that I am having -
My business needs to send a certain report to the tax authorities that shows all our purchases (inward data register).
When our ERP system creates this report, we get a big excel file which has all the information pertaining to the purchase invoices that have been raised on our organisation.
However, most invoices usually do have more than one line item in them BUT our software does not have the ability to tag these line items separately.
Given we need to mention unique line items for each invoice in this report, we are currently doing so manually which needless to say is very time-consuming.
I wanted to surface this on the forum and see if someone can suggest a macro code which would basically go through the entire column of "Invoice Number". Every time the code encounters an invoice number it should write "1" in front of it in the line items column. IF the same invoice number appears again, the code should write "2" in the line-item column. Similarly, if a third occurrence happens, write "3".
It is very important to understand that every invoice number WILL have at least "1" in front of it in the line item column. IFF the same invoice number appears again, only then would it write "2".
I am attaching a dummy file with the fields and some dummy values.
If this could be done it would save my organisations hundreds of man hours every month.
Any suggestions are very welcome and thanks in advance for the help!
Bookmarks