Forum Discussion

athegn's avatar
athegn
Copper Contributor
Dec 21, 2023

Add OR function to a formula

I am given a phrase like this:-

 

"Circular walk from High Ongar to Fyfield
Meet: High Ongar Church. park along road."

 

=MID(PDF!$B4,FIND("Meet: ",PDF!$B4)+6,FIND(CHAR(46),PDF!$B4,FIND("Meet: ",PDF!$B4))-FIND("Meet: ",PDF!$B4)-6)

 

This formula extracts "High Ongar Church" which I require. However sometimes the period after Church is replace by a comma. So I think I need to add the OR function to check for CHAR(44) as well as CHAR(46)

 

I have tried several ways of adding the OR into this formula without success.

 

Can any one please advise?

 

  • peiyezhu's avatar
    peiyezhu
    Bronze Contributor

    based on
    Circular walk from High Ongar to Fyfield
    Meet: High Ongar Church. park along road.

    what is your expected result string?

Resources