ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Split date from date time cells dd/mm/yyyy hh:mm. New cell dd/mm/y (https://www.excelbanter.com/excel-discussion-misc-queries/226334-split-date-date-time-cells-dd-mm-yyyy-hh-mm-new-cell-dd-mm-y.html)

nigeo

Split date from date time cells dd/mm/yyyy hh:mm. New cell dd/mm/y
 
I have a list with a field that the date and the time is in the same cells
and is in the date and time format. (dd/mm/yyyy hh:mm). I need to be able to
use the date part of these cells on its own (dd/mm/yyyy) as a data date in a
seperate column for a pivot table. Can this be done from the new column using
a function/formula
--
nigeo

Rick Rothstein

Split date from date time cells dd/mm/yyyy hh:mm. New cell dd/mm/y
 
If A1 contains your date/time, then use this formula...

=INT(A1)

and format the cell as a Date.

--
Rick (MVP - Excel)


"nigeo" wrote in message
...
I have a list with a field that the date and the time is in the same cells
and is in the date and time format. (dd/mm/yyyy hh:mm). I need to be able
to
use the date part of these cells on its own (dd/mm/yyyy) as a data date in
a
seperate column for a pivot table. Can this be done from the new column
using
a function/formula
--
nigeo



Ron Rosenfeld

Split date from date time cells dd/mm/yyyy hh:mm. New cell dd/mm/y
 
On Wed, 1 Apr 2009 13:21:01 -0700, nigeo
wrote:

I have a list with a field that the date and the time is in the same cells
and is in the date and time format. (dd/mm/yyyy hh:mm). I need to be able to
use the date part of these cells on its own (dd/mm/yyyy) as a data date in a
seperate column for a pivot table. Can this be done from the new column using
a function/formula


I wonder if it is really necessary to split the two for the pivot table use.
However, with date/time in A1:

=INT(A1)

will return only the date. (Format as desired).
--ron

David Biddulph[_2_]

Split date from date time cells dd/mm/yyyy hh:mm. New cell dd/mm/y
 
=INT(A2)
--
David Biddulph

nigeo wrote:
I have a list with a field that the date and the time is in the same
cells and is in the date and time format. (dd/mm/yyyy hh:mm). I need
to be able to use the date part of these cells on its own
(dd/mm/yyyy) as a data date in a seperate column for a pivot table.
Can this be done from the new column using a function/formula





All times are GMT +1. The time now is 04:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com