+ 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
    11,840

    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
    11,840

    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
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,101

    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" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite 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 2000/3/7/10/13/16/365
    Posts
    52,004

    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. [SOLVED] view multiple files in multiple windows on multiple screens.
    By tcom in forum Excel General
    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

X vBulletin 4.1.8 Debug Information

  • Page Generation 0.07012 seconds
  • Memory Usage 9,132KB
  • Queries Executed 16 (?)
More Information
Template Usage (36):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (9)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (4)navbar_noticebit
  • (6)option
  • (2)postbit_attachment
  • (9)postbit_legacy
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (4)showthread_bookmarksite
  • (7)showthread_similarthreadbit
  • (1)showthread_similarthreads
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper
  • (1)vbseo_linkbackmenu_entry 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (39):
  • ./vbseo.php
  • ./env.php
  • ./vbseo/includes/functions_vbseo.php
  • ./vbseo/includes/functions_vbseo_pre.php
  • ./vbseo/includes/functions_vbseo_url.php
  • ./vbseo/includes/functions_vbseo_createurl.php
  • ./vbseo/includes/functions_vbseo_db.php
  • ./vbseo/includes/functions_vbseo_vb.php
  • ./vbseo/includes/functions_vbseo_seo.php
  • ./vbseo/includes/functions_vbseo_misc.php
  • ./vbseo/includes/functions_vbseo_crr.php
  • ./vbseo/includes/functions_vbseo_cache.php
  • ./vbseo/includes/functions_vbseo_hook.php
  • ./vbseo/includes/functions_vbseo_startup.php
  • ./includes/config.php
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/functions.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/functions_cforum.php
  • ./includes/functions_facebook.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php
  • ./includes/functions_notice.php 

Hooks Called (50):
  • init_startup
  • friendlyurl_resolve_class
  • database_pre_fetch_array
  • database_post_fetch_array
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • fetch_musername
  • cache_templates
  • template_register_var
  • parse_templates
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • reputation_image
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • postbit_attachment
  • tag_fetchbit
  • tag_fetchbit_complete
  • showthread_similarthread_query
  • showthread_similarthreadbit
  • forumrules
  • showthread_bookmarkbit
  • navbits
  • navbits_complete
  • showthread_complete


Search Engine Friendly URLs by vBSEO 3.6.0 RC 1