The situation I'm in is I have a list of thousands of work orders. one column is situated to give us some what of an idea where the work order came from. For example
LOL-IDK-10
LOL-IDK-NO
LOL-IDK-JK
LOL-IDK-IMO-20
could all be from the IDK department
and
LOL-VA-88
LOL-VA-kk-877
LOL-VA-SS-33
are all from VA
The problem is I don't want to manually imput each possible code for each department in a very long If statement. I'd rather use VBA to go down a column Finding the first part of the Phrase "LOL-VA" then count it as a VA department.
LOL-IDK-10
LOL-IDK-NO
LOL-IDK-JK
LOL-IDK-IMO-20
could all be from the IDK department
and
LOL-VA-88
LOL-VA-kk-877
LOL-VA-SS-33
are all from VA
The problem is I don't want to manually imput each possible code for each department in a very long If statement. I'd rather use VBA to go down a column Finding the first part of the Phrase "LOL-VA" then count it as a VA department.