Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Calculating montlhy totals using sumproduct (or other)

Hi there!

I have been looking in past post, and not finding the solution to what
I am trying to do.

Here is an example of the entry sheet I am trying to look into;
I have remove some extra colomns
Colom A formatted as a date format, entering data as dd-mm-year and
shown as in example

A H
1 DATE
2 may 2, 2006
3 =SUM(F2:F4)
4
5 may 3, 2006 =F5
6 May 4, 2006
7 =sum(F6:F7)
8 May 8, 2006 =F8
..
..
20 June 1, 2006
21 =sum(F20:F21)
22 june 2, 2006 =F22

So basically I enter some amount each day, some time more then once and
make a summary of it in the H colomn.

Now in another cell, I want to calculate the total for the individual
months.
I have been trying to use the formula
=SUMPRODUCT((MONTH(A2:A22)=6),H2:H22)
for the total of June, but keep getting a #VALUE error.

What am I doing wrong, or is there another for me to accomplish what I
am trying to do?
Should I be adding on each row the date instead of leaving blanks?
(tried but same result)

Thanks in advance for any help, tip and pointers to help me solve this.

Serge

  #2   Report Post  
Posted to microsoft.public.excel.misc
Marcelo
 
Posts: n/a
Default Calculating montlhy totals using sumproduct (or other)

Hi,

try it

=SUMPRODUCT(--(MONTH(A2:A22)=6)*(H2:H22))

hope this helps
Regards from Brazil
Marcelo

" escreveu:

Hi there!

I have been looking in past post, and not finding the solution to what
I am trying to do.

Here is an example of the entry sheet I am trying to look into;
I have remove some extra colomns
Colom A formatted as a date format, entering data as dd-mm-year and
shown as in example

A H
1 DATE
2 may 2, 2006
3 =SUM(F2:F4)
4
5 may 3, 2006 =F5
6 May 4, 2006
7 =sum(F6:F7)
8 May 8, 2006 =F8
..
..
20 June 1, 2006
21 =sum(F20:F21)
22 june 2, 2006 =F22

So basically I enter some amount each day, some time more then once and
make a summary of it in the H colomn.

Now in another cell, I want to calculate the total for the individual
months.
I have been trying to use the formula
=SUMPRODUCT((MONTH(A2:A22)=6),H2:H22)
for the total of June, but keep getting a #VALUE error.

What am I doing wrong, or is there another for me to accomplish what I
am trying to do?
Should I be adding on each row the date instead of leaving blanks?
(tried but same result)

Thanks in advance for any help, tip and pointers to help me solve this.

Serge


  #3   Report Post  
Posted to microsoft.public.excel.misc
Serge Ayotte
 
Posts: n/a
Default Calculating montlhy totals using sumproduct (or other)

Thank you Marcelo!

After playing around another hour or so, I got it working, but I had to
add the date of every line which I skipped when having multiple entry
the same date!

Again a BIG thank you.

My regard from qauebec, Canada!
Serge

Marcelo wrote:
Hi,

try it

=SUMPRODUCT(--(MONTH(A2:A22)=6)*(H2:H22))

hope this helps
Regards from Brazil
Marcelo

" escreveu:

Hi there!

I have been looking in past post, and not finding the solution to what
I am trying to do.

Here is an example of the entry sheet I am trying to look into;
I have remove some extra colomns
Colom A formatted as a date format, entering data as dd-mm-year and
shown as in example

A H
1 DATE
2 may 2, 2006
3 =SUM(F2:F4)
4
5 may 3, 2006 =F5
6 May 4, 2006
7 =sum(F6:F7)
8 May 8, 2006 =F8
..
..
20 June 1, 2006
21 =sum(F20:F21)
22 june 2, 2006 =F22

So basically I enter some amount each day, some time more then once and
make a summary of it in the H colomn.

Now in another cell, I want to calculate the total for the individual
months.
I have been trying to use the formula
=SUMPRODUCT((MONTH(A2:A22)=6),H2:H22)
for the total of June, but keep getting a #VALUE error.

What am I doing wrong, or is there another for me to accomplish what I
am trying to do?
Should I be adding on each row the date instead of leaving blanks?
(tried but same result)

Thanks in advance for any help, tip and pointers to help me solve this.

Serge



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
Calculating monthly totals Pieman Excel Worksheet Functions 10 February 26th 06 04:55 PM
Calculating monthly totals for current and previous year Pieman New Users to Excel 1 February 26th 06 12:43 PM
Pivot Table Calculating totals differently esparzaone Excel Discussion (Misc queries) 1 February 22nd 06 01:01 AM
Calculating difference on Pivot Table Totals PSM Excel Discussion (Misc queries) 0 January 13th 06 03:37 AM
Calculating totals Blissfully Ignorant Excel Discussion (Misc queries) 1 December 6th 05 04:03 PM


All times are GMT +1. The time now is 01:02 PM.

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"