You can target a range that excludes row 1. This means the range you'd pass to the keepFormulas function would be from row 2 and onwards. This will preserve row 1 and let you keep your titles