+ Reply to Thread
Results 1 to 4 of 4

Compound If statement with multiple conditions

  1. #1
    Registered User
    Join Date
    06-10-2014
    Posts
    2

    Compound If statement with multiple conditions

    Hi everyone,

    I am basically trying to tell excel to use a specific formula if two conditions are met and what do to do if they aren't:

    This is basically what I want to do:
    If ***=male and BMI<=28, then use x(m) formula; if ***=male and BMI>28;then use xy(m) formula
    If ***=female and BMI<=28, then use x(f) formula; if ***=female and BMI>28;then use xy(f) formula

    Been struggling with this for a while now, so I would appreciate any help

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Compound If statement with multiple conditions

    whats the ***
    possibly the forum seeing a word

    a Nested IF

    =IF ( AND ( ***=male , BMI<=28) , x(m) , if ( AND (***=male , BMI>28) , xy(m), If ( AND ( ***=female , BMI<=28), x(f) , if (AND( ***=female , BMI>28), xy(f) , "criteria not meet") )))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-10-2014
    Posts
    2

    Re: Compound If statement with multiple conditions

    Hey man thanks for the input, I have been using that nested if statement for a while now but I keep getting the #NAME? error, can't figure out what's wrong with it :s

  4. #4
    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,929

    Re: Compound If statement with multiple conditions

    the *** is the forum moderating the word made up from the caps in these words...Shoiuld Expect eXtra

    Seeing as you have so many letters there that could be range names, maybe upload a sample workbook for us to look at?
    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. [SOLVED] Multiple conditions for an IF statement
    By mike_vr in forum Excel General
    Replies: 4
    Last Post: 05-18-2012, 06:57 AM
  2. Multiple conditions in an 'IF' statement
    By dlburkins in forum Excel General
    Replies: 3
    Last Post: 04-25-2011, 04:21 PM
  3. Multiple conditions in one IF statement
    By phaley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2008, 04:59 PM
  4. [SOLVED] If statement using multiple conditions
    By SCOOBYDOO in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] If statement using multiple conditions
    By SCOOBYDOO in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2005, 08:05 AM

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