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
24
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

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)
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,224,823
Messages
6,181,175
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