ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula using IF, AND and OR Arguements (https://www.excelbanter.com/excel-worksheet-functions/52457-formula-using-if-arguements.html)

DaveG

Formula using IF, AND and OR Arguements
 
I work in the mortgage lending industry and I use Excel 2003 to track
information about each of the loans I review. I want to write a formula that
says: IF the value in cell A1 = "Refi" AND IF the value in cell A2 = AAAA or
BBBB or CCCC, THEN return the value DDDD in cell A3, otherwise leave cell A3
blank.

My formula works if I have only one value for cell A2, but it fails when I
try to add the OR values.

Any suggestions would be most appreciated.
--
DaveG

Peo Sjoblom

Formula using IF, AND and OR Arguements
 
=IF(AND(A1="Refi",OR(A2=AAAA,A2=BBBB,A2=CCCC)),DDD D,"")


--

Regards,

Peo Sjoblom

"DaveG" wrote in message
...
I work in the mortgage lending industry and I use Excel 2003 to track
information about each of the loans I review. I want to write a formula

that
says: IF the value in cell A1 = "Refi" AND IF the value in cell A2 = AAAA

or
BBBB or CCCC, THEN return the value DDDD in cell A3, otherwise leave cell

A3
blank.

My formula works if I have only one value for cell A2, but it fails when I
try to add the OR values.

Any suggestions would be most appreciated.
--
DaveG




DaveG

Formula using IF, AND and OR Arguements
 
Peo, thank you, it works perfectly now!
--
DaveG


"Peo Sjoblom" wrote:

=IF(AND(A1="Refi",OR(A2=AAAA,A2=BBBB,A2=CCCC)),DDD D,"")


--

Regards,

Peo Sjoblom

"DaveG" wrote in message
...
I work in the mortgage lending industry and I use Excel 2003 to track
information about each of the loans I review. I want to write a formula

that
says: IF the value in cell A1 = "Refi" AND IF the value in cell A2 = AAAA

or
BBBB or CCCC, THEN return the value DDDD in cell A3, otherwise leave cell

A3
blank.

My formula works if I have only one value for cell A2, but it fails when I
try to add the OR values.

Any suggestions would be most appreciated.
--
DaveG






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

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