+ Reply to Thread
Results 1 to 3 of 3

What'll be the Nested IF.

  1. #1
    Registered User
    Join Date
    07-30-2014
    Location
    Bangladesh
    MS-Off Ver
    MS Office 2007
    Posts
    6

    What'll be the Nested IF.

    If A1 is up to 1,00,000, B1 will 500; If A1 is between 1,00,001 to 2,00,000, B1 will 1000; If A1 is greater than 2,00,000, for every 1,00,000 or fraction two hundred extra will be added with 1000 in B1 cell e.g. for 3,00,000 B1 will 1000+200, for 3,05,000 B1 will 1000+200+200 etc.

    What'll be the nested function of above calculation.

    Plz help.

    Thanks in advance
    Last edited by nihar sharma; 02-17-2017 at 12:20 PM.

  2. #2
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: What'll be the Nested IF.

    =IF(A1>=1000000,500,IF(A1<=2000000,1000,IF(A1>2000000,1000+(3000000-A1)/1000000*200)))

    It's a bit hard to understand what you mean by "for every 1,00,000 or fraction two hundred extra will be added with 1000 in B1 cell e.g. for 3,00,000 B1 will 1000+200, for 3,05,000 B1 will 1000+200+200 etc." so I did the above based on what I could understand. I assume "1,00,000" in your post = 1 million = 1,000,000
    You either quit or become really good at it. There are no other choices.

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

    Re: What'll be the Nested IF.

    Here's another way, which doesn't use nested IFs:

    =MIN(2,INT((A1+999999)/1000000))*500 + (A1>2000000)*ROUNDUP((A1-2000000)/1000000,0)*200

    Put this in B1, then copy down.

    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. Nested IF statement error. Nested True statement is not triggering
    By Lucas7040 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2016, 11:41 AM
  2. Easier Way To Decipher Nested Nested IF's
    By Vladamir in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-06-2015, 03:37 PM
  3. [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
  4. 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
  5. Replies: 0
    Last Post: 10-01-2012, 05:54 AM
  6. 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
  7. 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