kpieper876
New Member
- Joined
- Aug 12, 2011
- Messages
- 13
I have the following in cell A1:
optimized-by.rubiconproject.com/a/8191/13252
I need to remove everything from the left of the second decimal from the right:
=IF(LEN(A1)-LEN(SUBSTITUTE(A1,".",""))<2,A1,RIGHT(A1,LEN(A1)-FIND(CHAR(1),SUBSTITUTE(A1,".",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1,".",""))-1))))
results in this:
rubiconproject.com/a/8191/13252
Now I need to remove everything after the first "/" including the "/":
=IF(FIND("/",A1)>0,LEFT(A9,FIND("/",A1)-1))
Problem is, I want to combine these two formulas into one. AND the second formula looking for the backslash needs to happen AFTER the first formula AND there may not always be a "/" to truncate from.
Thanks for your help.
optimized-by.rubiconproject.com/a/8191/13252
I need to remove everything from the left of the second decimal from the right:
=IF(LEN(A1)-LEN(SUBSTITUTE(A1,".",""))<2,A1,RIGHT(A1,LEN(A1)-FIND(CHAR(1),SUBSTITUTE(A1,".",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1,".",""))-1))))
results in this:
rubiconproject.com/a/8191/13252
Now I need to remove everything after the first "/" including the "/":
=IF(FIND("/",A1)>0,LEFT(A9,FIND("/",A1)-1))
Problem is, I want to combine these two formulas into one. AND the second formula looking for the backslash needs to happen AFTER the first formula AND there may not always be a "/" to truncate from.
Thanks for your help.