Oops, forgot to mention, I installed a UDF called IFERROR into the sheet, you'll need to install it in yours as well for the formulas in F and G to work.
Open your sheet
Press Alt-F11
Click Insert > Module
Paste in code above
Alt-F11 to close VBEditor
Save sheet.
Now these two formulas from F1 and G1 will function:
=iferror(LEFT(A1,LEN(A1)-(LEN(G1)+1))*1,"")
=iferror(RIGHT(A1,LEN(A1)-FIND("-",A1))*1,"")
======
NOTE: If you're using Excel 2007, IFERROR is already a function you can use, the UDF is unnecessary.
For Excel 2003, you can SKIP installing the UDF above, but the formulas in F1 and G1 would have to change to:
=IF(ISERROR(LEFT(A1,LEN(A1)-(LEN(G1)+1))*1),"",LEFT(A1,LEN(A1)-(LEN(G1)+1))*1)
=IF(ISERROR(RIGHT(A1,LEN(A1)-FIND("-",A1))*1),"",RIGHT(A1,LEN(A1)-FIND("-",A1))*1)
Bookmarks