dazedandconfused766
New Member
- Joined
- Mar 13, 2011
- Messages
- 3
Hi everyone,
In my accounts spreadsheet, I've got a number of different clients each with two digit client codes, and when I invoice the clients, I like the invoice number to be made from the client code and then a sequential number.
So for example client Mr Smith might have a client code SM, while Mr Jones might have JO. If I've done 5 jobs for Mr Smith the next invoice number should be SM06. If I've only done 1 job for Mr Jones, it will be JO02. A brand new client (Mr Chan) would be CH01.
I normally do that manually, but I'm wondering if there's any way that I could do it automatically so that when I enter a new client code, it looks at the last invoice number for that client, and then puts the next invoice number in the invoice number cell for that job.
I guess it's not going to be easy, but I've totally hit a brick wall. I was wondering if anyone had some hints, like some functions which I might be able to use. How can I find the last invoice number for a particular client? Will it require a great deal of coding? Do I need to hire help? I'm trying to do it myself to improve my VBA skills, but I'm going round and round in circles.
Thanks for any comments or suggestions in advance.
David
In my accounts spreadsheet, I've got a number of different clients each with two digit client codes, and when I invoice the clients, I like the invoice number to be made from the client code and then a sequential number.
So for example client Mr Smith might have a client code SM, while Mr Jones might have JO. If I've done 5 jobs for Mr Smith the next invoice number should be SM06. If I've only done 1 job for Mr Jones, it will be JO02. A brand new client (Mr Chan) would be CH01.
I normally do that manually, but I'm wondering if there's any way that I could do it automatically so that when I enter a new client code, it looks at the last invoice number for that client, and then puts the next invoice number in the invoice number cell for that job.
I guess it's not going to be easy, but I've totally hit a brick wall. I was wondering if anyone had some hints, like some functions which I might be able to use. How can I find the last invoice number for a particular client? Will it require a great deal of coding? Do I need to hire help? I'm trying to do it myself to improve my VBA skills, but I'm going round and round in circles.
Thanks for any comments or suggestions in advance.
David