Day 123 · Friday, 4 December 2026
A remittance advice should show which account the money went to without printing the whole account number. REPLACE swaps a stretch of characters in the middle of a text for something else, and with LEN and REPT working out how long that stretch is, one formula masks an account number of any length.
You send out the Friday payment run's remittance advices, and finance has asked that they stop printing suppliers' full bank details. A2:B7 lists each supplier and the IBAN they were paid into. The IBANs come from six countries, so they are not all the same length. In C2, show the IBAN with its first 4 and last 4 characters kept and every character in between replaced by an asterisk, so GB33BUKB20201555555555 becomes GB33**************5555. The masked version must be exactly as long as the original. Copy the formula down to C7.
The last 14 days. Today's challenge is free while your streak is alive; Pro opens every past day too.