Formula to create points

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,284
Office Version
  1. 2013
Platform
  1. Windows
Good Day,
This formula works for adding a ticket for every full 1000

Code:
[COLOR=#333333]=IF(A1<=1000,INT(A1/100),10+INT((A1-1000)/1000))[/COLOR]

Is it possible to change above formula base on below rules?
Many Thanks

Every 100= 1point
Between 100 to 1.000= 10point
Every 1,000= 1point
Between 1.000 to 10.000= 10point
Every 10.000= 1point
Between 10.000 to 100.000= 10point
Every 100.000= 1point

Sample:
345600= "3+4+5+6+30= 48 point"
54700= "5+4+7+20= 36 point"
6700= "6+7+10= 23 point"
 
Ok, could you please provide me all the points range from 0 to 21 like:
0 = 0-999
10 = 1000-1999
11 = 2000-2999
.
.
20 = 11000-14999
21 = 15000-19999
 
Last edited by a moderator:
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
[TABLE="width: 233"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]0[/TD]
[TD]0-999[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]1000-1999[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]2000-2999[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]3000-3999[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]4000-4999[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]5000-5999[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]6000-6999[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]7000-7999[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]8000-8999[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]9000-9999[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]10000-14999[/TD]
[/TR]
[TR]
[TD]21[/TD]
[TD]15000-19999[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]15000-24999[/TD]
[/TR]
</tbody>[/TABLE]

Sorry,
I should give more details.
Cheers.
 
Upvote 0
[TABLE="width: 233"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]0[/TD]
[TD]0-999[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]1000-1999[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]2000-2999[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]3000-3999[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]4000-4999[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]5000-5999[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]6000-6999[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]7000-7999[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]8000-8999[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]9000-9999[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]10000-14999[/TD]
[/TR]
[TR]
[TD]21[/TD]
[TD]15000-19999[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]15000-24999[/TD]
[/TR]
</tbody>[/TABLE]

Sorry,
I should give more details.
Cheers.

Ok. No 10 points, then..
=if(a1<1000,0,if(a1<10000,11+floor((a1-1000)/1000,1),20+floor((a1-10000)/5000,1)))
 
Last edited by a moderator:
Upvote 0
Thats perfect it works very well.
If you don't mind incase I needed could you please give me one more if I'm going to consider 100's as 1point each?
so every 100 will be 1 point "0-999=1point"
Many Thanks
 
Upvote 0
Again your logic is wrong. If every 100 will be 1 point then;
0-99=0
100-199=1
200-299=2
300-399=3
400-499=4
500-599=5
600-699=6
700-799=7
800-899=8
900-999=9

Or;

0-999 only 1 point?!
 
Upvote 0
Yes,
Please.

[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl63, width: 64"]100[/TD]
[TD="class: xl63, width: 64"]199[/TD]
[TD="class: xl63, width: 64"]1[/TD]
[/TR]
[TR]
[TD="class: xl63"]200[/TD]
[TD="class: xl63"]299[/TD]
[TD="class: xl63"]2[/TD]
[/TR]
[TR]
[TD="class: xl63"]300[/TD]
[TD="class: xl63"]399[/TD]
[TD="class: xl63"]3[/TD]
[/TR]
[TR]
[TD="class: xl63"]400[/TD]
[TD="class: xl63"]499[/TD]
[TD="class: xl63"]4[/TD]
[/TR]
[TR]
[TD="class: xl63"]500[/TD]
[TD="class: xl63"]599[/TD]
[TD="class: xl63"]5[/TD]
[/TR]
[TR]
[TD="class: xl63"]600[/TD]
[TD="class: xl63"]699[/TD]
[TD="class: xl63"]6[/TD]
[/TR]
[TR]
[TD="class: xl63"]700[/TD]
[TD="class: xl63"]799[/TD]
[TD="class: xl63"]7[/TD]
[/TR]
[TR]
[TD="class: xl63"]800[/TD]
[TD="class: xl63"]899[/TD]
[TD="class: xl63"]8[/TD]
[/TR]
[TR]
[TD="class: xl63"]900[/TD]
[TD="class: xl63"]999[/TD]
[TD="class: xl63"]9[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Yes,
Please.

[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl63, width: 64"]100[/TD]
[TD="class: xl63, width: 64"]199[/TD]
[TD="class: xl63, width: 64"]1[/TD]
[/TR]
[TR]
[TD="class: xl63"]200[/TD]
[TD="class: xl63"]299[/TD]
[TD="class: xl63"]2[/TD]
[/TR]
[TR]
[TD="class: xl63"]300[/TD]
[TD="class: xl63"]399[/TD]
[TD="class: xl63"]3[/TD]
[/TR]
[TR]
[TD="class: xl63"]400[/TD]
[TD="class: xl63"]499[/TD]
[TD="class: xl63"]4[/TD]
[/TR]
[TR]
[TD="class: xl63"]500[/TD]
[TD="class: xl63"]599[/TD]
[TD="class: xl63"]5[/TD]
[/TR]
[TR]
[TD="class: xl63"]600[/TD]
[TD="class: xl63"]699[/TD]
[TD="class: xl63"]6[/TD]
[/TR]
[TR]
[TD="class: xl63"]700[/TD]
[TD="class: xl63"]799[/TD]
[TD="class: xl63"]7[/TD]
[/TR]
[TR]
[TD="class: xl63"]800[/TD]
[TD="class: xl63"]899[/TD]
[TD="class: xl63"]8[/TD]
[/TR]
[TR]
[TD="class: xl63"]900[/TD]
[TD="class: xl63"]999[/TD]
[TD="class: xl63"]9[/TD]
[/TR]
</tbody>[/TABLE]

And again no 10 points?!
 
Upvote 0
OK try;
=IF(A1<1000,FLOOR(A1/100,1),IF(A1<10000,11+FLOOR((A1-1000)/1000,1),20+FLOOR((A1-10000)/5000,1)))

There will be no 10 points.
 
Upvote 0
Thats great...
So the limit is till 100.000
Can we put up to 500.000 wich after 100.000 every 10.000 will be considered 1 point.
With last formula the result is below:
100,000 = 38
120,000 = 42

I want and that will be the last request:)

[TABLE="width: 230"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]39 Point[/TD]
[TD]100.000-109.999[/TD]
[/TR]
[TR]
[TD]40 Point[/TD]
[TD]110.000-119.999[/TD]
[/TR]
[TR]
[TD]41 Point[/TD]
[TD]120.000-129.999[/TD]
[/TR]
</tbody>[/TABLE]

Cheers,
 
Upvote 0
Thats great...
So the limit is till 100.000
Can we put up to 500.000 wich after 100.000 every 10.000 will be considered 1 point.
With last formula the result is below:
100,000 = 38
120,000 = 42

I want and that will be the last request:)

[TABLE="width: 230"]
<tbody>[TR]
[TD]39 Point[/TD]
[TD]100.000-109.999[/TD]
[/TR]
[TR]
[TD]40 Point[/TD]
[TD]110.000-119.999[/TD]
[/TR]
[TR]
[TD]41 Point[/TD]
[TD]120.000-129.999[/TD]
[/TR]
</tbody>[/TABLE]

Cheers,
=IF(A1<1000,FLOOR(A1/100,1),IF(A1<10000,11+FLOOR((A1-1000)/1000,1),IF(A1<100000,20+FLOOR((A1-10000)/5000,1),39+FLOOR((A1-100000)/10000,1))))

Byeee :)
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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