Check a range of dates fall within a specific month and return a true value

NTownend

New Member
Joined
Jun 29, 2018
Messages
18
Office Version
  1. 365
Platform
  1. Windows
I have a range of dates in one column for say the month of August and i want to check all the dates in that column to ensure they all fall within that month and return a true or false value in one cell only
1662047033990.png
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Hi I have updated my details as requested i am using office 365 on windows 10 64-bit version hope this helps
 
Upvote 0
Thanks for that (y)
How about
Excel Formula:
=SUM(--(MONTH(A2:A18)<>8))=0
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0
and what if i want to have a formula that checks the data in that column month on month without me having to change the dates. so the cell that returns true/false will look at the same range of data but compare it to say the current month or previous month?
 
Upvote 0
You could put the month number in another cell & refer to that.
 
Upvote 0
So something that looks like this =SUM(--(MONTH(A2:A18)<>B1))=0, where B1 = current month?
 
Upvote 0
That's right.
If you just want to compare the dates to the current month could also use
Excel Formula:
=SUM(--(MONTH(A2:A18)<>Month(Today())))=0
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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