ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   IF Calculation and Operations (https://www.excelbanter.com/excel-discussion-misc-queries/218979-if-calculation-operations.html)

Rich

IF Calculation and Operations
 
I want to use a formula that will state IF team is Mets, Pirates, Cardinals
then put North, if not South. I don't know how to write an OR statement. In
other words, if the team name is Mets, Pirates or Cardinals I want to put in
North, if not put in South division.
--
Rich

Murray

IF Calculation and Operations
 
On Feb 4, 8:04*am, Rich wrote:
I want to use a formula that will state IF team is Mets, Pirates, Cardinals
then put North, if not South. *I don't know how to write an OR statement. *In
other words, if the team name is Mets, Pirates or Cardinals I want to put in
North, if not put in South division. *
--
Rich


Try =IF(OR(A1="Mets",A1="Pirates",A1="Cardinals"),"Nor th","South")

Assuming your team name is in A1

HTH

Murray

Rich

IF Calculation and Operations
 

--
Rich


"Murray" wrote:

On Feb 4, 8:04 am, Rich wrote:
I want to use a formula that will state IF team is Mets, Pirates, Cardinals
then put North, if not South. I don't know how to write an OR statement. In
other words, if the team name is Mets, Pirates or Cardinals I want to put in
North, if not put in South division.
--
Rich


Try =IF(OR(A1="Mets",A1="Pirates",A1="Cardinals"),"Nor th","South")

Assuming your team name is in A1

HTH

Murray


Rich

IF Calculation and Operations
 
Thanks, it worked.
--
Rich


"Murray" wrote:

On Feb 4, 8:04 am, Rich wrote:
I want to use a formula that will state IF team is Mets, Pirates, Cardinals
then put North, if not South. I don't know how to write an OR statement. In
other words, if the team name is Mets, Pirates or Cardinals I want to put in
North, if not put in South division.
--
Rich


Try =IF(OR(A1="Mets",A1="Pirates",A1="Cardinals"),"Nor th","South")

Assuming your team name is in A1

HTH

Murray



All times are GMT +1. The time now is 02:42 AM.

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