Thread: Rounding cents
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld[_2_] Ron Rosenfeld[_2_] is offline
external usenet poster
 
Posts: 1,045
Default Rounding cents

On Tue, 22 Jan 2013 07:50:13 -0800 (PST), Håkan Björkström wrote:

I just faced an annoying problem in Excel. I need to convert an euro sum (e.g. €49.80) into text formatted as the integer part four characters long with leading zeros and accordingly cents two characters long with leading zeros. Example, euro 49.80 should be presented as 004980. When I calculate the cent part it will result in 79, not 80. I have to find out a formula which always presents the cent figure correctly, not too small not too big.

Thanx Hakan


Without understanding what you mean by this: "When I calculate the cent part it will result in 79, not 80", I would suggest:

A1: Your euro value

=TEXT(A1*100,"000000")

If you do not obtain the answer you require, you will need to explain what you mean by the above sentence, and provide examples of the data and formulas you are actually using.