Categories
RSS Feed
Search NewtonExcelBach
Archives
Top Posts
- Using LINEST for non-linear curve fitting
- 3DFrame Ver 1.03 and Frame4 Ver 3.07
- Cubic Splines
- XLDennis, the MSDN Library, and VBA rant
- Downloads
- About Newton Excel Bach
- Writing Arrays to the worksheet - VBA function
- Daily Download 4: Continuous Beam Analysis
- Filling Blanks with Go To-Special (and local help rant)
- Linking Excel to C - 2
Recent Comments
Category Archives: Arrays
Finding Prime Numbers with Excel, and using Array Formulas
Download Primes.zip. Several of the puzzles at Project Euler (see previous post) require the finding of prime numbers, for instance what is the 10,001th prime number? Searching the Web for some ready made solutions I found this array formula at … Continue reading
Posted in Arrays, Excel, Maths, Newton, UDFs, VBA
Tagged Array Formulas, Excel, Marths, Prime Numbers, UDF
28 Comments
Linking Excel to C – 3; Avoiding bottlenecks
The previous post in this series included a C dll to solve cubic polynomial equations that could be called from VBA. The performance of this routine is compared with a VBA routine using a similar algorithm in the sceenshot below (rows … Continue reading
Posted in Arrays, Excel, Link to dll, UDFs, VBA
Tagged C++, dll, Excel, Visual Studio C++ Express
2 Comments
Solving simultaneous equations
Solving a series of simultaneous equations is a task frequently required in engineering and scientific analysis. Excel provides the tools to perform this task quickly and easily, but the procedure is not documented in the on-line help (so far as … Continue reading
Section Properties UDF and UDF charting
The technique for calculating section properties from coordinates is conveniently coded into a UDF: Function Area(xy_range As Variant) As Double Dim XYcells As Variant Dim N As Long, NumX As Long Dim XD As Double, YSum As Double XYcells = … Continue reading
Posted in Arrays, Charts, Excel, UDFs
Tagged Section Properties; Area; First Moment of Area; Second
6 Comments
Ranges and Arrays – 2
Yesterday we looked at how to get data from a worksheet range into a VBA array. Today’s post looks at the opposite operation; writing an array to a worksheet range. With a UDF it couldn’t be simpler: Function MyFunction() as … Continue reading