Enter a date based on another date

Chevon

New Member
Joined
Mar 25, 2019
Messages
3
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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,272
Messages
6,129,822
Members
449,538
Latest member
cookie2956

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