General dates & breaking data up

Binraider

Board Regular
Joined
Apr 26, 2005
Messages
79
Hi all,

I have 140,000 rows of data, consisting of a "General Date & Time", plus 3 other number fields.

Is it possible to have a query extract just the date alone from the general date, and also extract the time too?

My table is laid out as

Gen_Date Number1 Number2 Number 3
12/02/2010 05:54 1.125 1.654 0.437

I tried something like Cal_Date: Date([Gen_date]), or GetTime: Time([Gen_date]) but I know I don't have the syntax quite right.

Many thanks
 

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)
Never mind, I've just looked an older post by myself where we figured this out by using something like:

GasDate: IIf(TimeValue([Time_date])<0.25,DateValue([Time_date])-1,DateValue([Time_date]))
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,282
Members
452,902
Latest member
Knuddeluff

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