Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Round function in If statement
Hello, Hopefully a nice simple one for you all to improve your post count! ;) In this formula =IF(ISERROR(F21/C21)=TRUE,0,(F21/C21)) where can i insert the Round function to 2 places (i.e. it rounds up or down with no decimal places) I can't figure it out. thanks in advance -- penri0_0 ------------------------------------------------------------------------ penri0_0's Profile: http://www.excelforum.com/member.php...o&userid=28947 View this thread: http://www.excelforum.com/showthread...hreadid=545427 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Round function in If statement
Try this:
=IF(ISERROR(F21/C21),0,round(F21/C21,2)) or a slight variation: =IF(C21=0,0,round(F21/C21,2)) You will also have to format the cell as a number with 2 decimal places to see them - sounds like your current format is 0 dp. Hope this helps. Pete |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Round function in If statement
Thanks Pete, works perfectly. -- penri0_0 ------------------------------------------------------------------------ penri0_0's Profile: http://www.excelforum.com/member.php...o&userid=28947 View this thread: http://www.excelforum.com/showthread...hreadid=545427 |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Round function in If statement
Thanks for the feedback.
Pete |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do i set up round function | Excel Worksheet Functions | |||
Change a number to round up without a function | Excel Discussion (Misc queries) | |||
Formatting a cell with a function (IF statement) | Excel Worksheet Functions | |||
Automatically up date time in a cell | Excel Discussion (Misc queries) | |||
clock | Excel Worksheet Functions |