I want a formular that gives a star rating when something is between 2 numbers

nijode999

New Member
Joined
Nov 15, 2020
Messages
6
So,

I can figure something out, but I don't think it is a hard one.


So I have a B11 with a number between 1-100.


I want a create a formula that convert this number to stars like this:

★★★★★ 96-100

★★★★½ 86-95

★★★★ 76-85

★★★½ 66-75

★★★ 56-65

★★½ 46-55

★★ 36-45

★½ 26-35

★ 16-25

½ 0-15

What is the best way I can do this. So if B11 is 43 I want B13 to show ★★ and when B11 is 76 I want B13 to show ★★★★ stars. Any way to do this?

Already thanks!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi & welcome to MrExcel.
How about
+Fluff v2.xlsm
B
1167
12
13★★★☆
Sheet1
Cell Formulas
RangeFormula
B13B13=IFNA(REPT("★",LOOKUP(B11,{16,36,56,76,96},{1,2,3,4,5})),"")&IF(OR(B11<16,AND(B11>25,B11<36),AND(B11>45,B11<56),AND(B11>65,B11<76),AND(B11>85,B11<96)),"☆","")
 
Upvote 0
A slightly simpler formula
Excel Formula:
=IFNA(REPT("★",LOOKUP(B11,{16,36,56,76,96},{1,2,3,4,5})),"")&IF(OR(B11<16,ISODD(INT(B11-16)/10)),"☆","")
 
Upvote 0
There is no half star, so I used the outline instead.
Nor sue what you mean about 4stars instead of 5
 
Upvote 0
That the formula only show 4 stars all full score. But it should show 5 stars between 96-100% like the rating scale in the opening post :D
 
Upvote 0
1605454793329.png
 
Upvote 0
it should show 5 stars between 96-100% like the rating scale in the opening post
That's exactly what it does. :)
+Fluff v2.xlsm
BC
1199
12
13★★★★★★★★★★
Sheet1
Cell Formulas
RangeFormula
B13B13=IFNA(REPT("★",LOOKUP(B11,{16,36,56,76,96},{1,2,3,4,5})),"")&IF(OR(B11<16,ISODD(INT(B11-16)/10)),"☆","")
C13C13=IFNA(REPT("★",LOOKUP(B11,{16,36,56,76,96},{1,2,3,4,5})),"")&IF(OR(B11<16,AND(B11>25,B11<36),AND(B11>45,B11<56),AND(B11>65,B11<76),AND(B11>85,B11<96)),"☆","")
 
Upvote 0
Ahh yeah now see it! Is it possible to implement the ½ for the half star ratings, because half star icon doesnt exist. Would love that :D
 
Upvote 0
How about
Excel Formula:
=IFNA(REPT("★",LOOKUP(B11,{16,36,56,76,96},{1,2,3,4,5})),"")&IF(OR(B11<16,ISODD(INT(B11-16)/10)),"½","")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,593
Messages
6,120,434
Members
448,961
Latest member
nzskater

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