Doctor Logic
New Member
- Joined
- Oct 24, 2002
- Messages
- 40
=search( ) or =find( ) work from left to right. Can I make it work from right to left?
I always try to get it all into ONE cell and (if at all possible) with a FUNCTION rather than a formula.
I was just hoping.
On 2002-11-07 18:52, Doctor Logic wrote:
Capital piece of code from Nate. (Sure wish I knew how to write VB!)
As for Paddy's example, here is the contents of a cell:
WIRE THHN-10-TAN-19STR-CU-500S/R
I would like to return everything after the last - . I can write nested serches for "-" as the silly Mr. EH? suggests except not all the cells have the same amount of "-" in them, so you nest the find for one incidence? two? five? Mr. EH? knows this so he is just being annoying. I want the formula to work on all the cells. If the formula found the FIRST incidence of "-" FROM THE RIGHT instead of the left, it would work perfect.
I suppose I could write a big formula or use multiple ajacent columns to do it but I always try to get it all into ONE cell and (if at all possible) with a FUNCTION rather than a formula.
I was just hoping.
On 2002-11-08 17:31, Doctor Logic wrote:
Hmmmm . . .
Reverse Text? I never heard of that one, but it sounds like it would be very helpful and also simple.
Thanks
To have the forumula work for all cells with in a spreadsheet you have to add in functions to count the amount of accurences of the character you are looking for, (in this case "-"). This should work for you...
=RIGHT(G3,LEN(G3)-FIND(CHAR(1),SUBSTITUTE(G3,"-",CHAR(1),LEN(G3)-LEN(SUBSTITUTE(G3,"-","")))))
No faith Dr. you just have no faith...
Thanks Paddy for sticking up for me...I appreciate it...
If you ask me this so called Dr. is a crack-pot...