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
 
Sorry that doesnt work think it has something to do with the today function it just says the formula is volatile
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
The Today function is volatile, but it should still work.
 
Upvote 0
No luck, when i look into the formula and break it down it just returns the start date in excel 01/01/1900?
 
Upvote 0
Do you have the =0 at the end of the formula as it should only return True or False.
 
Upvote 0
Yes i do but when i look into the formula its returning a date year ending 1900 and its showing as true because it doesnt = todays date or if i change any of the dates in the range so that it should return a false it doesnt because the base date is wrong if that makes sense.
Book1.xlsx
ABCD
1PAYMENT_DATEPAYMENT_DATE2current monthColumn3
217-Aug-2217-Sep-2202-Sep-2022
304-Aug-2204-Sep-22TRUETRUE
430-Aug-2230-Sep-22
518-Aug-2218-Sep-22I want it to check the month in the range of column A against the month in cell D1 and return true or false, if any of the dates in the range do not equal the relevant month then I want it to return a true or false
605-Aug-2205-Sep-22
717-Aug-2217-Sep-22
817-Aug-2217-Sep-22
912-Aug-2212-Sep-22
1018-Aug-2218-Sep-22
1105-Aug-2205-Sep-22
1218-Aug-2218-Sep-22
1316-Aug-2216-Sep-22
1426-Aug-2226-Sep-22
1504-Aug-2204-Sep-22
1616-Aug-2216-Sep-22
1709-Aug-2209-Sep-22
1811-Aug-2211-Sep-22
1931-Aug-2212-Sep-22
2031-Aug-2213-Sep-22
2131-Aug-2214-Sep-22
2231-Aug-2215-Sep-22
2331-Aug-2216-Sep-22
2431-Aug-2217-Sep-22
2531-Aug-2218-Sep-22
2631-Aug-2219-Sep-22
2731-Aug-2220-Sep-22
2811-Aug-2211-Sep-22
2904-Aug-2204-Sep-22
3001-Aug-2201-Sep-22
3126-Aug-2226-Sep-22
3210-Aug-2210-Sep-22
3315-Aug-2215-Sep-22
3410-Aug-2210-Sep-22
3518-Aug-2218-Sep-22
3625-Aug-2225-Sep-22
Sheet2
Cell Formulas
RangeFormula
C2C2=TODAY()
C3C3=SUM(--MONTH($A$2:$A$36)<>MONTH(TODAY()))=0
D3D3=SUM(MONTH($B$2:$B$36)<>MONTH(TODAY()))=0
 
Upvote 0
Both the formula you posted are returning true/false not a date, which is what you said it was returning.
Also neither of them are the formula I posted which was
Excel Formula:
=SUM(--(MONTH($A$2:$A$36)<>MONTH(TODAY())))=0
 
Upvote 0
ok i am confused i didnt say it was returning a date i said when i actually broke the formula down the today function was showing a date ending in year 1900, i also cant see the difference between your formula and the one i just posted, sorry for the confusion,
All i want it to do is look at the months in column A or B (as examples) and tell me if they all match the current month in cell C2, so if there is one date in column A or B that is not Aug/Sep, in this example, then i want it to tell me that in the formula result , i hope this makes more sense thanks
 
Upvote 0
In that case use
Excel Formula:
=SUM(--(MONTH($A$2:$A$36)<>MONTH(C2)))=0
 
Upvote 0
Solution
SOP57307145_1_1
SOP57307145_1_1
SOP57307145_2_1
SOP57307145_2_1
SOP57307145_2_2
SOP57307145_2_2
SOP57307152_1_1
SOP57307152_1_1
SOP57307152_2_1
SOP57307152_2_1


hi next problem i have a multiple lines in a column and i want to seperate these out, so in the example above i want to get rid of the first 3 characters "SOP" and then separate the next 3 sets of data into 3 columns so i would get
5730714511
5730714511


with the conditions that all three columns could have a different total number of characters in each string i.e

SOP5730714_12_5
SOP573071456_1_15


and so on. text to columns is not workable as i want to automate 1000's of lines
cheers
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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