You are on page 1of 6

I have a excel sheet where i need to calculate based on numbers in a slab, for instance:

1. 1-10 users @ $1
2. 11-20 users @ $0.8
3. 21-200 users @ $0.5
4. 201 users or more @ $0.3

I have a feeling this has something to do with modulo arithmetic but haven't got a clue where to start in Excel.

So far I have tried calculating the users per block as per the spreadsheet view:

For the example above, with 60 users, there would be 10 users in the first slab (1-10 users), 10 users in the second
users), and 40 users in the third slab (21 to 200 users).

The total cost would then become:

[ $1 * slab 1 user count (10 users) ] + [ $0.8 * slab 2 user count (10 users) ] + [$0.5 * slab 3 user count (40 users) ] =

Can anyone please advise on the best way forward.


Slab From Slab To Slab WidthRates
1 10 10 1
11 20 10 0.8
21 200 180 0.5
201 above 0.3

=VLOOKUP(B1, $A$3:$F$7, 5, TRUE) + ((B1 - VLOOKUP(B1, $A$3:$F$

#N/A
VLOOKUP(B1, $A$3:$F$7, 4, TRUE)) * VLOOKUP(B1, $A$3:$F$7, 6, TRUE))
User Count 300

Slab start Slab End Slab Width counts less than cost less than slab units
1 10 10 1.00
11 20 10 10 10.00 0.80
21 200 180 10 18.00 0.50
201 500 300 180 108.00 0.30

200.00 136.00

Formula 138

Formula =VLOOKUP(B1, $A$3:$F$7, 5, TRUE) + ((B1 - VLOOKUP(B1, $A$3

144 138 -
Number of users Cost
10 10.00
10 8.00
180 90.00
100 30.00

300 138.00

- VLOOKUP(B1, $A$3:$F$7, 4, TRUE)) * VLOOKUP(B1, $A$3:$F$7, 6, TRUE))

You might also like