excel formula calculating rang

Tripleseas

Board Regular
Joined
Jul 12, 2022
Messages
87
Office Version
  1. 2013
Platform
  1. Windows
hello community,
I want to write a formula in column D that will note the rang name based on the percentage interval.
I want this to be dynamic so i can change the interval percentage if i want.
thank you to all.



Classeur1
BCDEFGH
3CodeTx équipRANG
4122130%
5120530%
6117031%StartEndRANG
7113134%0%30%between 0 and 30
8117234%31%60%Between 31 and 60
9104534%>60%Greater than 60
10100334%
11121135%
12121735%
13113036%
14107936%
15103836%
16109937%
17110437%
18105737%
19111238%
20129539%
21110840%
22103340%
23118141%
24108441%
25125241%
26100742%
27118342%
28106743%
29106343%
30128343%
31101443%
32114444%
33128444%
34129644%
35100244%
36125844%
37102245%
38124245%
39114545%
40109446%
41120746%
42130046%
43100846%
44117346%
45128747%
46129347%
47120647%
48119747%
49127679%
50109779%
51107879%
52119480%
53123980%
54104480%
55101880%
56122981%
57111482%
58131183%
59118585%
60108086%
61101687%
62106589%
63116691%
64102591%
65116092%
Feuil1
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
try this
Excel Formula:
=CHOOSE(MIN(3,INT(C4*100/30)+1),"Between 0 and 30","Between 31 and 60","Greater than 60")
Note your first value in C4 is just ABOVE 30%
 
Upvote 0
just add 0.6 in E7
and Try

Book1
ABCDEFGH
1CodeTx équipRANG
2122130%between 0 and 30
3120530%between 0 and 30
4117031%Between 31 and 60StartEndRANG
5113134%Between 31 and 6000.3between 0 and 30
6117234%Between 31 and 600.310.6Between 31 and 60
7104534%Between 31 and 600.6>60%Greater than 60
8100334%Between 31 and 60
9121135%Between 31 and 60
10121735%Between 31 and 60
11113036%Between 31 and 60
12107936%Between 31 and 60
13103836%Between 31 and 60
14109937%Between 31 and 60
15110437%Between 31 and 60
16105737%Between 31 and 60
17111238%Between 31 and 60
18129539%Between 31 and 60
19110840%Between 31 and 60
20103340%Between 31 and 60
21118141%Between 31 and 60
22108441%Between 31 and 60
23125241%Between 31 and 60
24100742%Between 31 and 60
25118342%Between 31 and 60
26106743%Between 31 and 60
27106343%Between 31 and 60
28128343%Between 31 and 60
29101443%Between 31 and 60
30114444%Between 31 and 60
31128444%Between 31 and 60
32129644%Between 31 and 60
33100244%Between 31 and 60
34125844%Between 31 and 60
35102245%Between 31 and 60
36124245%Between 31 and 60
37114545%Between 31 and 60
38109446%Between 31 and 60
39120746%Between 31 and 60
40130046%Between 31 and 60
41100846%Between 31 and 60
42117346%Between 31 and 60
43128747%Between 31 and 60
44129347%Between 31 and 60
45120647%Between 31 and 60
46119747%Between 31 and 60
47127679%Greater than 60
48109779%Greater than 60
49107879%Greater than 60
50119480%Greater than 60
51123980%Greater than 60
52104480%Greater than 60
53101880%Greater than 60
54122981%Greater than 60
55111482%Greater than 60
56131183%Greater than 60
57118585%Greater than 60
58108086%Greater than 60
59101687%Greater than 60
60106589%Greater than 60
61116691%Greater than 60
62102591%Greater than 60
63116092%Greater than 60
64
Sheet1
Cell Formulas
RangeFormula
C2:C63C2=VLOOKUP(B2,$E$5:$G$7,3)
 
Upvote 0
Hi,

If you add 0.6 in cell E7, you can test following formula
Excel Formula:
=INDEX($G$5:$G$7,MATCH(B2,$E$5:$E$7,1))
 
Upvote 0
just add 0.6 in E7
and Try

Book1
ABCDEFGH
1CodeTx équipRANG
2122130%between 0 and 30
3120530%between 0 and 30
4117031%Between 31 and 60StartEndRANG
5113134%Between 31 and 6000.3between 0 and 30
6117234%Between 31 and 600.310.6Between 31 and 60
7104534%Between 31 and 600.6>60%Greater than 60
8100334%Between 31 and 60
9121135%Between 31 and 60
10121735%Between 31 and 60
11113036%Between 31 and 60
12107936%Between 31 and 60
13103836%Between 31 and 60
14109937%Between 31 and 60
15110437%Between 31 and 60
16105737%Between 31 and 60
17111238%Between 31 and 60
18129539%Between 31 and 60
19110840%Between 31 and 60
20103340%Between 31 and 60
21118141%Between 31 and 60
22108441%Between 31 and 60
23125241%Between 31 and 60
24100742%Between 31 and 60
25118342%Between 31 and 60
26106743%Between 31 and 60
27106343%Between 31 and 60
28128343%Between 31 and 60
29101443%Between 31 and 60
30114444%Between 31 and 60
31128444%Between 31 and 60
32129644%Between 31 and 60
33100244%Between 31 and 60
34125844%Between 31 and 60
35102245%Between 31 and 60
36124245%Between 31 and 60
37114545%Between 31 and 60
38109446%Between 31 and 60
39120746%Between 31 and 60
40130046%Between 31 and 60
41100846%Between 31 and 60
42117346%Between 31 and 60
43128747%Between 31 and 60
44129347%Between 31 and 60
45120647%Between 31 and 60
46119747%Between 31 and 60
47127679%Greater than 60
48109779%Greater than 60
49107879%Greater than 60
50119480%Greater than 60
51123980%Greater than 60
52104480%Greater than 60
53101880%Greater than 60
54122981%Greater than 60
55111482%Greater than 60
56131183%Greater than 60
57118585%Greater than 60
58108086%Greater than 60
59101687%Greater than 60
60106589%Greater than 60
61116691%Greater than 60
62102591%Greater than 60
63116092%Greater than 60
64
Sheet1
Cell Formulas
RangeFormula
C2:C63C2=VLOOKUP(B2,$E$5:$G$7,3)
thank you worked great
 
Upvote 0

Forum statistics

Threads
1,216,361
Messages
6,130,182
Members
449,563
Latest member
Suz0718

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