# If Than Statement with 2 Criteria

1. ## If Than Statement with 2 Criteria

Hello,
I am wanting to write a formula where the first criteria checks who owns a Ford and then the second criteria is if they also own a Chevy, Honda, Nissan, or Kia (they dont have to own all of the other cars, just at least one). These have to occur together in order to return a value. I've attached a spreadsheet of what i'm looking to accomplish and they should return Fred, Bob, Mary, and Candace as the Values. For H2, I started to think of an if statement like =if(B2=1,A2,"") but that doesn't work as it comes back as a zero. That also doesn't account for the 2nd half of the criteria either. Thoughts? Thank you in advance.

2. ## Re: If Than Statement with 2 Criteria

it would seem to me that if the data you have is what is shown in columns A through F, then a simple ... =IF(SUM(B2:F2)>1,A2,"") in H2 dragged down would work.

3. ## Re: If Than Statement with 2 Criteria

In H2 =IF(AND(B2=1,OR(C2=1,D2=1,E2=1,F2=1)),A2,"") and copy down.

4. ## Re: If Than Statement with 2 Criteria

*Confirmed just now, applied both methods and both worked. Thank you again!

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1