Daily Download 32: Text functions

Today’s daily download covers functions to import data from text files into Excel quickly and efficiently, a function to combine text strings, with improved functionality over the built-in Concatenate function, and functions to extract numbers from the beginning or end of text strings.

The text import spreadsheet is described in the following posts:
Importing text files with VBA
Importing text files with VBA – 2
Importing text files with VBA – 3
Importing tab delimited files and clearing large ranges
Importing selected rows from a text file

Download file: http://www.interactiveds.com.au/software/Text-in2.ZIP

A separate spreadsheet allows automatic download of csv files from the web:

Automatic download of csv files
Download file: http://www.interactiveds.com.au/software/web-download1.xlsb

The Textstring Function is described in:
Stringing more than two words together
Download file: http://interactiveds.com.au/software/TextString.xls

The functions NumLeft and NumRight will extract numbers from the start or end of a text string, and are described in:
Extracting Numbers From Text Strings
Download file: GetNum.xlsb

1.4 million row text file imported into Excel 2007

Text import with criteria ranges

CSV data imported from the Internet

TextString Function examples compared with Concatenate

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

Daily Download 31: Linking to Fortran

Several routines linking to Fortran dll files, produced with the Silverfrost Fortran compiler, have been provided in previous daily downloads.  Today’s files are example routines, provided with posts covering the procedures to link Excel to Fortran code.  Note that these files are not working on my current Windows 7 64 bit OS.  I am not sure if this is a problem with the compilation, or with the installation on my machine.

Linking Excel to Fortran
http://www.interactiveds.com.au/software/MathFunc.zip

Linking Excel to Fortran – 2
http://www.interactiveds.com.au/software/Cubic.zip

Distributing Silverfrost Fortran Applications
http://interactiveds.com.au/software/Salflibc.zip

Posted in Computing - general, Excel, Fortran, Link to dll, UDFs, VBA | Tagged , , , , , | Leave a comment

Daily Download 30: Data Transfer, to and from VBA

Today’s downloads cover procedures and functions for the transfer of data between VBA and the spreadsheet, and within VBA.

Array resources provides a variety of resources and web links covering the transfer of data on the spreadsheet to VBA arrays.
Download: http://www.interactiveds.com.au/software/getarray.zip

Transferring data within VBA discusses alternatives for transferring data between VBA routines.
Download: http://interactiveds.com.au/software/ByRefByVal1.xls

Calling a function as a variable describes how to call another function in VBA as a variable, rather than having the function name hard coded.
Download: http://interactiveds.com.au/software/PassFunc.xls

Getting the address of a selected range does what it says.
Download: http://www.interactiveds.com.au/software/RngAddress.xlsb

Finally Writing Arrays to the worksheet – VBA function provides an efficient VBA function to write data from VBA arrays to the worksheet, with several useful options.
Download: http://www.interactiveds.com.au/software/CopyToRange.xlsb

Posted in Arrays, Computing - general, Excel, UDFs, VBA | Tagged , , , , , , | Leave a comment

Daily Download 29: Using VBA – linking to C

The final few days of the daily download series will be dealing with the use of VBA, starting with linking to C (and C++).  This was covered in:

Linking Excel to C
Linking Excel to C – 2
Linking Excel to C – 3; Avoiding bottlenecks

The download files are:

http://interactiveds.com.au/software/WalkThrough2.zip
http://interactiveds.com.au/software/Cubicdll.zip

Benchmark of cubic solution routines

Posted in Computing - general, Excel, Link to dll, UDFs, VBA | Tagged , , , , | Leave a comment

Daily Download 28: The Hole Through the Middle of the Earth, using ODE solvers, and Three Blokes

Today’s download is based on a series of posts on the “hole through the middle of the Earth”, which by devious means has been tied in with the solution of differential equations, buckling of columns, and a story by Bill Baily about when not to offer to buy the first round.

Elegant solutions, Simple Harmonic Motion, and the hole through the middle of the Earth
Elegant solutions, Column buckling, and the hole through the middle of the Earth
More on buckling columns
The hole through the middle of the Earth – acceleration
The hole through the middle of the Earth – revised transit time 
The hole through the middle of the Earth – moved to the Equator
Three blokes go into a pub …
The hole through the middle of the Earth – filled with air

… and for anyone making it to the end and wondering where the next episode is, it hasn’t been written yet.

Here are the download files:

http://interactiveds.com.au/software/Earth%20Density.xls
http://interactiveds.com.au/software/ODESolver-Buckle.zip

And the “three blokes” joke:

Three blokes go into a bar

Posted in Beam Bending, Excel, Maths, Newton, UDFs, VBA | Tagged , , , , , | Leave a comment