cell value functioning as whole number in formulas

A

Art Stretcher

Sirs,
I can format a calculated cell value to display as the nearest whole number.
But is it possible to have that rounded whole number value (not the cell's
calculated fractional value) become the value recognized and used when it is
a term in follow-on fomulas?

For example; if cell A5 represents the number of bolts needed to attach a
frame and the next calculation uses A5 as a multiplier with A6, which is the
unit price-per screw and the you want the total cost to automate as the
answer in cell A7, then cell A5 needs to be a whole number.

Is this possible? If so, what do I need to do.

I appreciate your help!
 
R

Rick Rothstein

Since your calculated value in A5 represents the number of units of a real
world item, I would not think you would ever want that number rounded
downward... I would think (for your case) a fraction of a bolt should count
as a whole bolt. Formatting the cell value as a whole number will round
fractional values less than 0.5 downward. Instead of using cell formatting,
why don't you encase your calculation in A5 with the ROUNDUP function like
this...

C5: =ROUNDUP(<<your current formula goes here>>,0)

Now, your other formulas that reference C5 will see the rounded up number
(there will no longer be any fractional value to worry about) and so they
will calculate as you want them to.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top