Formatting a number in a cell with text and number

  • Thread starter Thread starter Zilbandy
  • Start date Start date
Z

Zilbandy

I have a cell with the following entered in it:

="Daily Average = "&E2

The value of E2 diplays with all the decimal points showing. I need to
format the value of E2 to display with no decimal points showing, such
as 4532 instead of 4532.23764....

Can I specify the format to be used in the cell equaion?
 
Ahh..forgot to tell you: INT always rounds down, so -5.1 results in 6 and
5.9 results in 5
If you need to round to nearest integer you may want to use ROUND or
something like
="Daily Average = "&TEXT(E2,"0;-0")

Cheers,

Joerg
 
="Daily Average = "&INT(E2)

Thanks, that worked, but didn't round the number. It did give me the
clue to look in math functions and I found the ROUND function. Thanks.
:)
 
Ahh..forgot to tell you: INT always rounds down, so -5.1 results in 6 and
5.9 results in 5
If you need to round to nearest integer you may want to use ROUND or
something like
="Daily Average = "&TEXT(E2,"0;-0")

Thanks. I used the ROUND function. It's all solved now. :)
 

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

Back
Top