Right find

Fean

New member
Joined
Mar 24, 2016
Messages
3
Reaction score
0
Points
0
Hi i have difficulties with Right and Find.

In a cell A1 to A20 i have;
A1 Americas_variances 0.xlsm
A2 Argentina_variances 1.xlsm
A3 Bolivia_variances 0.xlsm
A4 Brasil_variances 1.xlsm
A5 BVI_variances 1.xlsm
Etc

In cell B1 I want only the 0 or 1 from the above.

Of course i can do =RIGHT(C7,6)
but that gives me "0.xlsm"

I want only the 0 or 1 or what stands before the "."

Something like this (but that only goes well till B2
=RIGHT(FIND(".",A1,6)-1)

I can figure out why this is not working
 
maybe something like...

=0+MID(A1,FIND(".",A1)-1,1)
 
Hi i have difficulties with Right and Find.
another way
If text contain only one number digit always on same place, try
Code:
=LEFT(RIGHT(A1,6),1)
If there more from one number digit, try
Code:
=LOOKUP(9.999999999E+307,("0"&MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),ROW($1:$30)))+0)
 
ye!
=LEFT(RIGHT(A1,6),1)

That did the trick.
Strange that its LEFT formula to coordinate the right side of the string!

Thanks!!
 
Back
Top