+ Reply to Thread
Results 1 to 6 of 6

multiple/nested if then statements

  1. #1
    Registered User
    Join Date
    09-06-2015
    Location
    New York, NY
    MS-Off Ver
    office live
    Posts
    9

    multiple/nested if then statements

    I always get confused by nested if then statements:

    Column A Column B
    12 if A1 <10, then Small, if A1 <20, then medium, if a1 >20 then large
    15 if A2 <10, then Small, if A2 <20, then medium, if a2 >20 then large
    22 if A3 <10, then Small, if A3 <20, then medium, if a3 >20 then large

    Can someone help me with the formula for this. As always, thanks so much

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: multiple/nested if then statements

    what do you actually want?
    <10 small
    <20 medium
    >20 large

    what happens when its 20?

    if you want it to be large then
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    if you want it to be medium then
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by humdingaling; 09-14-2015 at 01:28 AM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    09-06-2015
    Location
    New York, NY
    MS-Off Ver
    office live
    Posts
    9

    Re: multiple/nested if then statements

    thank you, that worked.
    Can you kindly add one more if statement
    meaning
    <10small
    <20 medium
    <=30 large
    >xlarge

    I'm having trouble with the logic, but I'll pick it up soon. thx again

  4. #4
    Registered User
    Join Date
    09-06-2015
    Location
    New York, NY
    MS-Off Ver
    office live
    Posts
    9

    Re: multiple/nested if then statements

    I meant
    <10small
    <20 medium
    <30 large
    >= 30 xlarge

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: multiple/nested if then statements

    Here you go
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    while your there
    heres another way of attacking the problem in case you have even more sizes you want to add
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    lookup number,(where does it fall in) set of numbers, (based on where it falls in) set of answers

    play around with the numbers to see how it works
    i think its a easier way to understand then too many if statements (once you get the hang of it)

    ps the iferror is just to keep it tidy if your below the first number which blank or zero would be

  6. #6
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: multiple/nested if then statements

    How about using VLOOKUP?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

+ 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] Concatenate using multiple nested If statements
    By Webbers in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-14-2015, 08:42 AM
  2. [SOLVED] Nested if statements containing multiple and statements
    By John M. in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-22-2014, 11:48 PM
  3. Multiple Nested IF Statements
    By rlsublime in forum Excel General
    Replies: 1
    Last Post: 11-15-2012, 02:01 PM
  4. Alternative to using multiple nested IF statements
    By maacmaac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2011, 12:51 PM
  5. Multiple nested IF statements and AND statements
    By TonyGetz in forum Excel General
    Replies: 2
    Last Post: 12-14-2010, 03:07 AM
  6. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  7. multiple nested IF statements
    By jazzydwit in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-29-2005, 01:30 PM

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