dxmnkd316
Lucia Apologist
Glad it worked out. I was reviewing this with the architect and pointed out that his solution matched very closely with stuff I'd coded in Excel to do the same thing. I am not SQL literate at all but due to being a coder two lifetimes ago (ala the 1980's pre-object oriented world of Turbo Pascal, COBOL, RPG and other dead, Latin-like, procedural-based languages and hierarchical databases) I'm quite good with Excel. After I pointed out the similarities between his syntax and Excel and he commented that it's all Microsoft so under the covers it'll all be basically the same. Duh. I pass this observation along on the off chance it may be useful in the future. Anyway, here it is in Excel assuming the message string is in cell A1:
=MID(A1,FIND(":20C:",A1)+5,FIND(":23G:",A1)-5)
I like to think of myself as an advanced excel user. I've been on a project recently where I was asked to crunch the data from a year's worth of product runs at a plant we're rebuilding. They have something like 4,000 SKU. Each with about 6-10 ingredients, some of which are the SKUs they make. Made on around 15-20 machines.
they don't have a great database of recipes and I came to find out that one product might have not a single recipe but some runs use corrections to meet spec. Other runs are making the product but dumping it into a tote where they already have product, so you might have odd lot sizes or bad ratios. They also have not run variability analyses to work out inefficiencies and quality. (Ugh, I know)
The last two weeks I've been pushing excel to its absolute 32-bit limit. To the point that I've had to get used to saving every five minutes and creating a new file every 20-30 minutes just so I don't lose work. I can't tell you how many times it's crashed because it's hit memory issues. 80% of it is run through macros but it still takes about 10-15 minutes to run on the biggest product lines.
I know I should be running this stuff through a proper database with proper lookups, but I just know excel too well. Prior to this, the most complicated spreadsheet I had done was a massive KRACH and PWR spreadsheet using the old methodology for PWR. Still the most complicated single formula I've written. Super long even when pasted in word.
Last edited: