Divide the numbers by formula

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,284
Office Version
  1. 2013
Platform
  1. Windows
[TABLE="width: 841"]
<tbody>[TR]
[TD][/TD]
[TD]First 1000 is 10 then plus every 1000 is 1 until 10000[/TD]
[TD]After 10.000 every 5.000 until 100.000[/TD]
[TD]After 100.000 every 10.000[/TD]
[/TR]
[TR]
[TD]1300[/TD]
[TD]11[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]2300[/TD]
[TD]12[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]7,800[/TD]
[TD]17[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]17,800[/TD]
[TD]20[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]22,000[/TD]
[TD]20[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]35,500[/TD]
[TD]20[/TD]
[TD]5[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]85,000[/TD]
[TD]20[/TD]
[TD]15[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]103,000[/TD]
[TD]20[/TD]
[TD]18[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]145,000[/TD]
[TD]20[/TD]
[TD]18[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]


Good day,
What would be the formulas from the cells B2-C2-D2 all the way down to find the results with the related information from column A and above that cells.
Many Thanks
 
Last edited:

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
B2: =10+MEDIAN(0,10,INT(A2/1000))
C2: =MEDIAN(0,18,INT((A2-10000)/5000))
D2: =MAX(0,INT((A2-100000)/10000))


Book1
ABCD
1First 1000 is 10 then plus every 1000 is 1 until 10000After 10.000 every 5.000 until 100.000After 100.000 every 10.000
25001000
313001100
423001200
57,8001700
617,8002010
722,0002020
835,5002050
985,00020150
10103,00020180
11145,00020184
Sheet1


Your first condition is ambiguous - did you want B2 = 10 as shown? Or should this be zero?
 
Last edited:
Upvote 0
Hi Stephen,
Is it possible create one more coulumn which will count only 100's till 1000 like:
16800= 8 hundreds (0-999)
 
Upvote 0
Hi Stephen,
Is it possible create one more coulumn which will count only 100's till 1000 like:
16800= 8 hundreds (0-999)

Do you mean like this:

B1: =FLOOR(MOD(A1,1000)/100,1)


Book1
AB
1990
21011
32202
48998
59019
69999
71,0990
81,1011
91,6006
102,7997
1116,8008
1220,9999
Sheet1
 
Last edited:
Upvote 0
Hi,
The whole table is given below is the sample what I needed for each column.
Many Thanks

[TABLE="width: 502"]
<tbody>[TR]
[TD][/TD]
[TD]COLUMN1[/TD]
[TD]COLUMN2[/TD]
[TD]COLUMN3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]0-999[/TD]
[TD]1000-10000[/TD]
[TD]10000-1000000[/TD]
[/TR]
[TR]
[TD]700[/TD]
[TD]7[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1000[/TD]
[TD]9[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1400[/TD]
[TD]9[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]2500[/TD]
[TD]9[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]3500[/TD]
[TD]9[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]4400[/TD]
[TD]9[/TD]
[TD]4[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]7800[/TD]
[TD]9[/TD]
[TD]7[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]12000[/TD]
[TD]9[/TD]
[TD]10[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]75800[/TD]
[TD]9[/TD]
[TD]10[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]145000[/TD]
[TD]9[/TD]
[TD]10[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]200000[/TD]
[TD]9[/TD]
[TD]10[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]250000[/TD]
[TD]9[/TD]
[TD]10[/TD]
[TD]25[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0
B2: =MIN(9,INT(A2/100))
C2: =MIN(10,INT(A2/1000))
D2: =MIN(25,INT(A2/10000))


Book1
ABCD
10-9991000-1000010000-1000000
2700700
31,000910
41,400910
52,500920
63,500930
74,400940
87,800970
912,0009101
1075,8009107
11145,00091014
12200,00091020
13250,00091025
Sheet1
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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