Comments on: How do I make my Excel equations pretty?
http://ask.metafilter.com/80917/How-do-I-make-my-Excel-equations-pretty/
Comments on Ask MetaFilter post How do I make my Excel equations pretty?Sun, 13 Jan 2008 17:47:50 -0800Sun, 13 Jan 2008 17:47:50 -0800en-ushttp://blogs.law.harvard.edu/tech/rss60Question: How do I make my Excel equations pretty?
http://ask.metafilter.com/80917/How-do-I-make-my-Excel-equations-pretty
Is there a way to format equations in Excel so they are more readable? <br /><br /> I'm creating a series of Excel-based utilties, many of which contain complex equations. They are hard for me to read and edit, and I find myself cutting and pasting the equations into Microsoft Word so that I can indent them, as I would code in any other programming language. Is there a better way to do this?<br>
<br>
I am using Mac OS X, but if a Windows-based solution is available I'd work with that. Either a feature of Excel, add-in, or third-party program would be helpful.post:ask.metafilter.com,2008:site.80917Sun, 13 Jan 2008 17:31:41 -0800bchaplinexcelequationsosXBy: Jasper Friendly Bear
http://ask.metafilter.com/80917/How-do-I-make-my-Excel-equations-pretty#1200094
I use Excel on Windows, and I use a utility called <a href="http://www.uts.com/ItemDetails.asp?ItemID=1100-40-0000-00">MathLook for Excel </a>from UTS Systems. The program is $99. It renders Excel formulas into proper math notation. It's very useful for double checking formulas.comment:ask.metafilter.com,2008:site.80917-1200094Sun, 13 Jan 2008 17:47:50 -0800Jasper Friendly BearBy: grouse
http://ask.metafilter.com/80917/How-do-I-make-my-Excel-equations-pretty#1200102
Jasper Friendly Bear reminds me of something I have found useful in the past on complex formulas, which is <a href="http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=281">naming ranges and cells</a>, which would allow you to change =C8*C11/(1-1+C11)^-C10) to =Loan*rate/(1-1+rate)^-term). There's no fancy typography, but I still find it helpful.comment:ask.metafilter.com,2008:site.80917-1200102Sun, 13 Jan 2008 17:54:24 -0800grouseBy: KevCed
http://ask.metafilter.com/80917/How-do-I-make-my-Excel-equations-pretty#1200155
I second Grouse's recommendation. <br>
<br>
Something else I do is to insert extra rows and columns to calculate "intermediate results". This can help with error checking (make sure certain components are non-negative, non-zero, etc.) and help simply the "construction" of overall results.<br>
<br>
This can be done on other sheets or just out of the print area.comment:ask.metafilter.com,2008:site.80917-1200155Sun, 13 Jan 2008 18:52:17 -0800KevCedBy: mullacc
http://ask.metafilter.com/80917/How-do-I-make-my-Excel-equations-pretty#1200219
Naming helps, for sure.<br>
<br>
Also, you can insert line breaks in your formulas using alt+enter (in Windows, at least). Dunno how to do idents though.comment:ask.metafilter.com,2008:site.80917-1200219Sun, 13 Jan 2008 19:49:56 -0800mullaccBy: flabdablet
http://ask.metafilter.com/80917/How-do-I-make-my-Excel-equations-pretty#1200323
I like to keep my intermediate results on a separate sheet within the workbook, and name them.comment:ask.metafilter.com,2008:site.80917-1200323Sun, 13 Jan 2008 21:54:15 -0800flabdabletBy: dhartung
http://ask.metafilter.com/80917/How-do-I-make-my-Excel-equations-pretty#1200368
Break things down into smaller functions as much as possible. If you have monster formulas in single cells they're a bitch to troubleshoot.comment:ask.metafilter.com,2008:site.80917-1200368Sun, 13 Jan 2008 23:31:37 -0800dhartungBy: michswiss
http://ask.metafilter.com/80917/How-do-I-make-my-Excel-equations-pretty#1200430
Using Names is helpful but there are drawbacks if other people will use the spreadsheet as well as inserting and deleting rows and columns can reek havoc on named ranges. Plus, some functions react to named cells and ranges inconsistently, especially with array and table-based formulas.<br>
<br>
Also, you can always add comments to cells and paste the formula there with some nominal formatting as a reference.comment:ask.metafilter.com,2008:site.80917-1200430Mon, 14 Jan 2008 01:41:01 -0800michswissBy: Lanark
http://ask.metafilter.com/80917/How-do-I-make-my-Excel-equations-pretty#1200931
write a <a href="http://www.vertex42.com/ExcelArticles/user-defined-functions.html">custom function</a>, then you can format the code/formulas neatly in the VBA editorcomment:ask.metafilter.com,2008:site.80917-1200931Mon, 14 Jan 2008 11:00:15 -0800LanarkBy: bchaplin
http://ask.metafilter.com/80917/How-do-I-make-my-Excel-equations-pretty#1201193
Thanks, all! Lanark, the custom function idea is intriguing, but new to me. Once a workbook contains custom functions, can anyone with the standard Excel application still open and use it? Would the VBA editor be required to modify that function in the future?comment:ask.metafilter.com,2008:site.80917-1201193Mon, 14 Jan 2008 14:22:02 -0800bchaplinBy: Lanark
http://ask.metafilter.com/80917/How-do-I-make-my-Excel-equations-pretty#1215673
Yes the custom function is stored in the workbook like a macro so anyone can run it.<br>
<br>
One catch is that in Office 2008 for Mac, <a href="http://www.macworld.com/article/54320/2006/12/microsoft.html">support for VBA has been dropped</a>comment:ask.metafilter.com,2008:site.80917-1215673Sun, 27 Jan 2008 02:32:48 -0800Lanark