ConBeamU 4.08

The continuous beam spreadsheet has had another update to fix a problem when point loads were applied to cantilevers, and the first support position was not listed as an output point.  The new version (4.08) can be downloaded from:

ConbeamU.zip

The spreadsheet results have been checked against Strand7 results for 15 different span arrangements, each with 1 of 6 different support conditions:

ConBeamU5-2

The results are summarised in the file Check conbeamU28Nov15.xlsb (included in the download zip file).  Typical results are shown below for a 3 span beam with two cantilevers, showing near exact agreement with the Strand7 results.

conbeamU5-1

Posted in Beam Bending, Excel, Finite Element Analysis, Frame Analysis, Newton, Strand7, UDFs, VBA | Tagged , , , , , , | 1 Comment

Announcing Excel Summit South 2016!

After 2 years of organising, Charles Williams recently announced:

Excel Summit South

EXTEND YOUR SKILLS

This is a unique opportunity to:

  • Learn from six of the world’s leading Excel MVP’s as they discuss the Excel topics most useful to you.
  • Hear industry leading speakers from around the world give you the latest views on Financial Modelling best practices, standards and spreadsheet risk.
  • Shape the future of Excel: Interact with members of the Microsoft Excel Dev Team as you explore with them the future of Excel.
  • Choose the sessions that best suit your needs from 23 masterclass sessions over two days of twin tracks for modellers and analysts.

INTERACT WITH THE EXPERTS AND MEMBERS OF THE EXCEL DEV TEAM

EXCEL SUMMIT SOUTH PLACES ARE LIMITED: REGISTER NOW

EarlyBird 20% discount available for registrations before December 31 2015.
Don’t miss out out on this unique Excel opportunity.

Posted in Excel | Tagged , , , , , | 1 Comment

Paper bridge

Making a model bridge out of paper is pretty easy.

Making a full size bridge, strong enough to carry a Range Rover, out of just paper takes a bit of doing:

It seems the guy who built the bridge (Steve Messam) has been interested in paper bridges for some time:

Shoulders

Layers – part 1

Layers – part 2

Layers – part 3

Posted in Arch structures, Newton | Tagged , , , | Leave a comment

Importing Text Files; Unix Format

Text files generated on Unix systems have a different convention to denote the ends of lines to that used on Dos/Windows systems (see Newline for more details).  This was causing problems with the Text-in2 spreadsheet, with small files being imported with all text on one line, and large files causing overflow errors.  I have now added an option to convert Unix line endings to the Windows format, allowing these files to be imported successfully.  The new spreadsheet (including full open-source code) can be downloaded from:

Text-in2.zip

Code for this routine is quite brief:

Sub ConvertUnix(FName As String, SName As String, FileSaved As Boolean)
    Dim WholeLine As String

    If SName = "" Then SName = FName
    Close #1
    Open FName For Input Access Read As #1
    
    Line Input #1, WholeLine
    If EOF(1) Then
        WholeLine = Replace(WholeLine, vbLf, vbCrLf)
        Close #1
        Open SName For Output Access Write As #1
        Print #1, WholeLine
        Close #1
        FileSaved = True
    Else
        FileSaved = False
    End If
End Sub

The routine reads the first line of the input file.  If this line includes the End of File (EOF) marker, this indicates that the file was in Unix format, and the VBA Replace function is used to replace all occurrences of the Line Feed character (vbLf) with Carriage Return/ Line Feed (vbCrLf).  The file is then saved back to disk, either over-writing the original file, or optionally writing to a new file.

Use of the new option is shown in the screen-shot below:

Textin1

Click for full size view

Note that “Convert Unix to Windows” has been set to True (Cell B15), and a different file name has been entered for the converted file (Cell B16).

Other features of the spreadsheet are illustrated in the following screen-shots.

Criteria for import of text may be specified for a range of lines, or for the whole file.  In the screen-shot below only lines with values greater than 990 in column 3 are imported, starting from line 2 (so that the headings in line 1 are imported):

Textin2

The ReadText Function returns text from the named file, with the added option to read specific line numbers, as illustrated below:

Textin3

The SplitText function splits text into columns (at the specified separator):

Textin4

The Text2Date function converts a date in text format into an Excel date value.  In the case of ambiguous dates, interpretation may be based on the local order (default), or mm/dd/yy (Date Order = 0):

Textin5

The NumLeft and NumRight functions extract the first number from either the left or right hand end of a text string:

Textin6

The ExtractNum and ExtractNums functions extract one or more numbers from anywhere in a text string, or range of strings:

Textin8

The GetNumFormat and GetDType functions return the number format string and the data type of the contents of a cell or a range:

Textin7

For more details see:

Importing text files with VBA – 2

Importing text files with VBA – 3

Importing tab delimited files and clearing large ranges

Combining text files

Importing selected rows from a text file

Extracting numbers from text strings

Extracting numbers with regular expressions

Dealing with dates 3: opening and saving csv files without data corruption

Posted in Excel, UDFs, VBA | Tagged , , , , , , , , | Leave a comment

John Renbourn; Trotto and English Dance

A YouTube video of a live performance of John Renbourn’s English Dance was removed some time ago.  The video below features a different performance, so I hope it survives:

And from the same source, a recording of a full concert in Japan in 1979 (as far as I know, not previously released):

Posted in Bach | Tagged , , | Leave a comment