Why an exchange asks for a memo or destination tag
An XRP deposit may come with two pieces of information. The address routes the funds to the exchange. The destination tag tells the exchange which customer balance to credit.

When customers share one address
An exchange can receive XRP for several customers at one address. Kraken, for example, assigns a destination tag to each customer who deposits XRP at its shared address. Imagine two people sending the same amount. The address and amount could match for both payments, while the tags identify two different accounts in the exchange’s records.
Copy the details from the receiving account
Open the deposit screen in the account you intend to fund and select the asset and network. If the service displays an address and a separate tag, copy each into its corresponding field in the sending wallet. Compare both entries on the final confirmation screen. XRP Ledger also supports an X-address that encodes the tag inside the address. If the two apps show different formats, check which format the sending wallet accepts before authorising the payment.
When the wallet labels the field optional
A sending wallet can allow a blank tag because different recipients have different requirements. If the exchange marks it as required, include it. A private note saved in your wallet’s activity history does not deliver a destination tag to the exchange. If you cannot find a field for the required detail, check whether that withdrawal method supports it before proceeding.
If you have already sent the payment
Look up the transaction hash and its status. If the network confirmed a payment with the wrong or missing tag, contact the receiving service. Give it the hash, network, amount, time and time zone, plus the correct tag from your account. The service can assess whether it can assign the funds manually and whether a fee applies. A second payment cannot change the tag on the first.
See also How to track a crypto deposit that has not been credited