Using roundup on a cell with a formula

S

sue

Hi,

My cell has the following forumula:

=sum(H15-H12)/H11

I would like to use Roundup on the result - can you show me the syntax please.

Thanks,
Sue
 
J

JE McGimpsey

sue said:
Hi,

My cell has the following forumula:

=sum(H15-H12)/H11

I would like to use Roundup on the result - can you show me the syntax please.

FIrst, in

SUM(H15-H12)

the SUM() function is unnecessary, just use

=(H15-H12)/H11

To use ROUNDUP():

=ROUNDUP((H15-H12)/H11,x)

where x = -2, -1, 0, 1, 2, 3, etc. depending on how many decimal places
to round to (e.g., 0 will round up to the nearest integer, 1 to the
nearest 10th, -2 to the nearest hundred, etc.).

You can also find the syntax in XL Help ("ROUNDUP" topic).
 

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