In this article, we will learn How to join dates to get a date range in Excel.
At Instance, we need to get the date values as date ranges. Either we do it manually one by one, which could be hectic. The problem occurs as Excel stores date values as numbers. So if we directly concatenate or join 2 dates as shown below. Some unknown numbers appeared as text values.
The resulting range is not in type of required format. So we will use the below explained formula to get the date as range in required format in excel
How to solve the problem?
Here, we use the following char or function to join the dates:
The above stated & (char) and the CONCATENATE function does the same work. So you can use any one of these. TEXT function returns the date as text value with the type of format you require as date range. Observe the below formula.
|= TEXT ( start_date , "format" ) & " - " & TEXT ( end_date , "format" )|
start_date : range start date
end_date : range end date
format : type of format
All of these might be confusing to understand. Let's check the formula via running some examples. Here we have different columns as dates and one column will be the results using the formula.
Use the formula:
|= TEXT (B3, "mm/dd/yyyy" ) & " - " & TEXT ( C3 , "mm/dd/yyyy" )|
Here the date and format is provided to the formula as shown in the image above. Press Enter to get the date range.
Here the format selected for the date range is mm/dd/yyyy, you can customize it to any format. I took some different formats like "mmmm yyyy", "mmmm, dd" , "dd/mm/yy", etc. as shown below.
As you can see the formula extracts the date range using the & (char) in excel. In E7 cell, there is a date range having end date before the start date. So check the start_date and end date in the formula. You can tackle the same problem using the CONCATENATE function separated by commas as argument.
Here are all the observational notes regarding using the formula.
Hope this article about How to join dates to get a date range in Excel is explanatory. If you liked our blogs, share it with your fristarts on Facebook. And also you can follow us on Twitter and Facebook. We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at email@example.com.
Calculate age from date of birth : calculate the age upto to today using formula in Excel.
Calculate Weighted Average : Calculate the average of the values having variable weightage in Excel
How to Group Data By Age Range in Excel : Data grouping is done on the basis of person's age factor using the excel formula.
Get day name from Date in Excel : extract date number from date value using the excel formula.
Get Month name from Date in Excel: extract month name from date value using the excel formula.
How to use wildcards in excel : Count cells matching phrases using the wildcards in excel
50 Excel Shortcut to Increase Your Productivity : Get faster at your task. These 50 shortcuts will make you work even faster on Excel.
How to use the VLOOKUP Function in Excel : This is one of the most used and popular functions of excel that is used to lookup value from different ranges and sheets.
How to use the COUNTIF function in Excel : Count values with conditions using this amazing function. You don't need to filter your data to count specific values. Countif function is essential to prepare your dashboard.
How to Use SUMIF Function in Excel : This is another dashboard essential function. This helps you sum up values on specific conditions.
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.