Video Discription |
Star rating systems are an effective visualisation tool for making snap judgements about data.
Although conditional formatting can achieve one, your options are limited.
This formula-based method gives you complete control over the stars' breakpoints, so they can kick in disproportionately if desired. This is ideal for suiting the kind of data you're working with. Moreover, half-stars are also used to add extra precision.
In the movies table, the Rating column displays a number out of 100 for each.
How do we convert these figures into something more aesthetically pleasing?
This formula does the trick:
=𝙻𝙴𝚃(
𝙵𝚞𝚕𝚕𝚂𝚝𝚊𝚛,
𝚂𝚆𝙸𝚃𝙲𝙷(𝚃𝚁𝚄𝙴,
[@𝚁𝚊𝚝𝚒𝚗𝚐]>=𝟿0,𝟻,
[@𝚁𝚊𝚝𝚒𝚗𝚐]>=𝟽𝟻,𝟺,
[@𝚁𝚊𝚝𝚒𝚗𝚐]>=𝟻0,𝟹,
[@𝚁𝚊𝚝𝚒𝚗𝚐]>=𝟺0,𝟸,
[@𝚁𝚊𝚝𝚒𝚗𝚐]>=𝟹0,𝟷,
[@𝚁𝚊𝚝𝚒𝚗𝚐]<𝟹0,0
),
𝙷𝚊𝚕𝚏𝚂𝚝𝚊𝚛,
𝙸𝙵(
𝚂𝚆𝙸𝚃𝙲𝙷(
𝙵𝚞𝚕𝚕𝚂𝚝𝚊𝚛,
𝟻,[@𝚁𝚊𝚝𝚒𝚗𝚐]<𝟿0,
𝟺,[@𝚁𝚊𝚝𝚒𝚗𝚐]>=𝟾𝟻,
𝟹,[@𝚁𝚊𝚝𝚒𝚗𝚐]>=𝟼𝟻,
𝟸,[@𝚁𝚊𝚝𝚒𝚗𝚐]>=𝟺𝟻,
𝟷,[@𝚁𝚊𝚝𝚒𝚗𝚐]>=𝟹𝟻,
0,[@𝚁𝚊𝚝𝚒𝚗𝚐]>=𝟷𝟻),
"½",),
𝚁𝙴𝙿𝚃("𝟷",𝙵𝚞𝚕𝚕𝚂𝚝𝚊𝚛)&𝙷𝚊𝚕𝚏𝚂𝚝𝚊𝚛
)
*𝘋𝘶𝘦 𝘵𝘰 𝘤𝘰𝘮𝘱𝘢𝘵𝘪𝘣𝘪𝘭𝘪𝘵𝘺, ½ (𝘩𝘢𝘭𝘧-𝘴𝘵𝘢𝘳) 𝘢𝘯𝘥 1 (𝘧𝘶𝘭𝘭-𝘴𝘵𝘢𝘳) 𝘢𝘳𝘦 𝘶𝘴𝘦𝘥 𝘪𝘯𝘴𝘵𝘦𝘢𝘥 𝘰𝘧 𝘵𝘩𝘦𝘪𝘳 𝘳𝘦𝘴𝘱𝘦𝘤𝘵𝘪𝘷𝘦 𝘴𝘺𝘮𝘣𝘰𝘭𝘴.
Let's use The Matrix — 73 as an example.
The LET function stores two named values: FullStar and HalfStar.
FullStar uses a SWITCH statement to list a set of thresholds. The first condition it passes is the third — 73 is greater than or equal to 50. Therefore, 3 is returned.
HalfStar then uses the value of FullStar to jump to 3 in its own SWITCH statement and determine whether 73 is greater than or equal to 65. It is, so IF's [𝚟𝚊𝚕𝚞𝚎_𝚒𝚏_𝚝𝚛𝚞𝚎] is triggered to return a half-star.
REPT then repeats the full star three times and concatenates it to the half star.
The star symbols are found in Insert > Symbols > Symbol. Set the font to Segoe MDL2 Assets and double-click on one to insert it. Be aware they appear strangely in the formula bar because they aren't official Unicode symbols.
You don't have to use stars, however!
Finally, you can also change their colour using the Font Color dropdown.
#exceleration #excel #globalexcelsummit
---
The Global Excel Summit is the world's largest virtual gathering of Microsoft Excel users and experts.
Learn more at https://globalexcelsummit.com/.
Find us on:
👔 LinkedIn: https://www.linkedin.com/showcase/global-excel-summit
🐤 Twitter: https://twitter.com/ExcelSummit
🟦 Facebook: https://www.facebook.com/globalexcelsummit
📸 Instagram: https://www.instagram.com/globalexcelsummit
🤳 TikTok: https://www.tiktok.com/@globalexcelsummit [Us7_X42MurQ] |