Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
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? |
#2
![]() |
|||
|
|||
![]()
Try:
=if(a15,round(a1,0),round(a1,1)) and format as General. -- Regards, Fred Please reply to newsgroup, not e-mail "K M" <K wrote in message ... 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? |
#3
![]() |
|||
|
|||
![]()
Assuming your formula is in A1
=IF(A1<5,ROUND(A1,1),INT(A1)) Vaya con Dios, Chuck, CABGx3 "K M" <K wrote in message ... 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? |
#4
![]() |
|||
|
|||
![]()
Try custom format:
[<=5]###.0;[5]###;General -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "K M" <K wrote in message ... 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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Format a cell to display decimal hours. | Excel Discussion (Misc queries) | |||
Display message based on condition | Excel Worksheet Functions | |||
Sub-Totalling Based upon a changing field | Excel Worksheet Functions | |||
changing value of a cell based on another cell color | Excel Discussion (Misc queries) | |||
Combine & Display “Fixed” & “Automatically Updated” Date Parts | Excel Worksheet Functions |