Query - Date parameters in more than one column

oni1983

New Member
Joined
Jul 9, 2015
Messages
25
I have a query in which I have generated 6 columns containing different dates. I created 6 columns as I need to distinguish between each column (ie. Column 1 refers to 1st visit, up to 6 visits).

Now I would like to know if I can use parameters to bring up all visits planned for a particular month. The parameter worked when I inputted it in the column of the 1st visit but when I repeated the parameter for all 6 columns it went bonkers and all visits, regardless of the month were displayed.

Can this be done?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
It sounds like what you have is a design issue, that is causing things to be harder than they have to be, namely, your data is not normalized.
You shouldn't have repeating data like that in a single record. How you should set it up is only have one field per record with visit number, and then one for visit date.
So instead of having what you have, you would have six records of data for your six visits.
Then, when you search by date, you are only searching one field, not six.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,194
Members
449,072
Latest member
DW Draft

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