I'm building a spreadsheet template to keep track of lab samples and in-processing analysis data in a waste water treatment facility. I'll be getting potentially 200-300 samples per week, so I need to be able to enter data as quickly as possible. I'd like to be able to enter data in any of columns D, E, or F and have the date and current time generated in A and a serial number generated in B. I would like for the date to be static and formatted as:
yyyy-mm-dd-hh-mm;@
The serial number is different for each sheet and follows the format
XXX-yymmdd-xx
The first three letters will be the first letter of the company or plant name, city, and state, and the final two numbers will be sequential starting with 01. If these can be generated, it will save me some effort, even if they're simply added as a different prefix for each sheet. Each row will have a different serial number and potentially a different date/time.
I'm decent with excel formulas and such, but I'm no programmer and I don't have time to learn how to do this myself. I know I can format the date column, but if it can be included in the code that would make it easier to share this template with my colleagues. I'd greatly appreciate a template of the code to do this, which I can then edit as needed with the appropriate letters, formats, etc. I've attached a part of the workbook I've come up with that includes sample data and all required fields.
Bookmarks