+ Reply to Thread
Results 1 to 6 of 6

Nested Ifs

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    208

    Nested Ifs

    Purchase Items Column B Cell C15 should be:
    2 0 it should be 0
    between 3-5 0 it should be 1
    between 3-5 1 it should be 0
    between 6-10 0 it should be 1
    between 6-10 1 it should be 1


    The answer has to check the input in the purchase items column A and numbers in column B and based on that, return the results in Column C15

    Any ideas?
    Last edited by olga6542; 03-30-2015 at 06:54 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,440

    Re: Nested Ifs

    It is not very clear what you want to achieve - please attach a sample Excel workbook and explain in that what the desired outcome should be.

    Pete

  3. #3
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    208

    Re: Nested Ifs

    C15 output should be the following based on the following criteria
    cell A1: between 1-2, cell B1=0, C15 output should be 0
    cell A1: between 3-5, Cell B1=0, C15 output should be 1
    cell A1: between 3-5, Cell B1=1, C15 output should be 0
    cell A1: between 6-10, Cell B1=1, C15 output should be 1
    cell A1: between 6-10, Cell B1=0, C15 output should be 1

    It's probably going to be array formula

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,440

    Re: Nested Ifs

    Presumably B1 can only be 0 or 1, but there are still other conditions not covered, i.e.:

    cell A1: between 1-2, cell B1=1, C15 output should be ??

    And what if A1 is less than 1, or A1 is greater than 10 ?

    It's just a multiple IF formula, but need to know all conditions.

    Pete

  5. #5
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    208

    Re: Nested Ifs

    it's impossible to have value of less than 1, so I wouldn't even put it as a condition. You are not going to have a value more than 10, so I would n't put it as a condition either. I know this is going to be an array formula because it looks at 10 conditions simonteniously.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,440

    Re: Nested Ifs

    I don't think you know the meaning of an array formula - this is a nested-IF formula for cell C15:

    =IF(A1<=2,IF(B1=0,0,"don't know"),IF(A1<=5,IF(B1=0,1,0),1))

    Substitute the appropriate value for "don't know".

    Hope this helps.

    Pete

+ 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] Nested Sumif's or how to sum data based on nested criteria
    By dlietz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-07-2014, 11:36 AM
  2. How to reduces Nested IF code(144 Nested IF) to achive same functionality
    By jobseeker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2014, 09:45 AM
  3. Replies: 0
    Last Post: 10-01-2012, 05:54 AM
  4. For each loop nested; getting stuck on one cell in first iteration of nested loop
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-22-2009, 11:54 AM
  5. help on a nested countif/nested if formula
    By vickiemc in forum Excel General
    Replies: 2
    Last Post: 08-13-2008, 08:29 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