Thread: Rounding cents
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Claus Busch Claus Busch is offline
external usenet poster
 
Posts: 3,872
Default Rounding cents

Hi Hakan,

Am Tue, 22 Jan 2013 08:15:43 -0800 (PST) schrieb Håkan Björkström:

Easier than I expected. I tried to separately handle integer and decimals and the formula for cents was Right("00"&100*(c3-Int(c3));2), which gave me 79, when C3 contained value 49.80.


there ist an error into the formula. Please change to:
=TEXT(ROUND(A1*100,0),"000000")
or
=ROUND(A1*100,0)
with custom number format


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2