Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How does one append the data in a cell to reflect a particular account
number. I want my invoices to be numbered in the date format YYYYMMDD and then I want the account number appended and finally the invoice number. Is there a way to do this automatically? The cell may contain an =today() or something similar. But, I don't know how to append it automatically. Ex. YYYYMMDD-AAAA-001 YYYYMMDD-AAAA-002 where, AAAA is the last four number of the account. And, of course, the number is the invoice for the day. -- Yours, Dan S. Puedes corregir mi español... me gusta ... me llámame masoquisto. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Perhaps something like this might work for you
Assuming account numbers will be entered in A2 down for a certain day Place this in B2: =IF(A2="","",TEXT(TODAY(),"yyyymmdd")&"-"&TEXT(RIGHT(A2,4),"0000")&"-"&TEXT(COUNTIF($A$2:A2,A2),"000")) Copy down as far as required. At the end of the day, freeze col B with an "in-place": Copy Paste special as values. Col B returns what you're after. Repeat the set up above afresh on a new sheet for the next day. -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Dan S." wrote: How does one append the data in a cell to reflect a particular account number. I want my invoices to be numbered in the date format YYYYMMDD and then I want the account number appended and finally the invoice number. Is there a way to do this automatically? The cell may contain an =today() or something similar. But, I don't know how to append it automatically. Ex. YYYYMMDD-AAAA-001 YYYYMMDD-AAAA-002 where, AAAA is the last four number of the account. And, of course, the number is the invoice for the day. -- Yours, Dan S. Puedes corregir mi español... me gusta ... me llámame masoquisto. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
extract and append data to a template | Excel Discussion (Misc queries) | |||
How do I append data in several cells in one column | Excel Discussion (Misc queries) | |||
How to Append the Data to the Master Table | Excel Worksheet Functions | |||
How do I paste to append instead of replace existing data? | Excel Discussion (Misc queries) | |||
How to append/combine (not add) data in several sheets into one? | Excel Discussion (Misc queries) |