+ Reply to Thread
Results 1 to 6 of 6

Need help to write nested if formula

  1. #1
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Need help to write nested if formula

    Hi,

    Ref to enclosed attachment, I need help in writing formula to achieve below results please

    IF Amount is between 5,00,000 AND 7,50,000 THEN (AMOUNT * 10%) /12
    IF Amount is between 7,50,001 AND 10,00,000 THEN (AMOUNT * 15%) /12
    IF Amount is between 10,00,000 AND 12,50,000 THEN (AMOUNT * 20%) /12
    IF Amount is between 12,50,001 AND 15,00,000 THEN (AMOUNT * 25%) /12
    IF Amount is greater than 15,00,001 THEN (AMOUNT * 30%) /12
    IF all conditions are false then 0
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: Need help to write nested if formula

    you could use a table so you can change the range
    But a nested IF

    =IF( A2 >1500000, (A2*0.3)/12, IF( A2 >1250000, (A2*0.25)/12,IF( A2 >1000000, (A2*0.2)/12,IF( A2 >750000, (A2*0.15)/12,IF( A2 >500000, (A2*0.1)/12,0)))))

    What happens between 0 and 500000
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Need help to write nested if formula

    How about
    =A2*LOOKUP(A2,{0,500001,750001,1000001,1250001,1500001},{0,0.1,0.15,0.2,0.25,0.3})/12

  4. #4
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Need help to write nested if formula

    What happens between 0 and 500000

    It will be zero

  5. #5
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Need help to write nested if formula

    This =A2*LOOKUP(A2,{0,500001,750001,1000001,1250001,1500001},{0,0.1,0.15,0.2,0.25,0.3})/12 looks simpler. Can you please explain this formula

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Need help to write nested if formula

    It looks up the value of A2 in the 1st array {0,500001,750001,1000001,1250001,1500001} (if no exact match it finds the nearest lower number) and returns the relevant value from the 2nd array.

+ 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] How to write this nested if
    By peakoverload in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-18-2018, 05:09 AM
  2. Too Many Nested Levels - What's the PROPER way to write this formula?
    By teddystiles in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-02-2015, 01:16 PM
  3. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  4. [SOLVED] How to write nested IF formula
    By spics89 in forum Excel General
    Replies: 5
    Last Post: 07-22-2012, 10:54 AM
  5. how to write a nested if formula with special conditions
    By novice2430 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-19-2009, 08:55 PM
  6. Replies: 6
    Last Post: 01-14-2009, 06:59 PM
  7. How to write this 4 condition nested formula?
    By bortz in forum Excel General
    Replies: 3
    Last Post: 12-09-2005, 09:55 AM

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