rmooretrans
New Member
- Joined
- Feb 20, 2009
- Messages
- 20
Cant seem to get the formula right for extracting which numbers I need out. ex.
a1 contains- w, 90-88 or L, 90-88
trying to extract first number if "w" and second number if "L"
can get the second without out the if "W" or "L" by using
=RIGHT(a1,LEN(a1)-SEARCH("-",a1,1)) gives me "88". getting the first number without the "w," or "L," is a different story using
=LEFT(a1,LEN(a1)-SEARCH(" ",a1,1)) gives me "w, 90"
and when I want one or the another based on the "W" or "L", well I'm lost.
Need some pointers in the right direction. Thx.
a1 contains- w, 90-88 or L, 90-88
trying to extract first number if "w" and second number if "L"
can get the second without out the if "W" or "L" by using
=RIGHT(a1,LEN(a1)-SEARCH("-",a1,1)) gives me "88". getting the first number without the "w," or "L," is a different story using
=LEFT(a1,LEN(a1)-SEARCH(" ",a1,1)) gives me "w, 90"
and when I want one or the another based on the "W" or "L", well I'm lost.
Need some pointers in the right direction. Thx.