4

Was hoping someone could assist me with regards to SharePoint Calculated column.

I have an address column which has an &. We need to find and replace the & with and.

The problem is that the & is in different places all the time depending on the length of the address.

Is there something I can do in SharePoint 2013 to assist me?

Robert Lindgren
  • 24,520
  • 12
  • 53
  • 79
Aadil Ganie
  • 107
  • 1
  • 9

2 Answers2

4

In Excel this can be solved with =SUBSTITUTE(). However, this formula is not available in SharePoint and you have to use =FIND() and =REPLACE() to replace =SUBSTITUTE().

If you only have one & (question is implying that this is the case), this can be easily achieved with =REPLACE([column];FIND("&";[column]);1;"and"). If you have to replace more than one &, you have to nest this code as many times in your function, as you expect a &.

wheeler
  • 443
  • 5
  • 22
1

How to replicate the SUBSTITUTE() function behaviour with default SharePoint functions was explained here:

Calculated Column Formula how to replace Substitute

Danny '365CSI' Engelman
  • 21,176
  • 7
  • 35
  • 79