If you want to exclude transactions from these summaries, or from other areas of the app that report on spending, you can do this by clicking on the transaction and switching the 'Exclude transaction from your spend analysis?' toggle on.
Please note that transactions categorised as Internal Transfers and Income are automatically excluded.