Points calculation with formula.

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
Good Day,
Is it possible to check below formula that giving me the results incorrectly.
12.000 point should be earned 12 tickets instead of 20 tickets.
Thank you in advance.


Excel Formula:
=IF(C2<1000,FLOOR(C2/100,1),IF(C2<10000,10+FLOOR((C2-1000)/1000,1),IF(C2<100000,20+FLOOR((C2-10000)/5000,1),38+FLOOR((C2-100000)/10000,1))))

TICKETING RULES
(100-1.000) every 100 is 1 Ticket
(1.000-10.000) every 1.000 is 1 Ticket.
(10.000-100.000) every 5.000 is 1 Ticket
(100.000 & Above) every 10.000 is 1 Ticket
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
The rules are not clear.
You can review and extend the following.

T202310a.xlsm
CD
1
21200012
3
3d
Cell Formulas
RangeFormula
D2D2=(C2>0)*MIN(INT(C2/1000),10)+(C2>10000)*(MIN((C2-10000)/1000,(100000-10000)/1000))
 
Upvote 0
How did you calculate 12?
What would be the the result for 110000?

T202310a.xlsm
ABCDE
1
2120001919
3d
Cell Formulas
RangeFormula
D2D2=(C2>0)*(MIN(INT(C2/100),10))+(C2>1000)*(MIN(INT((C2-1000)/1000),9))+(C2>10000)*(MIN(INT((C2-10000)/5000),(100000-10000)/5000))+(C2>100000)*(C2-100000)/10000
E2E2=INT(SUMPRODUCT(--(C2>A4:A7),(C2-A4:A7),(C4:C7)))
 
Upvote 0
Solution
It’s my bad
Actually 12,000 points should issue 20k
All is good
Tq
 
Upvote 0
POINTSTICKETS
1001
2002
3003
4004
5005
6006
7007
8008
9009
1,00010
2,00011
3,00012
4,00013
5,00014
6,00015
7,00016
8,00017
9,00018
10,00019
15,00020
20,00021
25,00022
30,00023
35,00024
40,00025
45,00026
50,00027
55,00028
60,00029
65,00030
70,00031
75,00032
80,00033
85,00034
90,00035
95,00036
100,00037
110,00038
120,00039
130,00040
140,00041
150,00042
160,00043
170,00044
180,00045
190,00046
200,00047
 
Upvote 0
Thanks for the feedback.
T202310a.xlsm
ABCDF
1
2120001919
3
3d
Cell Formulas
RangeFormula
D2D2=(C2>0)*(MIN(INT(C2/100),10))+(C2>1000)*(MIN(INT((C2-1000)/1000),9))+(C2>10000)*(MIN(INT((C2-10000)/5000),(100000-10000)/5000))+(C2>100000)*(C2-100000)/10000
F2F2=LOOKUP(C2,M2:N48)
 
Upvote 0

Forum statistics

Threads
1,215,088
Messages
6,123,057
Members
449,091
Latest member
ikke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top