Forum Discussion
Dan_Scott
Aug 02, 2021Copper Contributor
Convert column of numbers into single line separated by 'OR'
I have a column of SKUs I want to convert into a single line of text, with each number separated by the word 'OR'. Example below. I'm at the bottom of the food chain of excel users, but I figure this...
- Apr 13, 2023
leecoogan Try using this formula:
=IF([PESTLE]="Political","High",IF(OR([PESTLE]="Economic",[PESTLE]="Sociological",[PESTLE]="Technological"),"Medium",IF(OR([PESTLE]="Legal",[PESTLE]="Enviromental"),"Low","")))
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
HansVogelaar
Aug 02, 2021MVP
Do you have Excel in Office 2019 or Microsoft 365? If so, you can use TEXTJOIN:
=TEXTJOIN(" OR ", TRUE, A1:A3)
Replace A1:A3 with the relevant range.
- Dan_ScottAug 02, 2021Copper ContributorApart from the guy who made me coffee this morning, you are officially my favourite person today. Thankyou Hans! Have a good one, wherever you are.