'DATE' has the wrong data type or the result is too large or too small

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
769
Office Version
  1. 365
Platform
  1. Windows
Good morning all,

Its a bit early, but I have been trying to remedy this error since yesterday and its time I asked for some help

I have imported a '.csv' file into Power Pivot and need to amend the current "date" format as it has been pulled through as a "text" data type.
I am fairly new to Power Pivot so any help would be appreciated.

I am using the formula
Code:
=date(left('TabName'[F4], 4), mid('TabName'[F4], 6, 2), mid('TabName'[F4], 8, 2))

thanks in advance
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I also have tried
Code:
=date(LEFT('TabName'[F4],4),MID('TabName'[F4],6,2),RIGHT('TabName'[F4],2))
 
Upvote 0
try DATEVALUE([F4]) but I think you'll get error
why not Power Query? set all columns to the proper format then add table to data model
 
Upvote 0
I have managed to sort this thanks for your time.
I have used Power Query to change the format
 
Upvote 0
maybe you forgot about this
tiw.png

that is why you've column headers as F1, F2, F3, F4 .... etc
 
Upvote 0
thanks sandy666, I re worked the upload correctly and it seems to have worked as well as allow me to amend the dates.

Are you able to look at my current post on Power BI and see if you can point me in the right direction?

Its called "Countifs / Match Query in Power BI"
thanks
 
Upvote 0

Forum statistics

Threads
1,223,803
Messages
6,174,693
Members
452,577
Latest member
Filipzgela

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