11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

460<br />

Part V: Miscellaneous <strong>Formula</strong> Techniques<br />

Creating awesome designs<br />

Figure 17-21 shows an example of an XY chart that displays hypocycloid curves using random values.<br />

This type of curve is the same as that generated by Hasbro’s popular Spirograph toy, which<br />

you may remember from childhood.<br />

Figure 17-21: A hypocycloid curve.<br />

The companion CD-ROM contains two hypocycloid workbooks: the simple example<br />

shown in Figure 17-21 (named hypocycloid chart.xlsx), and a much more complex<br />

example (named hypocycloid animated.xlsm) that adds animation and a few other<br />

accoutrements. The animated version uses VBA macros.<br />

The chart uses data in columns D and E (the x and y ranges). These columns contain formulas<br />

that rely on data in columns A through C. The formulas in columns A through C rely on the values<br />

stored in E1:E3. The data column for the x values (column D) consists of the following formula:<br />

=(A6–B6)*COS(C6)+B6*COS((A6/B6–1)*C6)<br />

The formula for the y values (column E) is as follows:<br />

=(A6–B6)*SIN(C6)–B6*SIN((A6/B6–1)*C6)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!