Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 01-30-2010, 03:54 AM
spriguns spriguns is offline
Registered User
 
Join Date: 30 Jan 2010
Location: london
MS Office Version:Excel 2007
Posts: 1
spriguns is becoming part of the community
invoice number increments

Please Register to Remove these Ads

I have set up an invoice in excel , each time I load the date changes using =TODAY()
how do I get the invoice number to change as well , so that each time I access the document the invoice number increases by 1

Spriguns
Reply With Quote
  #2  
Old 01-30-2010, 05:12 AM
JBeaucaire's Avatar
JBeaucaire JBeaucaire is offline
Forum Guru
 
Join Date: 21 Mar 2008
Location: Bakersfield, CA
MS Office Version:2003 (can read 2007 files)
Posts: 9,532
JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay JBeaucaire makes giving solutions look like childsplay
Send a message via Skype™ to JBeaucaire
Re: invoice number increments

Many ways, most involving cumbersome VBA of some kind.

The only way I've ever had success is to use a separate sheet to keep a LOG of the invoices I've created prior. If the log workbook had invoice numbers in column A, then you could use a standard worksheet formula like this to see the highest number used so far...and add 1 to that value:

=MAX('[Sample-1.xls]Sheet1'!$D:$D) + 1

When you complete each invoice, you just need to:

1) Save the invoice and convert the cell to a flat value so it doesn't change.
2) Record it in your LOG, too, so the next invoice template you open has the next number up
__________________
If you've been given good help, use the icon to give reputation feedback, it is appreciated.
Always put your code between [code] and [/code] tags.
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump