Forum Discussion

16 Replies

  • Patrick2788's avatar
    Patrick2788
    Silver Contributor
    I had an elegant recursive solution for you but realized I was using a few functions not available in Excel 2021. The function gap between 2021 and 365 gets larger by the month it seems.
    • Sorro911's avatar
      Sorro911
      Copper Contributor
      Hey mate send it through i can use 365 Web for free by the looks of it.

      https://www.microsoft.com/en-au/microsoft-365/free-office-online-for-the-web
      • Sorro911's avatar
        Sorro911
        Copper Contributor
        I can also use google sheets if this helps
  • pvela23's avatar
    pvela23
    Copper Contributor

    Sorro911 

    This is little vague, but you can try this.

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1, "dog", "fish"), "cat", "fish"), "bird", "fish"), "pig", "fish"), "cow", "fish"), "chicken", "fish")

    • Sorro911's avatar
      Sorro911
      Copper Contributor

      peiyezhu 

      This would work best if I can learn how to format it correctly. Also is there a way to make his not case sensitive? e.g. DoG|caT|BIRd|coW|CHICKEn   > fish


      I really appreciate the help! Thanks in advance.

      • peiyezhu's avatar
        peiyezhu
        Bronze Contributor

        The syntax of the REGEXEXTRACT function is:

        REGEXREPLACE(text, pattern, replacement, [occurrence], [case_sensitivity])

        case_sensitivity

        Determines whether the match is case-sensitive. By default, the match is case-sensitive. Enter one of the following:

        0: Case sensitive

        1: Case insensitive



        =WEBSERVICE("https://e.anyoupin.cn/eh3/?regreplace~/dog|cat|bird|pig|cow|chicken/i_@//~fish_@~" & A2)
      • peiyezhu's avatar
        peiyezhu
        Bronze Contributor
        The formular regexreplace only available for Office 365 Beta channel.
        I guess your Excel should not support it.

        Have you tried the webservice?

Resources