Import table from Access to Excel

Amileaux

Board Regular
Joined
Nov 3, 2002
Messages
110
We have an access database with tables that have dates. The design view of these tables has date/time as the field type. I can use date functions on these dates and they work just fine. I import a table from access into excel. I delete all rows without a date. I create a pivot table from the data and it will not group on the dates. Tells me I can't group on that field. If I go back to the source table in excel and use date functions (i.e. month(StartDate) ) it works and returns the month - so excel is recognizing these as dates in the worksheet. Why not on the pivot table? I know this doesn't work if you have any blank date fields - and there are none. Any thoughts? Thank you. Marie
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
If you highlight the data in Excel and use Data>Text To Columns...
You can select Date as the datatype and excel will convert them to real dates.

HTH

Peter
 
Upvote 0
Well - it seems to have worked. But now I'm really confused. Why doesn't it recognize it in the first place? If I can use date functions like (month(StartDate)) and it returns the month, then it must be a date. Oh well - thank you very much. I'll try that technique on my other problem dates. Marie
 
Upvote 0
Excel will mostly use anything it can interpet as a date as a date in a date function, I don't use pivot tables so I dont know why the create an extra problem.

peter
 
Upvote 0

Forum statistics

Threads
1,213,532
Messages
6,114,177
Members
448,554
Latest member
Gleisner2

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