# Extracting semesters from a range of dates (start/end date)

#### Trille

##### New Member
Hello there!

I have a new problem that I am trying to solve.. Been at it for a couple of hours and can't seem to find anything that corresponds to what I'm trying to achieve. Hence, my apologies in advance for the bad explanation!

Basically, I have a start and an end date, say in A1 and A2. What I would like to do is to extract the semestrial intervals in different columns. This should not be relative and should cut off from the fixed calender dates of 1/1 and 7/1. Example

If my start/end date are 5/1/2021 and 8/1/2022 I would like to have cells populate as follows:

Semseter 1 - 5/1/2021 -- 6/30/2021
Semester 2 - 7/1/2021 -- 31/12/2021
Semester 3 - 1/1/2022 -- 6/30/2022
Semester 4 - 7/1/2022 -- 8/1/2022

The format that is returned from the start/end date doesn't really matter as long as the corresponding number of cells is populated (in this case 4). Worst case, It could just be "Semester 1 2021", "Semester 2 2021".... Displaying the actual date would just be a "nice-to-have".

Does anyone have any ideas?

### Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a \$25,000 loan, 5% annual interest, 60 month loan.

Replies
4
Views
100
Replies
5
Views
399
Replies
8
Views
82
Replies
2
Views
374
Replies
9
Views
149

1,130,051
Messages
5,639,773
Members
417,112
Latest member
PachRedoc

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back