Changing display of decimal value based on the value in the cell

G

Guest

If the numeric value in the cell is less than or equal to 5 I would like the
number to be displayed with one decimal value. If in the same cell the value
is >5 I would like the number to be displayed with 0 decimal places. The cell
I am talking about is itself composed of ROUND function.

How can this be done?
 
C

CLR

Assuming your formula is in A1

=IF(A1<5,ROUND(A1,1),INT(A1))

Vaya con Dios,
Chuck, CABGx3
 

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

Top