+ Reply to Thread
Results 1 to 4 of 4

Nested if and statements, I can't wrap my head around the syntax.

  1. #1
    Registered User
    Join Date
    04-28-2009
    Location
    Columbia, MO
    MS-Off Ver
    Excel 2003
    Posts
    6

    Nested if and statements, I can't wrap my head around the syntax.

    Hello all, I am new to Excel as of last night. I am working on a spreadsheet to keep track of my fitness, and I am trying to make an if and function that will look at cell "B3" for either an "M" or an "F" for male or female and then:

    =IF((AND(B9>20,B9<24)),A3," ") for a male
    =IF((AND(B9>18,B9<20)),A3," ") for a female

    cell "A3" is the content in the Name field, and "B9" is the fat percent field which is listed numerically. If "B9" is in range it will display the name entered in the "A3" cell, if not, it will display a space leaving the cell blank.

    I figured out how to get what I wanted out of this equation:

    =IF(B3="M",(G3*1.082)+94.42-(B6*4.15),(G3*0.732)+8.987+(A6/3.14)-(B6*0.157)-(C6*0.249)+(D6*0.434))

    but for the life of me I can't get my head to work around my present problem. If anyone can help me I would really appreciate it.

    Kevin
    Last edited by noisewatter; 04-28-2009 at 03:25 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Nested if and statements, I can't wrap my head around the syntax.

    Maybe?

    =IF(OR(AND(B3="M",A9>18.5,A9<25),AND(B3="F",A9>12,A9<20)),A3,"")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-28-2009
    Location
    Columbia, MO
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Nested if and statements, I can't wrap my head around the syntax.

    I believe it works, thank you very much for a speedy response.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Nested if and statements, I can't wrap my head around the syntax.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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