+ Reply to Thread
Results 1 to 12 of 12

Apply Slab Rates????

  1. #1
    Registered User
    Join Date
    03-07-2004
    Location
    Pakistan
    MS-Off Ver
    MS Office Pro Plus 2016
    Posts
    41

    Apply Slab Rates????

    Hi,
    I want to apply slab rates to a figure.
    For Example I have got a Number 400
    Now want to apply slab rates like this

    First 100 at 4.5/=
    Next 200 hundreds (from 101 to 300) at 5/=
    More than 300 at 6/=

    please help creating formula
    best regards
    Last edited by ndmalam; 05-09-2007 at 10:26 PM.
    I love to learn

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    well it is not clear how you apply the rates but if it is only 3 levels, something like the following if the quantity is is a1

    if(a1<=100,4.5,if(a1<=300,5,6))

    and modifiy as appropriate. If you gave more information you would get a better answer

    otherwise if there are more bands, looking at a vlookup table is more straightforward

    Regards

    Dav

  3. #3
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by ndmalam
    Hi,
    I want to apply slab rates to a figure.
    For Example I have got a Number 400
    Now want to apply slab rates like this

    First 100 at 4.5/=
    Next 200 hundreds (from 101 to 300) at 5/=
    More than 300 at 6/=

    please help creating formula
    best regards
    try this

    =IF(A1<=100,A1*4.5,IF(AND(A1>100,A1<=300),450+(A1-100)*5,IF(A1>300,1450+(A1-300)*6)))

  4. #4
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Sorry I misread, but as the ifs are nested starguys formula simplifies to

    =IF(A1<=100,A1*4.5,IF(A1<=300,450+(A1-100)*5,1450+(A1-300)*6))

    Regards

    Dav

  5. #5
    Registered User
    Join Date
    03-07-2004
    Location
    Pakistan
    MS-Off Ver
    MS Office Pro Plus 2016
    Posts
    41
    Sorry ,
    I think I could not explain it properly.
    This is an electricity Bill
    totoal unit consumed are 400
    Firtst 100 wil be charged at $2/=
    From 101 to 300 at $3/=
    All above 300 at $5/=
    all three result in serpeate cells required
    Sum of these three will be shown in Fourth cell

    Pleae help
    Best regards

  6. #6
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by ndmalam
    Sorry ,
    I think I could not explain it properly.
    This is an electricity Bill
    totoal unit consumed are 400
    Firtst 100 wil be charged at $2/=
    From 101 to 300 at $3/=
    All above 300 at $5/=
    all three result in serpeate cells required
    Sum of these three will be shown in Fourth cell

    Pleae help
    Best regards
    Hi
    I suppose you enter units consumed in A1

    For first 100 at $2
    =IF(A1="","",IF(A1<=100,A1*2,200))

    For 101 to 300 at $3
    =IF(A1<=100,"",IF(AND(A1>100,A1<=300),(A1-100)*3,600))

    For above 300 at $5
    =IF(A1>300,(A1-300)*5,"")

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You could calculate the 3 amounts with these formulas

    =MIN(A1,100)*2
    =MEDIAN(0,200,A1-100)*3

    and

    =MAX(0,A1-300)*5

    obviously sum these for the total...or for total with a single formula....

    =A1*5-MIN(A1,300)*2-MIN(100,A1)

  8. #8
    Registered User
    Join Date
    03-07-2004
    Location
    Pakistan
    MS-Off Ver
    MS Office Pro Plus 2016
    Posts
    41
    Thnaks Guys
    It is ok ,
    Both answers are good and working.
    Best Regards

  9. #9
    Registered User
    Join Date
    12-20-2018
    Location
    INDIA
    MS-Off Ver
    MS OFFICE
    Posts
    1

    Re: Apply Slab Rates????

    Can anyone help me out for the working below mention slabs.

    Slab Range Rupees
    Slab 1 40 to 59 0.50
    Slab 2 61 to 79 0.75
    Slab 3 81 to 114 1.00
    Slab 4 116 to 164 1.25
    Slab 5 60 1.00
    Slab 6 80 1.5
    Slab 7 115 2
    Slab 8 165 2.5

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Apply Slab Rates????

    A
    B
    C
    D
    1
    Qty
    Rate
    Delta
    2
    0
    0.00
    0.00
    C2: =B2-N(B1)
    3
    40
    0.50
    0.50
    4
    60
    1.00
    0.50
    5
    61
    0.75
    -0.25
    6
    80
    1.50
    0.75
    7
    81
    1.00
    -0.50
    8
    116
    1.25
    0.25
    9
    165
    2.50
    1.25
    10
    11
    Qty
    Fee
    12
    39
    0.00
    B12: =SUMPRODUCT((A12 > $A$2:$A$9) * (A12 - $A$2:$A$9) * $C$2:$C$9)
    13
    40
    0.00
    14
    59
    9.50
    15
    60
    10.00
    16
    61
    11.00
    17
    79
    24.50
    18
    80
    25.25
    19
    81
    26.75
    20
    116
    61.75
    21
    164
    121.75
    22
    165
    123.00
    23
    166
    125.50
    24
    200
    210.50
    Entia non sunt multiplicanda sine necessitate

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Apply Slab Rates????

    hccbplp welcome to the forum

    Unfortunately your post does not comply with Rule 4 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  12. #12
    Registered User
    Join Date
    11-12-2019
    Location
    Bangalore
    MS-Off Ver
    2016
    Posts
    3

    Re: Apply Slab Rates????

    Hi hccbplp,

    Hope this helps:

    Attachment 681867

    The first table shows the values.

    The second two tables show the formulae used for each slab.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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