Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DJ Dusty
 
Posts: n/a
Default Totals based on dates


Hello! I have a spreadsheet where I want to total a column based on
entries being between two dates (I'm in the UK, so the date format is
DD/MM/YYYY).

My spreadsheet is as follows:

Column A contains the date of the transaction
Column B contains the type of the transaction
Column C contains an amount (*it is this column that I would like to
total*)

An example spreadsheet would be:

01/01/2005 Standard 25.00
15/01/2005 Advanced 110.00
01/02/2005 Standard 50.00
09/02/2005 Advanced 15.50
01/03/2005 Standard 2.00
01/04/2005 Standard 55.00
01/05/2005 Standard 43.00

I would like the total of column C whe

1) All entries are between 1st January and 31st March and are
"Standard" - answer above would be 77.00

2) All entries are between 1st January and 31st March and are
"Advanced" - answer above would be 125.50

I would be grateful for your help!


--
DJ Dusty
------------------------------------------------------------------------
DJ Dusty's Profile: http://www.excelforum.com/member.php...o&userid=16335
View this thread: http://www.excelforum.com/showthread...hreadid=314067

  #2   Report Post  
Domenic
 
Posts: n/a
Default


=SUMPRODUCT(--(A1:A7=DATE(2005,1,1)),--(A1:A7<=DATE(2005,3,31)),--(B1:B7="Standard"),C1:C7)

OR

=SUMPRODUCT(--(A1:A7=D1),--(A1:A7<=E1),--(B1:B7=F1),C1:C7)

...where D1 contains the start date, E1 the end date, and F1 the
transaction type.

Hope this helps!

DJ Dusty Wrote:
Hello! I have a spreadsheet where I want to total a column based on
entries being between two dates (I'm in the UK, so the date format is
DD/MM/YYYY).

My spreadsheet is as follows:

Column A contains the date of the transaction
Column B contains the type of the transaction
Column C contains an amount (*it is this column that I would like to
total*)

An example spreadsheet would be:

01/01/2005 Standard 25.00
15/01/2005 Advanced 110.00
01/02/2005 Standard 50.00
09/02/2005 Advanced 15.50
01/03/2005 Standard 2.00
01/04/2005 Standard 55.00
01/05/2005 Standard 43.00

I would like the total of column C whe

1) All entries are between 1st January and 31st March and are
"Standard" - answer above would be 77.00

2) All entries are between 1st January and 31st March and are
"Advanced" - answer above would be 125.50

I would be grateful for your help!



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=314067

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
How do I show summary totals from a pivot table on a bar chart Colleen T Charts and Charting in Excel 5 January 22nd 05 01:41 AM
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM
due dates Niki New Users to Excel 4 January 10th 05 04:11 PM
Entering dates in Excel 2002 DickG Excel Discussion (Misc queries) 3 January 9th 05 02:56 PM
I get wrong dates when i paste from a different sheet into a new s mmollat Excel Discussion (Misc queries) 2 January 6th 05 07:35 PM


All times are GMT +1. The time now is 05:47 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"