Free Newsletters
Technology & Business Daily

InfoWorld
Log-in | Register

Code cruncher transforms Excel

TurboExcel turns spreadsheets into C++, making Excel a development tool

By Rick Grehan
November 19, 2004
 

Whereas most of today’s software tools follow the “bigger is better” philosophy, Savvysoft’s TurboExcel proves the adage that great things really do come in small packages. TurboExcel converts Excel spreadsheet code into executable C++ code. That’s it, nothing more. Consequently, TurboExcel is but a few megabytes in size, making it easy to overlook without due consideration.

Free IT resource

Hear how top CIOs turn change into a competitive advantage.

Sponsored by HP

Free IT resource

Attend the SOA Executive Forum: Breaking SOA Bottlenecks SOAExecForum.com/may2007

Sponsored by InfoWorld



TurboExcel

Savvysoft, savvysoft.com

Very Good  8.4
criteria score weight
Capability 9 20%
Documentation 7 20%
Ease-of-use 9 20%
Interoperability 8 20%
Setup 9 10%
Value 9 10%

Cost:
Personal Edition, $999; Professional Edition, $2,999

Platforms:
Any Windows system running Excel 97 or later; requires a C++ compiler; documentation suggests some free options (including the free Microsoft C++ compiler)

Bottom Line:
Excel developers who have wanted to hot-rod their favorite algorithms, but who don't fancy themselves C++ programmers, will be happy to hear their time has come. TurboExcel is easy to use, and despite a lofty price, it's a master of its singular code-converting task.

About our Reviews and Scoring Methodology

Once you’ve used TurboExcel, you may find that you simply can’t be without it. TurboExcel gives Excel developers the means to turn their favorite algorithms into portable DLL files by transforming Excel into a software development environment. Slow spreadsheets can be accelerated, and Excel developers can make their algorithms available to anyone whose application can hook up with DLLs.

Development in Excel

After installing TurboExcel, three new buttons appear on the Excel toolbar. The first is an icon for the newly installed product. To its right, the TurboExcel Configuration button opens a dialog to manage the details of the generated DLL and the function it will contain. For example, in the “input ranges” box, you enter the cell ranges (they can be noncontiguous) that will be treated as the function’s inputs. For each range designation, you also specify the data type (integer, floating point, text, etc.).

Another textbox in the dialog specifies the output range and data type. A TurboExcel-created function can produce either a single value or an array, with the sole restriction that an array must correspond to a contiguous array of cells.

Once you’ve entered all the configuration information, one click on the TurboExcel builder button converts the spreadsheet into C++ code, launches the compiler, and builds a native DLL file. It also creates the appropriate XLL file, which provides the necessary glue logic for using the DLL as an Excel add-in.

It takes just seconds to launch TurboExcel and test your new native function. Consider the minutes — or even hours — involved in rewriting, compiling, and testing an Excel algorithm that you hand-coded into C++, and it becomes clear that TurboExcel has the edge.

TurboExcel also saves the configuration input in a separate location in the spreadsheet. This makes it easy to cycle quickly through multiple compilations as you’re working the kinks out of your formula. You don’t have to keep re-entering the information in the configuration dialog; TurboExcel remembers it for you.

Note that the idea is not to turn TurboExcel loose on an entire spreadsheet. If you do that, TurboExcel digests the entire sheet, including the portions that have nothing to do with the formula you want converted. The key is to isolate those formulae that consume the most time, extract only the cells involved with the target formulae, put them in a separate spreadsheet, and convert from there.

After you’ve verified the converted function works correctly, you re-import it into the original spreadsheet as an add-in function. Because the function is now in a DLL, it can be called from any app that calls into DLLs.

Excel as IDE

TurboExcel basically turns Excel into a miniature programming environment. Some cells are inputs, others are outputs, and still others comprise the execution logic of your single-function “application.”

Excel used as an IDE might be useful, cells filled with numbers and formulae leave something to be desired as a complete programming language. It is cumbersome, if not impossible, to coax looping and decision structures from such a limited environment.

Here, VBA (Visual Basic for Applications) comes to the rescue. TurboExcel can also turn VBA into executable C++. Unfortunately, the TurboExcel documentation lists numerous limitations. For example, although you can convert functions, you cannot convert subs, which initially disappoints. Read on, though, and you find that the real value of converting VBA code is to provide the “spreadsheet programmer” with looping and decision-making mechanisms that would be impossible if unadulterated Excel were the only raw material available.

For optimal TurboExcel use, you must factor your spreadsheet into areas that are straightforward calculations and areas that involve complex decision-making. Using TurboExcel, you can then build separate executable modules of each, and reassemble the result into a newer, faster spreadsheet. If you’ve properly factored your spreadsheet, the modules you’ve created can be reused not only in other spreadsheets but called from any application that can call into a DLL.

Future Savvy

Currently, code produced by TurboExcel only runs on Windows. However, I was told by company officials that the generated code only employs a pair of Win32-specific calls that could easily be replaced with Unix-equivalents.

If TurboExcel does provide cross-compilation to Unix platforms (and I hope it will), then it might be possible to create native add-ins for Linux spreadsheets such as StarOffice. And of course, TurboExcel-produced shared library files could be called by other applications.

TurboExcel performs its duty with laser-beam accuracy, but the price is lofty. The Personal Edition is $999 and allows you to run the generated code only on the machine that created it. If you want to run the generated code on any machine, you’ll need to purchase the Professional Edition for $2999.

If these are introductory prices, I’m not sure I want to hear what the prices will be once the introduction is over, but I hope Savvysoft keeps the cost of TurboExcel within reach of all well-deserving Excel slingers.





 


 
Rick Grehan is a contributing editor at InfoWorld. Contact him at rick_grehan@infoworld.com.
 

TOP NEWS:


»  You don't know tech: The InfoWorld news quiz
Match your weekly tech news wits against our snarky quiz master

»  Fugitive spam king dead in apparent murder-suicide
Convicted penny-stock spammer Eddie Davidson earned millions of dollars through an e-mail spamming operation

»  Drizzle project plans a stripped-down MySQL
As MySQL's capabilities have grown over the years, many developers have pushed for a leaner, less feature-heavy version, which the Drizzle project will deliver

»  Microsoft bolsters Ruby efforts
Company unveiling initiatives accommodating popular language

»  Not so fast, 3G
Apple says its 3G iPhones have wireless speeds that are twice as fast as those on the old EDGE network, but that claim's accuracy greatly depends on where you are

»  Mozilla fixes nine flaws in Thunderbird
The update marks the first time it's plugged holes in the e-mail software since early May.




Remote Access: Maintain Security and Decrease the Burden on IT
Join this interactive webcast to discover how IT Managers can control access rights, end-user security settings and end-point authorization. Sponsor: Citrix(R) GoToMyPC(R) Corporate

»  Click here to view this Webcast
  Zombie PCs Are Attacking Your LAN
A recent study showed that malware-infected zombie PCs are now a bigger threat to ISPs and Web infrastructure than DoS attacks. As this brand new IT Strategy Guide explains, an increased use of peer-to-peer techniques by the attackers has made it harder to fight back. Download now, compliments of Verio:

»  Click here to download now

- Special Advertising Partners -
WHITE PAPERS
 

» Technology White Papers Library

Technology White Papers by Topic

Technology White Papers E-mail Alert

Find out when the latest white paper is available:
 
 
INFOWORLD MARKETPLACE
 
» BUY A LINK NOW
 

FIND PRODUCTS AND COMPANIES
» COMPLETE PRODUCT GUIDE



TECHNOLOGY INDEX
• Applications
• Application Development
• Security
• Networking
• Wireless
• Platforms
• Hardware
• Data Management
• Storage
• Web Services
• Business
• Telecom
• Professional Services
• Standards

TECH WATCH 


What's the 411 on GOOG-411?
Just as Google has become synonymous with "performing a Web search," 411 is understood to mean "information" -- as in "what's the 411?" I was thus surprised to discover, from a billboard, no less, that the king of search is taking on the ...

Apple HTML source reveals 'iPhone Extreme'
"This one's a stretch..." reports AppleInsider. Um, yeah. Reporting on HTML code sightings of product names could be called a stretch, but iPhone Extreme has a ring to it. Now, that sounds like the product Apple should have released first, rather ...

COLUMNISTS

Unified under law
Ephraim Schwartz's Column and Blog (InfoWorld) - In the litigious world we live in, deploying a unified communications platform in your enterprise could...
» MORE COLUMNISTS

MORE INFOWORLD BLOGS


Open Sources 
Product Management
When I joined MySQL four years ago, there was quite a lot of debate about product management. We didn't actually have ...

Zero Day 
Botnet herders tending smaller flocks
New research backs up the theory that botnet operators are keeping their networks smaller in a continued effort to keep ...



• Advice Line
• Database Underground
• The Deep End
• Enterprise Mac
• Geeks in Paradise
• Grid Meter
• The Gripe Line
• InfoWorld Daily
• Inside IT
• IT Troubleshooter
• ITXtreme
• Open Sources
• ProdBlog
• Real World SOA
• Reality Check
• Security Adviser
• SMB IT
• The Storage Network
• Tech Watch
• Virtualization Report
• Zero Day

ADVERTISEMENT


RESOURCE CENTERadvertisement 

GOVERNMENT IT & POLICY
'If you don't go after the network, you're never going to stop these guys. Never.'
From the State Department, All the News for Inquiring Minds
TechPresident, the Internet Citizenry's New Consensus Taker



Sponsored Technology Links

 
 
 HOME  NEWS  BLOGS  PODCASTS  VIDEOS  TECHNOLOGIES  TEST CENTER  EVENTS  CAREERS   About | Advertise | Awards | RSS | Contact Us 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy, Terms of Service.
All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses,
phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

CIO :: ComputerWorld :: CSO :: Demo :: GamePro :: Games.net :: IDG Connect :: IDG World Expo
Industry Standard :: IT World :: JavaWorld :: LinuxWorld :: MacUser :: Macworld :: Network World :: PC World :: Playlist