Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I want to use the result of dividing two numbers in Excel to do other
operations in an 'If Then' statement. If the number is a whole number, do one thing otherwise something else. In other words if the remainder is zero do this, otherwise this. How can I do that? Is an 'If Then' statement the right approach? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=if(mod(XXX/YYY,1)=0, do if integer, do if not)
" wrote: I want to use the result of dividing two numbers in Excel to do other operations in an 'If Then' statement. If the number is a whole number, do one thing otherwise something else. In other words if the remainder is zero do this, otherwise this. How can I do that? Is an 'If Then' statement the right approach? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Try this: =IF(A2=0,0,A1/A2) Thanks, -- Farhad Hodjat " wrote: I want to use the result of dividing two numbers in Excel to do other operations in an 'If Then' statement. If the number is a whole number, do one thing otherwise something else. In other words if the remainder is zero do this, otherwise this. How can I do that? Is an 'If Then' statement the right approach? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
change 2000 cells (negative numbers) into positive numbers | Excel Worksheet Functions | |||
Excel Formula - Add column of numbers but ignore negative numbers | Excel Worksheet Functions | |||
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? | Excel Worksheet Functions | |||
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? | Excel Worksheet Functions | |||
Count comma separated numbers, numbers in a range with dash, not t | Excel Discussion (Misc queries) |