+ Reply to Thread
Results 1 to 7 of 7

Nested IF + AND IF statements - Help!

  1. #1
    Registered User
    Join Date
    03-31-2017
    Location
    UK
    MS-Off Ver
    MSO 365
    Posts
    12

    Nested IF + AND IF statements - Help!

    Hi Guys

    I'm building a sales commsion 'tracker' and I think I'm almost there but the last step has stumped me. I'm trying to create a formula that says:

    If the Revenue Type = Multiyear, multiply the Quota Value by 2%.
    If the Revenue Type = Hardware, multiply the Quota Value by 3%.
    If the Revenue Type = Licence, AND the Total Licence Quota equal to or less than 90,000, multiply the Quota Value by 4%.
    If the Revenue Type = Licence, AND the Total Licence Quota equal to or less than 180,000, multiply the Quota Value by 5%.
    If the Revenue Type = Licence, AND the Total Licence Quota equal to or less than 270,000, multiply the Quota Value by 6%.
    If the Revenue Type = Licence, AND the Total Licence Quota greater than 270,001, multiply the Quota Value by 12%.

    Here is my attempted formula below;

    =IF(D9="Multiyear",J9*0.02,IF(D9="Hardware",J9*0.03,IF(AND(D9="License",Total_Licence_Quota<="90,000"),J9*0.04,IF(AND(D9="License",Total_Licence_Quota<="180,000"),J9*0.05,IF(AND(D9="License",Total_Licence_Quota<="270,000"),J9*0.06,IF(AND(D9="License",Total_Licence_Quota>"270,001"),J9*0.12))))))

    I have also attached the sheet if anybody can help?! :-)

    I'm guessing handling the nesting wrong and/or i'm not using the AND IF appropriately. Any help would be greatly appreciated!

    Thank you!
    Last edited by nelson2101; 04-04-2017 at 06:29 PM.

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Nested IF + AND IF statements - Help!

    Two things:
    - I don't see 'Total_Licence_Quota' in your file anywhere, so I'm not sure what that is in your formula?
    - Take the quotation marks off the numbers - i.e. change "90,000" to just 90000, etc - you don't need them around numbers

    Other than that, your formula should work. (But as an aside, your final greater than 270,001 should just use 270,000 as the previous step is less than or equal to 270,000.)

    Hope that helps.
    Last edited by Aardigspook; 04-05-2017 at 12:56 AM. Reason: Fix typo
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Forum Contributor
    Join Date
    08-04-2004
    Location
    Amsterdam
    MS-Off Ver
    2016
    Posts
    186

    Re: Nested IF + AND IF statements - Help!

    Also, throughout your formula you are multiplying commission % by column J which is opportunity revenue when your instructions say commission % should be multiplied by Quota Value which is column L

  4. #4
    Registered User
    Join Date
    03-31-2017
    Location
    UK
    MS-Off Ver
    MSO 365
    Posts
    12

    Re: Nested IF + AND IF statements - Help!

    Hi All

    Really sorry for wasting your time - I uploaded the wrong file!! Sincere apologies!!! It's been along day...

    I have uploaded the correct version now. If you could sparea moment to have a second look, I'd be most grateful.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-04-2004
    Location
    Amsterdam
    MS-Off Ver
    2016
    Posts
    186

    Re: Nested IF + AND IF statements - Help!

    As mentioned by Aardigspook you don't need the double quotation marks around the amounts in the formula. Remove those and it works.
    Also remove the commas in the amounts

  6. #6
    Registered User
    Join Date
    03-31-2017
    Location
    UK
    MS-Off Ver
    MSO 365
    Posts
    12

    Re: Nested IF + AND IF statements - Help!

    Hi Guys - Many thanks for this. I'm a bit of a noob to IF statements, so please excuse the very basic mistakes on this one!

  7. #7
    Registered User
    Join Date
    03-31-2017
    Location
    UK
    MS-Off Ver
    MSO 365
    Posts
    12

    Re: Nested IF + AND IF statements - Help!

    [moving follow-up question to new post]
    Last edited by nelson2101; 04-05-2017 at 08:48 AM.

+ 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 if statements containing multiple and statements
    By John M. in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-22-2014, 11:48 PM
  2. questions with if statements and nested if statements
    By Pat Excel in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-03-2013, 01:41 PM
  3. [SOLVED] Nested IF/AND statements
    By Roy Price in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-12-2012, 02:36 AM
  4. Nested if statements with AND and OR statements
    By joeljoel in forum Excel General
    Replies: 4
    Last Post: 08-08-2011, 12:57 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. Nested If statements / logic statements
    By Brainless_09 in forum Excel General
    Replies: 3
    Last Post: 06-17-2009, 02:59 PM
  7. Replies: 12
    Last Post: 05-15-2009, 08:38 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