View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom Peo Sjoblom is offline
external usenet poster
 
Posts: 3,268
Default Rounding up or down in the same formula

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