Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 93
Default How do I sum columns separating out the dates

I have a spreadsheet that looks something like this:

1 01/02/08
..2 01/06/08
..8 12/15/08
15 02/07/09
1.7 02/22/09
10 05/06/09

I want to add the first column (which is hours), but I need them added by
mm/yy.

Thanks,

--
DMM
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How do I sum columns separating out the dates

Try the below to retrive the sum for Jan 08 (01/08)

=SUMPRODUCT(--(TEXT(B1:B10,"mm/yy")="01/08"),A1:A10)

If this post helps click Yes
---------------
Jacob Skaria


"soconfused" wrote:

I have a spreadsheet that looks something like this:

1 01/02/08
.2 01/06/08
.8 12/15/08
15 02/07/09
1.7 02/22/09
10 05/06/09

I want to add the first column (which is hours), but I need them added by
mm/yy.

Thanks,

--
DMM

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 93
Default How do I sum columns separating out the dates

That helped a bit, but my spread sheet is a couple hundred lines long with
dates ranging from 07 through the present and I'd like to make a grid and add
them all together.


--
DMM


"Jacob Skaria" wrote:

Try the below to retrive the sum for Jan 08 (01/08)

=SUMPRODUCT(--(TEXT(B1:B10,"mm/yy")="01/08"),A1:A10)

If this post helps click Yes
---------------
Jacob Skaria


"soconfused" wrote:

I have a spreadsheet that looks something like this:

1 01/02/08
.2 01/06/08
.8 12/15/08
15 02/07/09
1.7 02/22/09
10 05/06/09

I want to add the first column (which is hours), but I need them added by
mm/yy.

Thanks,

--
DMM

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How do I sum columns separating out the dates

Create a list of dates and custom format it to display mmm-yyyy to look like
below...
Then use the below formula in H1 and copy down as required

=SUMPRODUCT(--(TEXT($B$1:$B$100,"mmyy")=TEXT(G1,"mmyy")),$A$1:$A $100)


Col G Col H
Jan-2007 =
Feb-2007 =
Mar-2007
Apr-2007
May-2007
Jun-2007
Jul-2007
Aug-2007
Sep-2007
Oct-2007

If this post helps click Yes
---------------
Jacob Skaria


"soconfused" wrote:

That helped a bit, but my spread sheet is a couple hundred lines long with
dates ranging from 07 through the present and I'd like to make a grid and add
them all together.


--
DMM


"Jacob Skaria" wrote:

Try the below to retrive the sum for Jan 08 (01/08)

=SUMPRODUCT(--(TEXT(B1:B10,"mm/yy")="01/08"),A1:A10)

If this post helps click Yes
---------------
Jacob Skaria


"soconfused" wrote:

I have a spreadsheet that looks something like this:

1 01/02/08
.2 01/06/08
.8 12/15/08
15 02/07/09
1.7 02/22/09
10 05/06/09

I want to add the first column (which is hours), but I need them added by
mm/yy.

Thanks,

--
DMM

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default How do I sum columns separating out the dates

Hi,

you could use a pivot table here. Drag dates to the row area and hours to
the data area. Now go to any cell in the date columns (of the pivot table)
and on the pivot table, go to Pivot table Group and Outline Group. The
group box will come up and here you can select months and years.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"soconfused" wrote in message
...
I have a spreadsheet that looks something like this:

1 01/02/08
.2 01/06/08
.8 12/15/08
15 02/07/09
1.7 02/22/09
10 05/06/09

I want to add the first column (which is hours), but I need them added by
mm/yy.

Thanks,

--
DMM




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
separating out data in columns kas Excel Discussion (Misc queries) 2 March 19th 09 03:59 PM
Separating dates from one column to Month, Date, Year columns frogstyle Excel Discussion (Misc queries) 2 August 6th 08 04:13 PM
separating data in columns tee Excel Worksheet Functions 2 October 27th 06 01:59 PM
Separating a name into first name and last name columns THEFALLGUY Excel Discussion (Misc queries) 2 September 7th 05 01:16 AM
Separating a name into first name and last name columns THEFALLGUY Excel Discussion (Misc queries) 0 September 7th 05 01:06 AM


All times are GMT +1. The time now is 05:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"