ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Writing an "IF" Statement (https://www.excelbanter.com/excel-worksheet-functions/141275-writing-if-statement.html)

Paula

Writing an "IF" Statement
 
I am trying to write an "IF" statement into a spreadsheet that will let the
user know if they are to advance to the next step or not. My formula will
incorporate the following information:

IF D2 is greater than or equal to 95.0 and E2 is less than 0 then I want the
answer to be 2

IF D2 is equal to 94.9 or greater than 85 and E2 is less than 0 then I want
the answer to be 1

IF D2 is less than 85 and E2 is less than 0 then I want the answer to be 0

Any assistance you can give to how I should write this statement is greatly
appreciated.
--
Paula

papou

Writing an "IF" Statement
 
Hello
=IF(AND(D2=95,E2<0),2,IF(AND(D285,D2<=94.9,E2<0) ,1,IF(AND(D2<85,E2
<0),0,"""")))

HTH
Cordially
Pascal

"Paula" a écrit dans le message de news:
...
I am trying to write an "IF" statement into a spreadsheet that will let the
user know if they are to advance to the next step or not. My formula will
incorporate the following information:

IF D2 is greater than or equal to 95.0 and E2 is less than 0 then I want
the
answer to be 2

IF D2 is equal to 94.9 or greater than 85 and E2 is less than 0 then I
want
the answer to be 1

IF D2 is less than 85 and E2 is less than 0 then I want the answer to be 0

Any assistance you can give to how I should write this statement is
greatly
appreciated.
--
Paula




Ron Coderre

Writing an "IF" Statement
 
Try something like this:

=SUM(--(D2={85,95}))*(E2<0)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Paula" wrote:

I am trying to write an "IF" statement into a spreadsheet that will let the
user know if they are to advance to the next step or not. My formula will
incorporate the following information:

IF D2 is greater than or equal to 95.0 and E2 is less than 0 then I want the
answer to be 2

IF D2 is equal to 94.9 or greater than 85 and E2 is less than 0 then I want
the answer to be 1

IF D2 is less than 85 and E2 is less than 0 then I want the answer to be 0

Any assistance you can give to how I should write this statement is greatly
appreciated.
--
Paula



All times are GMT +1. The time now is 09:54 AM.

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