#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Auto append data

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   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Auto append data

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
extract and append data to a template amma Excel Discussion (Misc queries) 0 January 5th 06 02:36 PM
How do I append data in several cells in one column Tim Excel Discussion (Misc queries) 4 November 16th 05 10:04 PM
How to Append the Data to the Master Table Shiva Excel Worksheet Functions 7 November 8th 05 05:00 AM
How do I paste to append instead of replace existing data? Joel Thomas Excel Discussion (Misc queries) 1 October 3rd 05 01:32 PM
How to append/combine (not add) data in several sheets into one? ParkCrescent Excel Discussion (Misc queries) 2 August 15th 05 01:28 PM


All times are GMT +1. The time now is 07:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"