Thread: [Solved] automatic invoice numbering
View Single Post
 
Old 01-26-2012, 08:34 AM
Catalin.B Catalin.B is offline Windows Vista Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

The invoice numbers will be placed in a column (a list of invoice numbers), or will be in a single cell? The second option can be done only with a macro.
For creating consecutive numbers in your desired structure, you can use a formula like this:
=IF(LEN(A2)>0;YEAR(NOW())&"-"&TEXT(SUBTOTAL(3;A$2:A2);"00#");"")
(change ; separator to your regional settings)
Copy formula to your range...
Attached Files
File Type: xlsx New Microsoft Excel Worksheet.xlsx (9.6 KB, 48 views)
Reply With Quote