how can i subtract AAAA1234 - AAAA1220?

  • Thread starter Thread starter Guest
  • Start date Start date
What result do you want. 4? AAAA0004? Something else?

If you want 4, you can get this by:

=right(b1,4)-right(a1,4)
 
=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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top