To numbered as per criteria

punit83

Board Regular
Joined
Jan 17, 2018
Messages
66
Office Version
  1. 2019
Platform
  1. Windows
Can there be any formula to give number as per count and as per criteria ?


Queries.xlsx
ABCDE
1DataResult
23.00-3.99RangeTotal CountNumbering
34.00-4.99100-1.1021
42.00-2.99100-1.102
51.00-1.491.11-1.2031
60.50-0.691.11-1.201
71.50-1.991.11-1.202
81.50-1.991.21-1.3041
93.00-3.991.21-1.301
100.40-0.491.21-1.302
110.70-0.891.21-1.302
120.90-0.991.30-1.4061
131.00-1.491.30-1.401
142.00-2.991.30-1.401
151.50-1.991.30-1.402
161.00-1.491.30-1.402
170.90-0.991.30-1.402
180.50-0.69
190.30-0.39
200.40-0.49
211.00-1.49
220.70-0.89
231.50-1.99
Sheet1 (3)
Cell Formulas
RangeFormula
D3,D12,D8,D5D3=COUNTIF(C3:C19,C3)


Thanks in advance.
 
Here are a couple of simpler options that I think still do what you want

21 08 26.xlsm
CDE
1Result
2RangeTotal CountNumbering
3100-1.1021
4100-1.10 2
51.11-1.2031
61.11-1.20 1
71.11-1.20 2
81.21-1.3041
91.21-1.30 1
101.21-1.30 2
111.21-1.30 2
121.30-1.4061
131.30-1.40 1
141.30-1.40 1
151.30-1.40 2
161.30-1.40 2
171.30-1.40 2
Count - Number
Cell Formulas
RangeFormula
D3:D17D3=IF(C3=C2,"",COUNTIF($C$3:$C$17,C3))
E3:E17E3=2-(COUNTIF(C$3:C3,C3)<LOOKUP(9^9,D$3:D3)/2+1)

Hello,

First of all so sorry for late reply as didn't got time to work on it as too much busy with work now got some free time and 1st i worked with this formula.

Thank you so much it worked for me.
just want to ask you that is there any option to make 3 cuts ?

Once again thank you.
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
What exactly do you mean by that?

Sample data, expected results and more explanation might help.
Hello,

Above formula was used if i want to number in 2 parts or 2 cuts but now i need formula in which i can number in 3 parts or 3 cuts.
attaching sample.

Thank you :)

DataResult
3.00-3.99RangeTotal CountNumbering
4.00-4.99100-1.1021
2.00-2.99100-1.102
1.00-1.491.11-1.2031
0.50-0.691.11-1.202
1.50-1.991.11-1.203
1.50-1.991.21-1.3041
3.00-3.991.21-1.301
0.40-0.491.21-1.302
0.70-0.891.21-1.303
0.90-0.991.30-1.4061
1.00-1.491.30-1.401
2.00-2.991.30-1.402
1.50-1.991.30-1.402
1.00-1.491.30-1.403
0.90-0.991.30-1.403
0.50-0.69
0.30-0.39
0.40-0.49
1.00-1.49
0.70-0.89
1.50-1.99
 
Upvote 0
Thanks for the sample. See if this does what you want.

22 02 14.xlsm
CDE
1Result
2RangeTotal CountNumbering
3100-1.1021
4100-1.1022
51.11-1.2031
61.11-1.2032
71.11-1.2033
81.21-1.3041
91.21-1.3041
101.21-1.3042
111.21-1.3043
121.30-1.4061
131.30-1.4061
141.30-1.4062
151.30-1.4062
161.30-1.4063
171.30-1.4063
Cut
Cell Formulas
RangeFormula
D3:D17D3=COUNTIF(C$3:C$17,C3)
E3:E17E3=IF(D3<>D2,1,IF(D3=2,2,IF(COUNTIF(D$3:D3,D3)-1<D3/3,1,IF(COUNTIF(D$3:D3,D3)-1<D3/3*2,2,3))))
 
Upvote 0

Forum statistics

Threads
1,215,473
Messages
6,125,018
Members
449,203
Latest member
tungnmqn90

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