A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to Round a Date to a Month



 
 
Thread Tools Display Modes
  #1  
Old January 30th, 2009, 07:43 PM posted to microsoft.public.excel.misc
evoxfan
external usenet poster
 
Posts: 65
Default How to Round a Date to a Month

I have data such as:
05/10/07 May-07 72,045.00
06/11/07 June-07 27,000.00
06/11/07 June-07 98,468.25
06/28/07 June-07 28,778.80
06/28/07 June-07 92,722.80
07/10/07 July-07 3.79
The first column is the actual date and the second column is the same date
but just formatted different and the third column is cost.

I want to consolidate all cost by month via a pivot table and I have setup
the pivot table but it shows multiple costs for the same month. If I round
the dates in the middle column to the first of the month that they occur, my
pivot table should work.

How can I accomplish this or is there a better way to accomplish my task?

Any help is appreciated, Thanks.


  #2  
Old January 30th, 2009, 08:07 PM posted to microsoft.public.excel.misc
Jim Thomlinson
external usenet poster
 
Posts: 2,641
Default How to Round a Date to a Month

There is a better way. Pivot tables allow for grouping and one of the options
is by month.

Right click on the dates column and select Group

A dialog will open up giving you a number of different ways to group the
data. So long as all of the data in that column is dates then Month will be
one of the options...
--
HTH...

Jim Thomlinson


"evoxfan" wrote:

I have data such as:
05/10/07 May-07 72,045.00
06/11/07 June-07 27,000.00
06/11/07 June-07 98,468.25
06/28/07 June-07 28,778.80
06/28/07 June-07 92,722.80
07/10/07 July-07 3.79
The first column is the actual date and the second column is the same date
but just formatted different and the third column is cost.

I want to consolidate all cost by month via a pivot table and I have setup
the pivot table but it shows multiple costs for the same month. If I round
the dates in the middle column to the first of the month that they occur, my
pivot table should work.

How can I accomplish this or is there a better way to accomplish my task?

Any help is appreciated, Thanks.


  #3  
Old May 11th, 2010, 04:23 PM posted to microsoft.public.excel.misc
James Perry
external usenet poster
 
Posts: 1
Default Excel Month Round down

Assuming the date is set in Cell A1, set the formula in Cell B1 to:

=(A1-(DAY(A1))+1)

That was the way I did it. Hope this helps (14 months later )



James_Thomlinso wrote:

There is a better way.
30-Jan-09

There is a better way. Pivot tables allow for grouping and one of the options
is by month.

Right click on the dates column and select Group

A dialog will open up giving you a number of different ways to group the
data. So long as all of the data in that column is dates then Month will be
one of the options...
--
HTH...

Jim Thomlinson


"evoxfan" wrote:

Previous Posts In This Thread:

On Friday, January 30, 2009 2:43 PM
evoxfa wrote:

How to Round a Date to a Month
I have data such as:
05/10/07 May-07 72,045.00
06/11/07 June-07 27,000.00
06/11/07 June-07 98,468.25
06/28/07 June-07 28,778.80
06/28/07 June-07 92,722.80
07/10/07 July-07 3.79
The first column is the actual date and the second column is the same date
but just formatted different and the third column is cost.

I want to consolidate all cost by month via a pivot table and I have setup
the pivot table but it shows multiple costs for the same month. If I round
the dates in the middle column to the first of the month that they occur, my
pivot table should work.

How can I accomplish this or is there a better way to accomplish my task?

Any help is appreciated, Thanks.

On Friday, January 30, 2009 3:07 PM
James_Thomlinso wrote:

There is a better way.
There is a better way. Pivot tables allow for grouping and one of the options
is by month.

Right click on the dates column and select Group

A dialog will open up giving you a number of different ways to group the
data. So long as all of the data in that column is dates then Month will be
one of the options...
--
HTH...

Jim Thomlinson


"evoxfan" wrote:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Free Online Courses Available for Eggheadcafe.com Users
http://www.eggheadcafe.com/tutorials...ses-avail.aspx
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.