A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi @K D ,
Your needs can be accomplished.
You can use JSON code as below:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "=if(@currentField =='01234567890','ABC',if(@currentField =='12345678901','AAA','BBB'))"
}
The result is shown below:
If you have 30 different values, you can stack the if statements on the basic of my code.
Thanks,
Yanli Jiang
===========================================
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.