+ Reply to Thread
Results 1 to 4 of 4

If Than Statement with 2 Criteria

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    5

    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.
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    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.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,862

    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.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    12-17-2013
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: If Than Statement with 2 Criteria

    Thank you both for your guidance. Will confirm later today and follow up if any additional questions. Reputation has been added.

    *Confirmed just now, applied both methods and both worked. Thank you again!
    Last edited by advertaddy; 06-24-2022 at 04:51 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. If Statement with two criteria
    By KatieA in forum Excel General
    Replies: 8
    Last Post: 02-23-2022, 01:11 PM
  2. If Statement with three criteria
    By alcohen43 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-09-2021, 11:34 AM
  3. [SOLVED] IF Statement with Multi-Criteria Statement inside a Data Validation List
    By dharvey1978 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2020, 09:10 PM
  4. [SOLVED] IF Statement with 2 criteria
    By karimel_romeo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-24-2015, 10:49 AM
  5. Count statement wtih multiple criteria only showing results for one criteria
    By uhlabomber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2013, 02:47 PM
  6. [SOLVED] If statement that will look among multiple criteria and generate a statement
    By liz5818 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2013, 04:12 PM
  7. [SOLVED] If Statement Criteria
    By Brent E in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-11-2005, 08:06 PM

Bookmarks

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