how can i subtract AAAA1234 - AAAA1220?

F

Fred Smith

What result do you want. 4? AAAA0004? Something else?

If you want 4, you can get this by:

=right(b1,4)-right(a1,4)
 
B

Bob Phillips

=IF(LEFT(A1,4)=LEFT(A2,4),LEFT(A1,4)&(--RIGHT(A1,LEN(A1)-4)-RIGHT(A2,LEN(A2)
-4)),"indeterminate")

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Top