Based on my previous post, this is what you are looking for.
For those wanting a breakdown, the first IF says if E8 is empty, this cell is empty
The Second IF says if either the order number (in E8) is only 5 characters long OR if it ends in "a", then just put in the first 5 characters (truncate the "a")
IF that's not true (5 characters or ending in "a") then take the last character, convert it to it's ascii code (a number representing that letter) subtract 1 and then convert it back to a character.
Any questions?
ChemistB
Bookmarks