ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need to find a function. (https://www.excelbanter.com/excel-worksheet-functions/128112-need-find-function.html)

MikeCampbell

Need to find a function.
 
I am working on a function to help with finding solutions to quadratic
equations so I can help kids in (pre-)algebra as a voulenteer past my work as
a sysadmin. The current formula looks something like this:

=IF(F13<0,"2 Complex",IF(F13=0,"1
Rational",IF(AND(F130,OR(ISEVEN(SQRT(F13)),ISODD( SQRT(F13)))),"2
Rational","2 Irrational")))

the "ISEVEN(SQRT(F13)),ISODD(SQRT(F13))" does not do what I was hoping for.
It needs to be set so that if the result of SQRT(F13) is a whole number the
final result is "2 Rational" and if it is a integer with a decimal it returns
"2 irrational"

any help here is most appreciated
--
Head of IT for Imports International
Head of IT for Omaha Memorial School

daddylonglegs

Need to find a function.
 
Try

=IF(F13<0,"2 Complex",IF(F13=0,"1 Rational",IF(MOD(SQRT(F13),1),"2
Irrational","2 Rational")))

"MikeCampbell" wrote:

I am working on a function to help with finding solutions to quadratic
equations so I can help kids in (pre-)algebra as a voulenteer past my work as
a sysadmin. The current formula looks something like this:

=IF(F13<0,"2 Complex",IF(F13=0,"1
Rational",IF(AND(F130,OR(ISEVEN(SQRT(F13)),ISODD( SQRT(F13)))),"2
Rational","2 Irrational")))

the "ISEVEN(SQRT(F13)),ISODD(SQRT(F13))" does not do what I was hoping for.
It needs to be set so that if the result of SQRT(F13) is a whole number the
final result is "2 Rational" and if it is a integer with a decimal it returns
"2 irrational"

any help here is most appreciated
--
Head of IT for Imports International
Head of IT for Omaha Memorial School


MikeCampbell

Need to find a function.
 
Thank you. That seems to have done the trick.
--
Head of IT for Imports International
Head of IT for Omaha Memorial School


"daddylonglegs" wrote:

Try

=IF(F13<0,"2 Complex",IF(F13=0,"1 Rational",IF(MOD(SQRT(F13),1),"2
Irrational","2 Rational")))

"MikeCampbell" wrote:

I am working on a function to help with finding solutions to quadratic
equations so I can help kids in (pre-)algebra as a voulenteer past my work as
a sysadmin. The current formula looks something like this:

=IF(F13<0,"2 Complex",IF(F13=0,"1
Rational",IF(AND(F130,OR(ISEVEN(SQRT(F13)),ISODD( SQRT(F13)))),"2
Rational","2 Irrational")))

the "ISEVEN(SQRT(F13)),ISODD(SQRT(F13))" does not do what I was hoping for.
It needs to be set so that if the result of SQRT(F13) is a whole number the
final result is "2 Rational" and if it is a integer with a decimal it returns
"2 irrational"

any help here is most appreciated
--
Head of IT for Imports International
Head of IT for Omaha Memorial School



All times are GMT +1. The time now is 10:36 PM.

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