View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jack L. Hyman[_2_] Jack L. Hyman[_2_] is offline
external usenet poster
 
Posts: 3
Default Rounding up or down in the same formula

Thank you...both do the job well.

"Peo Sjoblom" wrote:

You might want to use Sandy's formula that will do the same with less effort


--


Regards,


Peo Sjoblom



"Jack L. Hyman" wrote in message
...
Thank you!

"Peo Sjoblom" wrote:

Try

=ROUND(A1/10,0)*10-1

problem will occur with a value smaller than 5 so you might want to use
an
IF function for that or simply use

=MAX(ROUND(A1/10,0)*10-1,0)

which will return zero if a value is less than 5

--


Regards,


Peo Sjoblom


"Jack L. Hyman" <Jack L. wrote in
message
...
How do I create a single formula to either round up or down the result
of
my
formula to the nearest "9"?
i.e.
843 = 839
845 = 849
etc., etc.
Thanks,
Jack