I am running Excel 2007.
I have two values that contain 1 or 2 alpha characters and 1 to 5 numbers.
Example:
Cell J3 contains RN9999
Cell J4 contains RN10005
Cell J5 will contain the formula to subtract J4-J3. I then want to subtract a value of 1 from the answer.
I have tried:
which returns a '#VALUE' error
Additionally, I've tried:
this returns an answer -1.
I think my best bet is to strip off the alpha characters but sometimes there is one alpha character and sometimes two. I am not sure how to account for this variable.
Can anyone help me with this?
Thank you,
I have two values that contain 1 or 2 alpha characters and 1 to 5 numbers.
Example:
Cell J3 contains RN9999
Cell J4 contains RN10005
Cell J5 will contain the formula to subtract J4-J3. I then want to subtract a value of 1 from the answer.
I have tried:
Code:
=(J4-J3)-1
which returns a '#VALUE' error
Additionally, I've tried:
Code:
=(MAX(J3:J4)-MIN(J3:J4))-1
this returns an answer -1.
I think my best bet is to strip off the alpha characters but sometimes there is one alpha character and sometimes two. I am not sure how to account for this variable.
Can anyone help me with this?
Thank you,