## Convert date ranges into dates in excel

In a previous post I created a formula to convert dates into date ranges. Now it is time to create dates from date ranges.

The date ranges are in cells C2:D6. The date list in column A is created by an array formula.

### Convert date ranges into dates

Array formula in A2:

**UPDATE:**

Smaller array formula:

**How to create an array formula**

- Copy above array formula
- Select cell A2
- Click in formula bar

- Paste array formula in formula bar
- Press and hold Ctrl + Shift
- Press Enter
- Release all keys

**How to copy array formula**

- Select cell A2
- Copy cell (Ctrl + c)
- Select cell range A3:A30
- Paste (Ctrl + v)

~~There can´t be overlapping date ranges in column C and D.~~

The new array formula handles overlapping dates!

**Download excel sample file for this tutorial. **

Create-dates-from-date ranges.xls

(Excel 97-2003 Workbook *.xls)

Create-dates-from-date-ranges2.xlsx

(New formula and excel *.xlsx file)

**Functions in this article:**

**IF(**logical_test;[value_if:true];[value_if_false]**)
**Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE

**SMALL(**array,k**)** returns the k-th smallest row number in this data set.

**MIN(**number1,[number2]**)**

Returns the smallest number in a set of values. Ignores logical values and text

**ROW(**reference**)** returns the rownumber of a reference

**FREQUENCY**(data_array, bins_array)*
*Calculates how often values occur within a range of values and then returns a vertical array of numbers having one more element than Bins_array

*.*

**TRANSPOSE(**array**)**

Converts a vertical range to a horizontal range, or vice versa.

**OFFSET(**reference,rows,cols, [height],[width]**)**

Returns a reference to a range that is a given number of rows and columns from a given reference

### 5 Responses to “Convert date ranges into dates in excel”

### Leave a Reply

**How to add a formula to your comment:**

<code>your formula</code>

**How to add VBA code to your comment:**

[vb 1="vbnet" language=","]

VBA code

[/vb]

**How to add a picture to your comment:**

Upload picture to postimage.org

Add picture link to comment.

**Contact Oscar**

You can contact me through this webpage

Wow this is for the Excel Black belt guys!

Oscar for the benefit of those who aspire to get here someday, could you please explain in brief the logic and what part of the formula is doing what.......

chrisham,

Thanks!!

I will explain this post and all the others as soon as I can. This post is now number one on my update list.

Any ideas why - if I enter 20/7/12 to 30/7/12 the range is expanded from 24/7/12 to 30/7/12 (and does not start at the 20th)?

resolved - not sure what the problem was though