Enter a date based on another date

Chevon

New Member
Joined
Mar 25, 2019
Messages
8
Office Version
  1. 365
Platform
  1. Windows
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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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
DanteAmor....Your formula did exactly what I was looking for. Thank you.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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