+ Reply to Thread
Results 1 to 7 of 7

Nested if function

  1. #1
    Registered User
    Join Date
    03-11-2009
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    58

    Nested if function

    Hi hoping to get some help on doing a nested if function.
    ROQ (re-order qty)
    ORDMULT (order multiple)

    trying to figure out how to write the forumula so that if:

    If A>B=A but if differance between A&B=less than B, then it has to be a number that is multiple of B (i.e. if B=6 then it should be Actual ROQ=B*2)
    If A<B=B,

    Thanks for any help on this!
    Attached Files Attached Files

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Nested if function

    Hi Mate

    Can you tell me what you think the answer should be for the first few lines of your spreadsheet. I've done the A>B and A<B scenarios (please confirm this is what you want) but I don't understand your scenario when A-B > B (Or when A is greater than 2*B)

    Please Login or Register  to view this content.
    Oh and I don't think it needs to be a nested if either.

    you can simply test for the A>2B, run your true formula when we understand what that is and then your false forumla will simply be max(a,b)

    like

    =if(A2>2*b2,[your formula],max(a2,b2))
    Last edited by Crooza; 11-04-2014 at 09:22 PM.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,947

    Re: Nested if function

    Try: =IF(AND(A2>B2,ABS(A2-B2)>B2),A2,IF(AND(A2>B2,ABS(A2-B2)<B2),CEILING(A2,6),B2))
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    02-18-2013
    Location
    Florida, USA
    MS-Off Ver
    Excel 2013+
    Posts
    18

    Re: Nested if function

    Your requirements are ambiguous. Re-submit the form with the manual answers.

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Nested if function

    I think ProtonLeah has it. It's not how I understood what the OP asked for but her solution seems to be logical in that it orders the minimum order to cover the Reorder but in the appropriate multiples. Well done understanding that ProtonLeah

  6. #6
    Registered User
    Join Date
    03-11-2009
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    58

    Re: Nested if function

    Thanks so much for figuring this out for me even though my explanation was not so great! Your formula works perfectly.

  7. #7
    Registered User
    Join Date
    03-11-2009
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    58

    Re: Nested if function

    Thank you everyone!!

+ 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 Function With Division - Receiving #VALUE! Function Error
    By DDM64 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-17-2013, 01:16 PM
  2. Replies: 6
    Last Post: 12-14-2012, 10:43 PM
  3. [SOLVED] Nested AND function within IF function is only addressing logical1 but not logical2
    By betic in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2012, 09:17 AM
  4. Replies: 9
    Last Post: 07-02-2012, 07:02 PM
  5. Offset function with nested match function not finding host ss.
    By MKunert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2006, 06:50 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