Since this question has a variety of different scenarios, it would be best to refer Indiana's IT-40 Income Tax Instruction Booklet which is posted with the current year’s tax forms. You should also refer to the guidelines for your other state(s) of residence.
If you have additional questions about your specific circumstances, please contact the Department of Revenue.