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
Common Function Examples 61
Example 3.3 Returning Exact Change
In this example, we are going to use the FLOOR function to determine how many one
dollar bills, quarters, dimes, nickels, and pennies are needed to return exact change to
a customer. We assume that we always want to use the minimum number of bills and
coins of different denominations to make up the exact change. For example, we want
to use two one dollar bills, one quarter, and two pennies to return $2.27 to a customer
rather than nine quarters and two pennies.
You may recall that the FLOOR function rounds a number down to the nearest integer
or to the nearest integer multiple of ...
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