+ Reply to Thread
Results 1 to 5 of 5

If Statement with Multiple Criteria

  1. #1
    Registered User
    Join Date
    09-22-2015
    Location
    Eau Claire, WI
    MS-Off Ver
    2010
    Posts
    65

    If Statement with Multiple Criteria

    Hi there,

    I am working on a sheet that requires an IF statement with three total criteria. I have attached the worksheet for easy reference. Here is what I need. In Cell B3 of the PTO calculator sheet, I currently have this If statement: =IF('Data Sheet (Formulas)'!C2>12,'Data Sheet (Formulas)'!C17,IF('Data Sheet (Formulas)'!B2='Data Sheet (Formulas)'!L2,'Data Sheet (Formulas)'!C18,'Data Sheet (Formulas)'!C16)). The problem is that is does not work for all criteria.

    On the Data Sheet the cells highlighted in Red text are the values that need to be inputted into the cell based on the criteria match. Here are my three criteria all based on the Data Sheet.

    1.) If Cell B2 = Cell L2 then return value in cell C18
    2.) If C2 is > 12 then return value in cell C17
    3.) If neither of those conditions are met, then return the value of C16.

    Please let me know if you have any questions. Thank you in advance
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: If Statement with Multiple Criteria

    =if(b2=l2,c18,if(c2>12,c17,c16))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: If Statement with Multiple Criteria

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-22-2015
    Location
    Eau Claire, WI
    MS-Off Ver
    2010
    Posts
    65

    Re: If Statement with Multiple Criteria

    Thank you, the first one worked great and I just did =value on the other sheet to pull in the answer. John, yours gave me the same error I was getting.

  5. #5
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: If Statement with Multiple Criteria

    Here are two other approaches to make these decisions if you are coding in VBA:

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    If this has been helpful, please click on the star at the left.

+ 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. [SOLVED] countifs statement with multiple criteria for multiple criteria ranges
    By mcdermott2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2015, 11:48 AM
  2. VBA -If Then Statement Using Multiple Criteria
    By jcicero57 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-27-2013, 07:22 PM
  3. 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
  4. [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
  5. Multiple criteria within an IF statement
    By muish in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-29-2013, 06:00 PM
  6. [SOLVED] Multiple Criteria within an If Statement.
    By UsmanBPD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2012, 12:52 PM
  7. If Statement with multiple criteria
    By Ada01 in forum Excel General
    Replies: 4
    Last Post: 11-19-2009, 10:26 AM

Tags for this Thread

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