Hi there,
I'm trying to extract data from an Account code cell. Example of an account code in my data is as follows:
310410-01-1-000
Starting from left to right:
The first 6 characters are the basic account code ( In this example 310410)
The 2 characters to the right of the first Hyphen are (Location codes)- In this example it is 01
The single character to the right of the second Hyphen is the Department code, which is "1" in this example.
I'm trying to extract the Location code and department code in 2 separate columns. I have tried using the following formula:
=MID(C2,FIND("-",C2)+1,2) - Cell C2 refers to the cell holding the entire account code.
By doing so I'm able to extract the Location but not the Department.
Could some one please help me? If my explanation is insufficient and/or incomplete then I will try and explain myself better.
Thank you one and all for the help rendered.
Cheers,
SJ
Bookmarks