Author: Oscar Cronquist Article last updated on February 16, 2018
Question: how can i get the date range as : 01/01/09 - 01/15/09, 01/16/09 - 01/31/09 and so on

I have discussed before how to build date ranges using formulas and a built-in feature using number sequences. Please read that if you don't need a date range in the same cell.

The following picture shows you a formula that returns date ranges in a single cell using 14 days interval.

### Array formula in A4:

=TEXT(IF(MOD(COLUMN(A:A),  2),  DATE(2009,  ROUND(COLUMN(A:A)/2,  0),  1),  DATE(2009,  ROUND(COLUMN(A:A)/2,  0),  16)),  "MM/DD/YY")&"-"&TEXT(IF(MOD(COLUMN(A:A),  2),  DATE(2009,  ROUND(COLUMN(A:A)/2,  0),  15),  DATE(2009,  ROUND(COLUMN(A:A)/2,  0)+1,  1)-1),  "MM/DD/YY") + ENTER

copied rigt as far as needed.

### Array formula in A7:

=TEXT(IF(NOT(MOD(COLUMN(B:B), 2)), DATE(2009, 2-ROUND(COLUMN(B:B)/2, 0), 1), DATE(2009, 2-ROUND(COLUMN(B:B)/2, 0), 16)), "MM/DD/YY")&"-"&TEXT(IF(NOT(MOD(COLUMN(B:B), 2)), DATE(2009, 2-ROUND(COLUMN(B:B)/2, 0), 15), DATE(2009, 2-ROUND(COLUMN(B:B)/2, 0)+1, 1)-1), "MM/DD/YY") + ENTER

copied rigt as far as needed.

### Array formula in A10:

=TEXT(IF(MOD(ROW(1:1), 2), DATE(2009, ROUND(ROW(1:1)/2, 0), 1), DATE(2009, ROUND(ROW(1:1)/2, 0), 16)), "MM/DD/YY")&"-"&TEXT(IF(MOD(ROW(1:1), 2), DATE(2009, ROUND(ROW(1:1)/2, 0), 15), DATE(2009, ROUND(ROW(1:1)/2, 0)+1, 1)-1), "MM/DD/YY") + ENTER

copied down as far as needed.

### Array formula in A18:

=TEXT(IF(NOT(MOD(ROW(2:2), 2)), DATE(2009, 2-ROUND(ROW(2:2)/2, 0), 1), DATE(2009, 2-ROUND(ROW(2:2)/2, 0), 16)), "MM/DD/YY")&"-"&TEXT(IF(NOT(MOD(ROW(2:2), 2)), DATE(2009, 2-ROUND(ROW(2:2)/2, 0), 15), DATE(2009, 2-ROUND(ROW(2:2)/2, 0)+1, 1)-1), "MM/DD/YY") + ENTER

copied down as far as needed.