Enter a date based on another date

Chevon

New Member
Joined
Mar 25, 2019
Messages
5
I would like help with a formula or rule. I am not great with code.

If I enter a date in cell a1 and it is between January 1 - March 31, in cell b1, I want it to say January 1. If I enter a date in cell a1 and it is between April 1 - June 30, in cell b1, I want it to say April 1. If I enter a date in cell a1 and it is between July 1 - September 30, in cell b1, I want it to say July 1. If I enter a date in cell a1 and it is between October 1 - December 31, in cell b1, I want it to say October 1.

Can anyone help with an easy way to do this? Thanks.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Give this formula a try...

=IF(A1="","",IF(MONTH(A1)>9,"October",IF(MONTH(A1)>6,"July",IF(MONTH(A1)>3,"April","January"))))
 
Upvote 0
Give this formula a try...

=IF(A1="","",IF(MONTH(A1)>9,"October",IF(MONTH(A1)>6,"July",IF(MONTH(A1)>3,"April","January"))))
The above formula is the most direct way to write the formula you need; however, if you are into more compact formulas, this will also work...

=LOOKUP(MONTH(A1),{0,4,7,10},{"January","April","July","October"})
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,226
Members
452,620
Latest member
dsubash

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