Tom Taetsch formulated on Tuesday :
> On Aug 30, 11:15*am, GS <g...@somewhere.net> wrote:
>> Tom Taetsch presented the following explanation :
>>
>>> Hello,
>>> In Excel 2010... Working with a dataset of 200K+ records and I can't
>>> seem to format a date/time stamp (5/10/2011 *9:10:45 AM) correctly so
>>> that a pivot table will summarize by just the date and NOT by date and
>>> time.
>>
>>> TFTH,
>>> Tom
>>
>> Type this in the Immediate Window and see if it returns what you
>> want...
>>
>> * ?DateValue("5/10/2011 *9:10:45 AM")
>>
>> --
>> Garry
>>
>> Free usenet access athttp://www.eternal-september.org
>> ClassicVB Users Regroup! comp.lang.basic.visual.misc
>
> Garry,
> Your suggestion works, but I not in this application. Currently, I
> have a cell (B4) that is custom formatted as (Date - 3/14) yet the
> data that is included in that cell is: 5/10/2011 9:10:45 AM. I tried
> your suggestion and it worked only when I typed "5/10/2011 9:10:45
> AM" in the formula, but if I used DATEVALUE(B4) it returned #Value!.
>
> TFTH,
> Tom
Tom,
That was VBA I posted, NOT a worksheet function! To extract the date
only using worksheet formula...
=DATE(YEAR(B4),MONTH(B4),DAY(B4))
To extract the time only using a worksheet formula...
=TIME(HOUR(B4),MINUTE(B4),SECOND(B4))
**
Did you read Clif's reply about being able to specify which part of the
date/time stamp to use in your PivotTable? I don't work with
PivotTables much and so I'm afraid I won't be much help on that
subject.<g>
--
Garry
Free usenet access at
http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc