lakejoftis
New Member
- Joined
- May 31, 2019
- Messages
- 3
I'm working with data in the B column that contains either a "+" or a "-" and I need the information after that.
Example values in B column:
> §3 +60% STAT
» (3 -15% STAT
My current formula(s) in the C column are either:
=TRIM(RIGHT(SUBSTITUTE(B1,"+",REPT(" ",LEN(B1))),LEN(B1)))
=TRIM(RIGHT(SUBSTITUTE(B1,"-",REPT(" ",LEN(B1))),LEN(B1)))
The formula in the C column will spit out:
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>60% STAT
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>15% STAT
My problem is I need to combine those two formulas into one so it will recognize a "+" or a "-" in the data. I currently have to manually specify which formula to use in the C column based on if that value has a "+" or "-".
Can anyone help me combine those two formulas to recognize a "+" or a "-" ?
Thank you!
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
Example values in B column:
> §3 +60% STAT
» (3 -15% STAT
My current formula(s) in the C column are either:
=TRIM(RIGHT(SUBSTITUTE(B1,"+",REPT(" ",LEN(B1))),LEN(B1)))
=TRIM(RIGHT(SUBSTITUTE(B1,"-",REPT(" ",LEN(B1))),LEN(B1)))
The formula in the C column will spit out:
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>60% STAT
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>15% STAT
My problem is I need to combine those two formulas into one so it will recognize a "+" or a "-" in the data. I currently have to manually specify which formula to use in the C column based on if that value has a "+" or "-".
Can anyone help me combine those two formulas to recognize a "+" or a "-" ?
Thank you!
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>