Technological Wanderings - wtf http://www.technologicalwanderings.co.uk/taxonomy/term/105 en WTF? 1 http://www.technologicalwanderings.co.uk/node/53 <div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Keywords:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/taxonomy/term/105">wtf</a></div><div class="field-item odd"><a href="/taxonomy/term/106">csv</a></div></div></div><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>Inspired by the daily wtf, I report this:</p> <p>In my current job, I am working with 'IT Professionals' in other companies. Previously I provided business solutions to business managers - i.e. I was a contracting 'IT Professional' myself.</p> <p>However there are 'IT pros', and there 'people who work in computers'.</p> <p>Sometimes this causes me to dispair.</p> <p>For one particular multi-million dollar solution, we seed a particular database with customer details from a CSV file from another IT system and expect (well, require) the customer to provide that file.</p> <p>It's really easy; name, account number, email - that sort of thing.</p> <p>Rarely does anyone get the CSV on spec. For a start, we always, without fail, receive it as an Excel spreadsheet.</p> <p>One source was a puzzle though. We received the data in comma separated format all right, but this was entirely contained within column A of an Excel spreadsheet, each cell containing a line of CSV data.</p> <p>The mystery was solved when they sent us a copy containing the source formulas. The IT pro had taken 'comma separated' very seriously. However, instead of 'save as' and selecting CSV, he wrote a formula to take the contents of each column, insert a comma between them and return the result as a string. Something like:</p> <p>=CONCATENATE(B2,Z1,C2,Z1,C4,Z1,C5)</p> <p>Ingenious.</p> </div></div></div> Mon, 22 Dec 2008 21:26:37 +0000 techuser 53 at http://www.technologicalwanderings.co.uk http://www.technologicalwanderings.co.uk/node/53#comments