All of the 1099-R distributions are considered income. However, when you go through the follow-up question after entering each of the forms, you will be able to indicate that you rolled the money over to a different qualified account. When you do this, TurboTax will remove amounts rolled over or otherwise non-taxable from the taxable income line - so you are not taxed on those amounts. Code G indicates a direct rollover, so those automatically get removed from taxable income. For the forms with code 7 and 7m, you will need to complete the follow-up questions to indicate what you did with the money and provide the necessary details to remove the income from taxable income. There are multiple follow-up screens for each form.
1099-R Box 7 codes
**Say "Thanks" by clicking the thumb icon in a post. **Mark the post that answers your question by clicking on "Mark as Best Answer"