How to STDEV on different ranges using Excel formulas?

Consider an Excel file in which we have different group of numbers and we want to calculate STDEV for each rang using a formula. The process is as follow,

Group of numbers in an Excel sheet



Note: This is an array formula and should be inserted with Ctrl+Shift+Enter
STDEV (Sample Excel File)