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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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