How do I pull all dates that fall within a certain month.

jayd77

New Member
Joined
Mar 25, 2003
Messages
18
I know I can use the criteria(between date and date) but I would rather have the prompt let the person simply type in the number of the month.
[Please enter the month! (1-12)]
 

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)
Try this: Between [Enter Start Date] and [Enter End Date]
Add this to the criteria, in the date field
 
Upvote 0
Are you wanting to do this on a form or in a query or somewhere else?? Help use out with a little more detail, please....

Rocky
 
Upvote 0
I want a query that lists all employees who have an anniversary in any given month. The user gets to enter the month. (1-12)
 
Upvote 0
It is not hard to do. Let say that the date is in a field called MyDate found in Table1. In your query, create a variable (in Build) called MyMonth. It would like something like this (under Field):

MyMonth: Month([Table1]![MyDate])

Then, under the criteria under MyMonth, simply enter

[Enter month number]
 
Upvote 0

Forum statistics

Threads
1,221,517
Messages
6,160,260
Members
451,635
Latest member
nithchun

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