Formatting months within a quarter

bdenn

New Member
Joined
Feb 3, 2017
Messages
29
Office Version
  1. 365
Platform
  1. Windows
Hello,
I have a simple data validation of each quarter in a year, C4. Once the quarter has been chosen it displays each month within that quarter in cells: F4,I4,& L4.
=IFS($C$4="Quarter 1","January-2021",$C$4="Quarter 2","April-2021",$C$4="Quarter 3","July-2021",$C$4="Quarter 4","October-2021")
=IFS($C$4="Quarter 1","February-2021",$C$4="Quarter 2","May-2021",$C$4="Quarter 3","August-2021",$C$4="Quarter 4","November-2021")
=IFS($C$4="Quarter 1","March-2021",$C$4="Quarter 2","June-2021",$C$4="Quarter 3","September-2021",$C$4="Quarter 4","December-2021")


Currently these months which are displayed are not in date format. How can I get them to be dates and not general text. Also, I do not what to mess with the year once it goes to 2022, cell A1 displays the current year and will be changed to 01/01/2022 once we hit the new year.

cells C6,F6,& I6 are all formatted to mm/dd/yyyy which you will see if not working.

Thank you for your time,
Bdenn

Quarters.xlsx
ABCDEFGHIJKLMNOPQ
101/01/2021Year Start DateQuarters
210/09/2021Today's DateQuarter 1
3Quarter 2
4Quarter 2April-2021May-2021June-2021Quarter 3
5Quarter 4
6April-2021May-2021June-2021YTD
7SoldProfitShippingSoldProfitShippingSoldProfitShippingSoldProfitShipping
8Product 1
9Product 2
10Product 3
11Product 4
12Product 5
Sheet1
Cell Formulas
RangeFormula
A2A2=TODAY()
F4F4=IFS($C$4="Quarter 1","January-2021",$C$4="Quarter 2","April-2021",$C$4="Quarter 3","July-2021",$C$4="Quarter 4","October-2021")
I4I4=IFS($C$4="Quarter 1","February-2021",$C$4="Quarter 2","May-2021",$C$4="Quarter 3","August-2021",$C$4="Quarter 4","November-2021")
L4L4=IFS($C$4="Quarter 1","March-2021",$C$4="Quarter 2","June-2021",$C$4="Quarter 3","September-2021",$C$4="Quarter 4","December-2021")
C6,F6,I6C6=F4
Cells with Data Validation
CellAllowCriteria
C4:E4List=$P$2:$P$5
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
For F4 use
Excel Formula:
=DATE(YEAR(A1),RIGHT(C4)*3-2,1)
and just change the -2 to -1 for I4 & remove that part for L4
 
Upvote 0
Solution
Hello,
That worked great thank you for the information.

-Bdenn

Quarters.xlsx
ABCDEFGHIJKLMNOPQ
101/01/2021Year Start DateQuarters
210/09/2021Today's DateQuarter 1
3Quarter 2
4Quarter 3July-2021August-2021September-2021Quarter 3
5Quarter 4
6Jul-2021Aug-2021Sep-2021YTD
7SoldProfitShippingSoldProfitShippingSoldProfitShippingSoldProfitShipping
8Product 1
9Product 2
10Product 3
11Product 4
12Product 5
Sheet1
Cell Formulas
RangeFormula
A2A2=TODAY()
F4F4=DATE(YEAR(A1),RIGHT(C4)*3-2,1)
I4I4=DATE(YEAR(A1),RIGHT(C4)*3-1,1)
L4L4=DATE(YEAR(A1),RIGHT(C4)*3,1)
C6,F6,I6C6=F4
Cells with Data Validation
CellAllowCriteria
C4:E4List=$P$2:$P$5
 
Upvote 0
You're welcome & thanks for the feedback.
Thanks also for updating your profile.
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,484
Members
448,967
Latest member
visheshkotha

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top