ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Testing for an Integer result in a formula (https://www.excelbanter.com/excel-worksheet-functions/250139-testing-integer-result-formula.html)

JerryG[_2_]

Testing for an Integer result in a formula
 
I'm writing a nested IF statement in which one step needs to test the value
of one cell divided by another cell, and determine if it is an integer before
it completes the calculation.

So, IF cell R10 / I13 = INTEGER, then I'll perform a Future Value calc. IF
NOT = I want to do nothing.

I tried ISEVEN, but when I turned on the Analysis Took Pak nothing happened.
My spreadsheet still did not recognize the ISEVEN.

Suggestions please?
--
Jerry G

Pete_UK

Testing for an Integer result in a formula
 
Try this:

=IF(INT(R10/I13)=R10/I13,"integer","")

Hope this helps.

Pete

On Dec 4, 3:23*pm, JerryG wrote:
I'm writing a nested IF statement in which one step needs to test the value
of one cell divided by another cell, and determine if it is an integer before
it completes the calculation.

So, IF cell R10 / I13 = INTEGER, then I'll perform a Future Value calc. *IF
NOT = I want to do nothing.

I tried ISEVEN, but when I turned on the Analysis Took Pak nothing happened.
*My spreadsheet still did not recognize the ISEVEN.

Suggestions please?
--
Jerry G



Daryl S

Testing for an Integer result in a formula
 
Jerry -

Use the MOD operator, which tells if there is a remainder after dividing the
two numbers.

=IF(=MOD(R10,I13)=0),<FV Calc here,"")
--
Daryl S


"JerryG" wrote:

I'm writing a nested IF statement in which one step needs to test the value
of one cell divided by another cell, and determine if it is an integer before
it completes the calculation.

So, IF cell R10 / I13 = INTEGER, then I'll perform a Future Value calc. IF
NOT = I want to do nothing.

I tried ISEVEN, but when I turned on the Analysis Took Pak nothing happened.
My spreadsheet still did not recognize the ISEVEN.

Suggestions please?
--
Jerry G



All times are GMT +1. The time now is 01:56 AM.

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