Split words by uppercase in Google Sheets

=REGEXREPLACE(B2,"([a-z])([A-Z])","$1,$2")

B2 = data cell

Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.