Exclude part of a transaction from spending

We use our joint account for our food shopping budget which works great for us. When doing our last shop I also got a present for somebody and replaced that amount from my own monzo. That means put joint balance accurately reflects what we have left to spend but the summary doesn’t as it classifies that whole transaction as spent.

I’d like to exclude a chosen amount of a transaction from summary