How can I perform a reverse string search in Excel without using VBA?

This one is tested and does work (based on Brad’s original post): =RIGHT(A1,LEN(A1)-FIND(“|”,SUBSTITUTE(A1,” “,”|”, LEN(A1)-LEN(SUBSTITUTE(A1,” “,””))))) If your original strings could contain a pipe “|” character, then replace both in the above with some other character that won’t appear in your source. (I suspect Brad’s original was broken because an unprintable character was removed in … Read more

Excel: last character/string match in a string

I think I get what you mean. Let’s say for example you want the right-most \ in the following string (which is stored in cell A1): Drive:\Folder\SubFolder\Filename.ext To get the position of the last \, you would use this formula: =FIND(“@”,SUBSTITUTE(A1,”\”,”@”,(LEN(A1)-LEN(SUBSTITUTE(A1,”\”,””)))/LEN(“\”))) That tells us the right-most \ is at character 24. It does this by … Read more

TEXTJOIN for xl2010/xl2013 with criteria

This TextJoinIfs user-defined-function (aka UDF) provides basic TEXTJOIN functionality to Excel 2003 – 2013 versions as well as expanded functionality for all versions by adding optional error control, uniqueness, sorting and a paramarray of conditions for easy criteria. This TextJoinIfs UDF code belongs in a public module code sheet; e.g. Book1 – Module1 (code). Option … Read more