Dates

k209310

Active Member
Joined
Aug 12, 2002
Messages
382
I have a problem searching dates. I have created a proceedure in excel to search a database using a date inputted by the user.

I can carry out a search using the format(DD/MM/YYYY) however i cannot get the seach to carryout the search format(MM/YYYY).

I think the problem is down to the way the data is set in the database. If in access i set the date field to "DATE" then the search will not work if i set it to "TEXT" it does work

Does anybody have any ideas
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
You very well may want to check to see if your dates are set up as TEXT or as a date. When you are doing your search you want to keep in mind that the format really doesn't matter so much. When the search is done, Excel is looking at the raw data and NOT how the data is displayed. When submitting the value you want to have searched, it needs to be presented to Excel so that it knows what raw data you are looking for. Do what you can to get the search to work in one instance. For example, isolate one cell and do your search and try every combination of variances you can until you get the desired result. From there it is easier to find out what you need to fix.

A quick fix for your problem would be to copy all of the date data that you have. Then PASTE SPECIAL the values on top of it. Then you can do your search as if it were text that you were searching for.

I hope that this helps.
 
Upvote 0

Forum statistics

Threads
1,214,387
Messages
6,119,225
Members
448,877
Latest member
gb24

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