State tax filing

It sounds like you failed to allocate your income.  You are a part year resident of both states and, as such, you file a part year resident return in both states.  

 

In the each state interview, you will be given a chance to allocate each piece of income as that state income or the other state income. I'm not specifically familiar with the  MT and NC software, but it works that way in all states. The actual entry wording may vary.

 

At the W-2 screen, in the federal income section, be sure the box 16 amount, for each state matches what you earned in that state.  If your employer did it wrong, you are allowed to change it, in TurboTax, to get the result you need.