ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   IF Statement (https://www.excelbanter.com/excel-discussion-misc-queries/73722-if-statement.html)

Sue

IF Statement
 
How can I write an IF statement for the following:

If the value in cell b4 < 10, round that figure to 1 decimal place.

If the value in cell b4 = 10, round that figure to 0 decimal place.

Thanks,
--
Sue

Elkar

IF Statement
 
Try this:

=IF(B4<10,ROUND(B4,1),ROUND(B4,0))

HTH,
Elkar

"Sue" wrote:

How can I write an IF statement for the following:

If the value in cell b4 < 10, round that figure to 1 decimal place.

If the value in cell b4 = 10, round that figure to 0 decimal place.

Thanks,
--
Sue


CLR

IF Statement
 
=IF(B4<10,ROUND(B4,1),IF(B4=10,ROUND(B4,0),""))

Vaya con Dios,
Chuck, CABGx3



"Sue" wrote:

How can I write an IF statement for the following:

If the value in cell b4 < 10, round that figure to 1 decimal place.

If the value in cell b4 = 10, round that figure to 0 decimal place.

Thanks,
--
Sue


Gary''s Student

IF Statement
 
Use:


=IF(B4<10,ROUND(B4,1),ROUND(B4,0))

--
Gary's Student


"Sue" wrote:

How can I write an IF statement for the following:

If the value in cell b4 < 10, round that figure to 1 decimal place.

If the value in cell b4 = 10, round that figure to 0 decimal place.

Thanks,
--
Sue



All times are GMT +1. The time now is 11:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com