+ Reply to Thread
Results 1 to 9 of 9

Multiple if(and help

  1. #1
    Registered User
    Join Date
    05-08-2017
    Location
    Illinois
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    5

    Multiple if(and help

    Looking for some help after a lot of trial and failure...
    I am trying to find a formula that will help me calculate the following:
    if(and(M2>=39.4,J2="Female",K2=14),"Meets","Does Not Meet")
    if(and(M2>=39.1,J2="Female",K2=15),"Meets","Does Not Meet")
    if(and(M2>=38.9,J2="Female",K2=16),"Meets","Does Not Meet")
    if(and(M2>=42.5,J2="Male",K2=14),"Meets","Does Not Meet")
    if(AND(M2>=43.6,J2="Male",K2=15),"Meets","Does Not Meet")
    if(and(M2>=44.1,J2="Male",K2=16),"Meets","Does Not Meet")

    I would like to combine all of these into one formula in the same cell. This way I can apply it to my whole class:
    1. 41.3 Female 14 Meets
    2. 47.4 Male 15 Meets
    3. 37.2 Female 14 Does Not Meet
    4. 45.8 Male 16 Meets

    Thanks for any help...

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,570

    Re: Multiple if(and help

    Post a sample workbook so we don't have to make one up to test formulas:
    (How to) Upload a Workbook directly to the Forum
    (please do not post pictures or links to worksheets)
    • Click Advanced next to Quick Post button at the bottom right of the editor box.
    • Scroll down until you see "Manage Attachments",
    • Click the "Choose" button at the upper left (upload from your computer).
    • Select your file, click "open", click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Close the Attachment Manager window.
    • Click "Submit Reply"
    Note: Please do not attach password protected workbooks/worksheets
    Ensure to disable any Workbook Open/Autorun macros before attaching!
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    05-08-2017
    Location
    Illinois
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    5

    Re: Multiple if(and help

    Here you go.
    Thanks!
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,570

    Re: Multiple if(and help

    There is unreadable content in your attachment. However try:
    Please Login or Register  to view this content.
    It chooses from two IF formulas based on male/female
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-08-2017
    Location
    Illinois
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    5

    Re: Multiple if(and help

    What I would like to do in that highlighted cell is to have this formula, but it won't do it and I can't figure out how to make it work...
    IF(and(M2>=39.4,J2="Female",K2=14),"Meets","Does Not Meet"),if(and(M2>=39.1,J2="Female",K2=15),"Meets","Does Not Meet"),if(and(M2>=38.9,J2="Female",K2=16),"Meets","Does Not Meet"),if(and(M2>=42.5,J2="Male",K2=14),"Meets","Does Not Meet"),if(AND(M2>=43.6,J2="Male",K2=15),"Meets","Does Not Meet"),if(and(M2>=44.1,J2="Male",K2=16),"Meets","Does Not Meet")

    I just want to know which students in the ages of 14-16 meet and do not meet the standard. The issue is that each age and gender has a different standard (VO2Max). I am hoping for a way to compile the totals for meet and does not meet.
    Thanks again.

  6. #6
    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
    79,349

    Re: Multiple if(and help

    What's wrong with the solution you have been offered above? It seems to do what you have asked.
    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.

  7. #7
    Registered User
    Join Date
    05-08-2017
    Location
    Illinois
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    5

    Re: Multiple if(and help

    This is AWESOME! Huge help and gives me a blueprint for the rest of the spreadsheet. I may have to come back here in the ext few days, but you are awesome!
    Thanks so much!

  8. #8
    Registered User
    Join Date
    05-08-2017
    Location
    Illinois
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    5

    Re: Multiple if(and help

    Quote Originally Posted by AliGW View Post
    What's wrong with the solution you have been offered above? It seems to do what you have asked.
    I hadn't realized she had replied already so I was trying to give a clearer picture of what I had in mind, but she already knew!

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Multiple if(and help

    (she is a he Ben Van Johnson)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  2. [SOLVED] Counting multiple items with multiple criteria from multiple sheets?
    By essee in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-23-2013, 01:56 AM
  3. Replies: 20
    Last Post: 03-13-2013, 04:15 PM
  4. [SOLVED] Large spreadsheet; multiple scores on multiple dates for multiple students
    By MelindaCapri in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-16-2012, 06:03 PM
  5. Return Multiple Values with multiple rows & multiple columns
    By sachin parab in forum Excel General
    Replies: 2
    Last Post: 11-05-2012, 10:21 AM
  6. Replies: 5
    Last Post: 11-04-2010, 06:02 AM
  7. Replies: 7
    Last Post: 09-15-2005, 05:05 PM

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