ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sum data between 2 dates ie 01Jun-30Jun (https://www.excelbanter.com/excel-discussion-misc-queries/99443-sum-data-between-2-dates-ie-01jun-30jun.html)

PamelaJ

Sum data between 2 dates ie 01Jun-30Jun
 

I'm trying to sum information on another worksheet.

01-Jun in column a and 15 in column b
25-Jun in column a and 20 in column b
01-Aug in column a and 30 in column b

to give me total for Jun in another worksheet with a total value of 35
(ie adding just the month of June

Can anyone help?


--
PamelaJ
------------------------------------------------------------------------
PamelaJ's Profile: http://www.excelforum.com/member.php...o&userid=36387
View this thread: http://www.excelforum.com/showthread...hreadid=561701


Bondi

Sum data between 2 dates ie 01Jun-30Jun
 

PamelaJ wrote:
I'm trying to sum information on another worksheet.

01-Jun in column a and 15 in column b
25-Jun in column a and 20 in column b
01-Aug in column a and 30 in column b

to give me total for Jun in another worksheet with a total value of 35
(ie adding just the month of June

Can anyone help?


--
PamelaJ
------------------------------------------------------------------------
PamelaJ's Profile: http://www.excelforum.com/member.php...o&userid=36387
View this thread: http://www.excelforum.com/showthread...hreadid=561701


Hi Pamela,

Maybe you can use SUMPRODUCT() Something along the lines of:

=SUMPRODUCT(--(MONTH(A1:A3)=6),B1:B3)

Asuming here that the Dates are in A1:A3 and numbers in B1:B3.
Jou can just modify the range to your needs.
The 6 is for June and you can just alter that aswell to fit your needs.

Regards,
Bondi


David

Sum data between 2 dates ie 01Jun-30Jun
 
An alternative would be to split the date so you have say: -

Row Column A Column B
1 2 June
2 24 June
3 13 April

You could then use SUMIF. Using the example above you would use the
following formula: -

=SUMIF(1B:3B,"June",1A:3A)

To explain the above: -

The formula first of all searches 1B:3B

The second part "June" is what it looks to find in the range 1B:3B

The final bit 1A:3A is the list of values and it calculates the sum of the
corresponding cells where it finds "June" or whatever criteria you set.

I hope that this helps.


--
David


"PamelaJ" wrote:


I'm trying to sum information on another worksheet.

01-Jun in column a and 15 in column b
25-Jun in column a and 20 in column b
01-Aug in column a and 30 in column b

to give me total for Jun in another worksheet with a total value of 35
(ie adding just the month of June

Can anyone help?


--
PamelaJ
------------------------------------------------------------------------
PamelaJ's Profile: http://www.excelforum.com/member.php...o&userid=36387
View this thread: http://www.excelforum.com/showthread...hreadid=561701



PamelaJ

Sum data between 2 dates ie 01Jun-30Jun
 

=SUMPRODUCT(--(MONTH('Month 4 July 06-07'!C$8:C$124)=6),'Month 4 July
06-07'!D$8:D$124)

This Gives me monthly summary totals
June, July .....May for the 12 months.

This is where I was finally going
Column A
=IF(MONTH('Month 4 July 06-07'!$C8)=B$2,'Month 4 July 06-07'!$A8,0)
Column B
=IF(MONTH('Month 4 July 06-07'!$C8)=+B$2,'Month 4 July 06-07'!$D8,0)


C8 is date in formate 01/06/06 etc
A8 is Code Number
D8 is Value

This gave me the Product Code and the quantity completed in month
detail.

I then copied down to C9, A9, D9 etc then sum total at bottom, month by
month for 12 months in columns C,D etc.. etc..

Thanks Bondi, I will definitely be back to this site, sat up until 3am
this morning trying to figure this one out.


--
PamelaJ
------------------------------------------------------------------------
PamelaJ's Profile: http://www.excelforum.com/member.php...o&userid=36387
View this thread: http://www.excelforum.com/showthread...hreadid=561701


PamelaJ

Sum data between 2 dates ie 01Jun-30Jun
 

Thanks for the post David, it's a much simpler version, but
unfortunately I'm using another persons file, exported from a system
and there is too much data to amend. However, will utilize that when
creating my own files.
Thanks again for response.
PamelaJ


--
PamelaJ
------------------------------------------------------------------------
PamelaJ's Profile: http://www.excelforum.com/member.php...o&userid=36387
View this thread: http://www.excelforum.com/showthread...hreadid=561701



All times are GMT +1. The time now is 08:22 AM.

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