Skip to Main Content
Computing with Excel and VBA
book

Computing with Excel and VBA

by S.I. Krishan
August 2008
Beginner to intermediate content levelBeginner to intermediate
298 pages
10h 49m
English
Jones & Bartlett Learning
Content preview from Computing with Excel and VBA
Problem Solving Examples 111
We could have written the formula using names for different variables. Certainly, a
formula, shown below, with meaningful names for variables is more comprehensible.
=IF(Hours_Worked>40,IF(Hours_Worked>50,2*Hourly_
Rate*(Hours_Worked-50)+1.5*Hourly_Rate*10+Hourly_Rate*40,
1.5*Hourly_Rate*(Hours_Worked-40)+Hourly_Rate*40),
Hourly_Rate*Hours_Worked)
You should note that the single formula used above is not the only way to calculate the
salary. We can, for example, calculate separately the regular pay and the overtime pay
in two adjacent columns and then add them to get the total pay for each employee. This
may be better ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Excel Programming with VBA Starter

Excel Programming with VBA Starter

Robert F Martin
Programming Excel with VBA and .NET

Programming Excel with VBA and .NET

Jeff Webb, Steve Saunders

Publisher Resources

ISBN: 9780763756680