#1   Report Post  
Posted to microsoft.public.excel.misc
Sue
 
Posts: n/a
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning Specific Cell Content using IF Statement weeclaire Excel Discussion (Misc queries) 2 February 17th 06 01:48 PM
Returning Specific Cell Content using IF Statement weeclaire Excel Discussion (Misc queries) 0 February 17th 06 09:25 AM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


All times are GMT +1. The time now is 10:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"