Excel formula to evaluate two dates to see if either of the range contains a specific month and then list the month name

klitton7

New Member
Joined
Jul 24, 2024
Messages
10
Office Version
  1. 2019
Platform
  1. Windows
In my example, I'm reviewing two sets of dates to determine if the date range would include the month in A1. If yes, the month name would appear in column C next to the dates. If "NO," the field would be blank.

Thank you!
 

Attachments

  • Screenshot 2024-07-25 165439.png
    Screenshot 2024-07-25 165439.png
    9.9 KB · Views: 7

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Place this formula in cell C3 and copy down for all rows:
Excel Formula:
=IF(AND(B3>=$A$1,A3<=EOMONTH($A$1,0)),UPPER(TEXT($A$1,"MMMM")),"")

and here's the proof!
1721948608471.png
 
Upvote 0
Solution
You are welcome. Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,221,619
Messages
6,160,877
Members
451,674
Latest member
TJPsmt

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