Convert numbers to star rating
=REPT(CHAR(11088),number)Source: Ben Collins — submitted by Keshia Rose
This function converts numerical ratings into a visual star rating format, suitable for displaying user ratings. This function takes a single value, "number", which represents the number of stars to display. To use this function, simply input a number into the "STAR_RATING(number)" formula where you want to display star ratings. For instance, inputting "STAR_RATING(5)" in a cell would result in five star symbols being displayed, effectively converting a numerical score into an easy-to-understand visual representation of star ratings, suitable for performance reviews, product ratings, or any other evaluative data that benefits from a graphical rating system.
Use the inputs below to create STAR_RATING as a reusable custom function in Google Sheets.
Learn how to add custom functions to Google SheetsSTAR_RATING
Convert numbers to star rating
=REPT(CHAR(11088),number)
number
The number of stars to be displayed.
4
Other functions in the same category: Formatting & Display
Formats a person's display name from first/last and other name parts
Returns the month name for a given date
Returns the weekday name for a given date
Formats a number dynamically as thousands, millions, billions, or trillions.
Converts a numerical score into a letter grade
Converts a time duration in minutes to a readable format (e.g., 1 hr 30 min)
Named functions enable the creation of custom, reusable formulas that mimic built-in functions, streamlining calculations and data manipulations. These functions simplify complex formulas, making spreadsheets more readable and less prone to errors. By encapsulating intricate logic within a single function call, they enhance consistency across your data. Utilizing named functions reduces the need to write lengthy formulas repeatedly, thereby improving workflow efficiency and productivity in data analysis and management.
Download and import — fastest way to add the function but does not include argument descriptions and examples
Follow these simple steps to download and import a function into your spreadsheet. This method is the quickest and easiest way to add the named function to your Google Sheets document, but will not include the argument description and examples.
Once added, the function will be ready to use in your document like any other built-in function. Simply type the function name and provide the required inputs to use it in your calculations.
Copy and paste — copy and paste each property one at a time
Follow these simple steps to integrate a custom named function into your spreadsheet:
Once added, the function will be ready to use in your document like any other built-in function. Simply type the function name and provide the required inputs to use it in your calculations.