Hi there, @AlexK3.
You can make an expense entry to record the deposit that you've transferred back out to the same account in QuickBooks Online. You've got me here to help you achieve this goal.
Creating an expense is the right thing to do since the money has been moved out of the account. This will offset the cleared deposit and record the process accordingly in the system. Know that in doing this, you'll need to use the same account where the money was cleared.
To do that:
- Click on the +New button.
- Press on Expense.
- Select where the deposit is coming from in the Payee box.
- Choose the bank account where the money will be taken out in the Payment account section.
- Enter the Category Details and its amount.

- Hit on Save and Close.
To guide you in matching and categorizing your bank transactions so you can have a smooth reconciliation, you may check out this link: Categorize and match online bank transactions in QuickBooks Online.
Update me if there's anything else that you need, @AlexK3. I'm always here to help. Take care!