Hi, MeghaSree
You can use conditional column instead of a custom column.
It is similar as a custom column and easier to provide the if-else condition.
Click on the conditional column and write condition for each value in the ('ABC', 'DEF', 'GHI') in the value box and else separately.
For example.
Hope it helps!