You are on page 1of 6

Copyright 2000 John F.

Lacher

http://www.lacher.com

Sample Excel Macros and Applications


Free downloads at: www.lacher.com

Excel Tutorials
In workbook format with examples, practice ideas and short video demonstrations
Each tutorial covers Excel skills needed for specific applications:
Budgeting
Sales Reporting
Data Analysis
Reporting
Financial Statement Presentation
Charting
Pivot Tables

Purchase tutorials: www.lacher.com

Custom Application Development Via the Internet


Excel, Access, Visio, Word, Visual Basic

Add nationally recognized Excel, Access and MS Office Experts to your team -- with strong business
management backgrounds who are also nationally recognized MS Office consultants and authors.

Pay only for the help you need. To have the same level of expertise at your site, you would need to pay large fees for
recruiting -- or a consultant's travel expenses and daily rate. With On Line Consulting via the Internet, you can receiv
attention in small chunks of time, as needed.

Receiving efficient help via the Internet means fewer phone calls and meetings. You can work with the MS Office Exp
schedule, corresponding via E-Mail at any time and from any location.

More information: consulting@lacher.com


strong business
s and authors.

would need to pay large fees for


g via the Internet, you can receive expert

can work with the MS Office Expert on your


Start

Copyright 2000 John F. Lacher


Excel Tip and Example
Title: Conversion of Feet and Inches to Decimal Values

Keywords: Inches, Feet, Measurement, User Defined Function

Description: Two Visual Basic for Applications User Defined Functions, one to convert from decimal
inches to feet, inches and fractions. The second function converts from feet and inches to decimal
inches.

Tip:
You can create these User Defined Functions:

CFeet converts from decimal inches to feet, inches and fractions of inch. The second
parameter of CFeet specifies the smallest fraction of inch for rounding. If omitted, fractions
are rounded to 9999th's of an inch.

CInches converts from feet, inches and fractions of inch to decimal inches.

Guide to the Example:


To use these functions, insert a module page in your workbook and copy the functions from
Module 1 to your module page. Functions will then appear in the function wizard under User
Defined Functions. Even if you are not a Visual Basic Coder, please read comments in
Module 1 to understand logic of functions. See examples on Sheet1.

Page 5
Sheet1

Values =Inches(An) =Feet(Bn,16)


5'-6 1/2" #VALUE! #VALUE!
3'-5 1/4" #VALUE! #VALUE!
5'- 1/2" #VALUE! #VALUE!
7/16" #VALUE! #VALUE!
8' #VALUE! #VALUE!
5'-6 1/2" #VALUE! #VALUE!
1/3" #VALUE! #VALUE!
1/6" #VALUE! #VALUE!
30'-2 1/50" #VALUE! #VALUE!

Page 6

You might also like