In Excel With Formula Free |link| Download - Cash Flow Statement Format
Notice the sign conventions. A decrease in assets (like AR) adds cash. An increase in liabilities (like AP) adds cash. Your template must reflect this logic.
Before downloading a template, you must know which format you need. Most free templates use the (starting with Net Income), but the Direct Method (listing actual cash receipts and payments) is also common. Notice the sign conventions