Calculated Value Column reference multiple columns

Chris Moks 1 Reputation point
2022-04-09T10:19:33.77+00:00

Hello.

I want to continue with the below formula to reference more column;

=TEXT([Selective Onsite Day 1],"dddd mmmm yy")

Its working with one column = Friday April 2022

but how do i reference 3 more column?

I had several attempts but cant get it working.

=TEXT([Selective Onsite Day 1]& " " &([Selective Onsite Day 2],"dddd mmmm yy"))

Can someone help?

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Chris Moks 1 Reputation point
    2022-04-09T12:56:32.223+00:00

    Got it working with this formula ;

    =TEXT([Selective Onsite Day 1],"dddd mmmm yy")&" "&TEXT([Selective Onsite Day 2],"dddd mmmm yy")

    Does anyone know how I can add line break?

    0 comments No comments

  2. Yi Lu_MSFT 17,626 Reputation points
    2022-04-11T17:37:20.49+00:00

    Hi @Chris Moks
    Use this formula we could get the view without add any line break:

    =TEXT([Selective Onsite Day 1],"dddd mmmm yy")&" "&TEXT([Selective Onsite Day 2],"dddd mmmm yy")

    191909-image.png
    Currently I have not found how to add line break in calculated formula in sharepoint online. As a workaround, we could use column formatting to add line break:

    {  
      "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",  
      "elmType": "div",  
      "txtContent": "=replace(@currentField,'ABC','\n')"  
    }  
    

    As a result, you could see that the view is changed from A to B:

    A: 191800-image.png

    B: 191937-image.png


    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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.