I am new to the more complicated functions of Excel and Google Sheets.
I am trying to extract hashtagged words from my journal entries to get the gist of what those entries are about.
I had pretty good results using the first answer in this thread.
=trim(regexreplace(A2, "((^|\s)[^#]\S*)|([^#\w\s]\S*)", ""))
However, a few problems emerge, listed by how important they are to me.
- If the hashtagged word is the first word in the text entry, it is excluded from the list the formula generates.
- The formula will exclude special characters at the end of the hashtag, but if the special character is in the middle of the word, that character will break off the part after it. #inter,rupt is spit out as #inter but the hashtagged words after it will be just fine.
- Any hashtagged word #(inparentheses) will not appear in the list.
