I am using Excel 2010.
In Column B, I have 8 digit codes for books. The first cell in Col B with data is B6. Headings are in row 5. The total number of rows varies.
Column B has numbers but they are formatted as text.
Please help me with code that would go down column A and automatically fill the column with values as indicated below.
If the first four letters of the value in B is 5400 then
Value in A should be "Library"
If the first six numbers in column A is 640000
Then the Value of A Should be "Office"
if the first six letters Column B is 640055 then
The Value of A should be "Office - GA"
If the code begins with 64 except the two above then
The Value of A should be "LAW"
All other codes should be "Misc"
Bookmarks