The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.
One of my new duties at work has been to handle checking-in/out keys. It's not a very organized system at the moment, so I'm trying to get some information sorted into an Excel file for easy access. What I have right now is a .txt file with the report of which keys are overdue. I'll put a sample of a report below.
Dr. John Smith
Anthropology
CAMPUS
"1ST OVERDUE NOTICE"
The following Library materials are overdue. Please return them
as soon as possible.
Thank you.
1 call number:KEYTLC1082 ID:KEYTLC1082
Teaching Station Key (1000-1099)
due:12/31/2009
The main information I want from the report is the key number (KEYTLC1082), date it was due (or "NEVER" in some cases), and the person who has it checked out (John Smith).
I started entering the data manually until I realized there were about 65,000 pages in this report (and probably more since the system can't handle putting out more than 65,535 pages at once). What I'm wondering is if there is any way I can use a macro or program to search and pull these 3 fields from the txt file and put them into Excel (or something I can easily import into a spreadsheet). Does anyone know if Excel and Word can even work with each other like this?
[SIGPIC][/SIGPIC]
FrostyAlphaWolf on
0
Posts
Deebaseron my way to work in a suit and a tieAhhhh...come on fucking guyRegistered Userregular
edited June 2011
This report/giant text file... do you know where it comes from?
If the data file you have is delineated in some sort of standard way (like by commas or tab), you should be able to bring it in as a data source for your document. In the ribbon, it'd be under the Data tab -> Get external data -> From text.
it's possible to import the data but it's probably going to be more of a headache.
if your document has set keywords (like ID:KEY or "call number") you could make a model to grab the data out of it with some like monarch pro http://www.datawatch.com/_products/monarch_pro.php there may even be free versions of similar tools available.
The file is generated from software used by the university library to manage checking-in/out, and it doesn't seem like I can make it give me any kind of delimited file.
I'll definitely check out something like Monarch; it seems like a scripting program is going to be what I need.
You might be able to use something like Notepad++ to format the report and get rid of the fields you don't need and at the same time get them into a format that you can export to excel like a .csv file.
Mr Obersmith on
Battle.net - Obersmith#1709
Live - MrObersmith
PSN - Obersmith
I'd investigate more into how the software stores its data. The software is likely storing this information in Excel-friendly tables, and finding a way to get it outputted more cleanly seems much more preferable to finding out how to clean up those formatted reports. Especially if you're talking 60,000+ records.
yeah, looking at the underlying tables is probably your best bet, that report will be a nightmare.
How many physical keys are there? 65,000 lines seems too excessive to be useful. Does this just list the notices that were sent out? like, if the same key has changed hands multiple times, and each time it was late, there are multiple notices in the file? If you want a history like that, Access is probably a better solution than excel. but if you just want a list of keys, and their current owner and status, excel would work.
Dr. Frenchenstein on
0
Deebaseron my way to work in a suit and a tieAhhhh...come on fucking guyRegistered Userregular
edited June 2011
^wonderpug and Dr. F
Find out who you call when something goes wrong with that software. When you get in touch with that guy, tell him you need a report pulled from the database. There is probably a backend being maintained by invisible nerds that can pull this data insanely easily.
The software itself can only generate a txt file for reports, but I feel like there is a database keeping all this data organized behind the program. I'll check with the head of IT for the library and see if he knows how that works.
Luckily, we only have around 3,000 keys total to keep track of. The 65,000+ pages are mostly filled with extra spacing and page breaks (each record is formatted almost exactly like the example I put in the OP).
My goal is just to keep track of the key number, who it's currently checked out to, and the date it is/was due back. Instructors like to lose the keys or lend them out to grad students without thinking about it, so as long as we can hold one person responsible for the key we don't really worry about what they do with it.
there is definitely a table or something somewhere in that software that more than likely has exactly what you need. Getting at that table could be a process. If it can't export a csv of that table, then you have some crap software. is it homegrown? or an actual purchased product?
Posts
if your document has set keywords (like ID:KEY or "call number") you could make a model to grab the data out of it with some like monarch pro http://www.datawatch.com/_products/monarch_pro.php there may even be free versions of similar tools available.
Blizzard: Pailryder#1101
GoG: https://www.gog.com/u/pailryder
I'll definitely check out something like Monarch; it seems like a scripting program is going to be what I need.
Live - MrObersmith
PSN - Obersmith
How many physical keys are there? 65,000 lines seems too excessive to be useful. Does this just list the notices that were sent out? like, if the same key has changed hands multiple times, and each time it was late, there are multiple notices in the file? If you want a history like that, Access is probably a better solution than excel. but if you just want a list of keys, and their current owner and status, excel would work.
Find out who you call when something goes wrong with that software. When you get in touch with that guy, tell him you need a report pulled from the database. There is probably a backend being maintained by invisible nerds that can pull this data insanely easily.
The software itself can only generate a txt file for reports, but I feel like there is a database keeping all this data organized behind the program. I'll check with the head of IT for the library and see if he knows how that works.
Luckily, we only have around 3,000 keys total to keep track of. The 65,000+ pages are mostly filled with extra spacing and page breaks (each record is formatted almost exactly like the example I put in the OP).
My goal is just to keep track of the key number, who it's currently checked out to, and the date it is/was due back. Instructors like to lose the keys or lend them out to grad students without thinking about it, so as long as we can hold one person responsible for the key we don't really worry about what they do with it.