I need a formula to tell me how many forward slashes (/) I have in a cell.
The cell contains a blue hyperlink path to a folder.
I have tried a Len-Len(Substitute) formula, but it is not working because it returns 0
. My expected result is > 0.
The cell with the hyperlink is B6
. The cell with my reference character (/) is C6
.
My attempted formula is in cell D6
.
=LEN(B6)-LEN(SUBSTITUTE(B6,C6,""))
With:
B6
=Z:\01 Project folders by PAG number range\@PAG Files 0001 to 0035\0001 Wadden Village_Wandle Park Village, Croydon\
C6
='/
D6
==LEN(B6)-LEN(SUBSTITUTE(B6,"/",""))
D6
returns 0
There are clearly several forward slashes in the path. I need a solution that will return the right value.