Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JM JM is offline
external usenet poster
 
Posts: 37
Default Count and/or sum data within a date span.

Need help with this function - cannot get it to work.
All records in the file have a purchase transaction date and a purchase
amount. I want to, for example, get a count of all transactions for the
month of August 2007. I also want to total the amounts for that month. The
data in the DATE column is entered as "xx/xx/xxxx".
--
JM
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Count and/or sum data within a date span.

Since you didn't give any indication of ranges,
Say purchase date is in Column B, from B2 to B100,
Amounts are in Column C, from C2 to C100.

Since we don't want to have to change the formula every period, let's put
the date to start the search in D1, and the ending date of the search in D2.

Assume all dates are XL legal dates.

To count:
=Sumproduct((B2:B100=D1)*(B2:B100<=D2)*(C2:C100< ""))

To total:
=Sumproduct((B2:B100=D1)*(B2:B100<=D2)*C2:C100)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"JM" wrote in message
...
Need help with this function - cannot get it to work.
All records in the file have a purchase transaction date and a purchase
amount. I want to, for example, get a count of all transactions for the
month of August 2007. I also want to total the amounts for that month.
The
data in the DATE column is entered as "xx/xx/xxxx".
--
JM



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JM JM is offline
external usenet poster
 
Posts: 37
Default Count and/or sum data within a date span.

Thank you sooooo much!
--
JM


"RagDyer" wrote:

Since you didn't give any indication of ranges,
Say purchase date is in Column B, from B2 to B100,
Amounts are in Column C, from C2 to C100.

Since we don't want to have to change the formula every period, let's put
the date to start the search in D1, and the ending date of the search in D2.

Assume all dates are XL legal dates.

To count:
=Sumproduct((B2:B100=D1)*(B2:B100<=D2)*(C2:C100< ""))

To total:
=Sumproduct((B2:B100=D1)*(B2:B100<=D2)*C2:C100)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"JM" wrote in message
...
Need help with this function - cannot get it to work.
All records in the file have a purchase transaction date and a purchase
amount. I want to, for example, get a count of all transactions for the
month of August 2007. I also want to total the amounts for that month.
The
data in the DATE column is entered as "xx/xx/xxxx".
--
JM




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Count and/or sum data within a date span.

You're welcome, and thank you for the feed-back.
--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"JM" wrote in message
...
Thank you sooooo much!
--
JM


"RagDyer" wrote:

Since you didn't give any indication of ranges,
Say purchase date is in Column B, from B2 to B100,
Amounts are in Column C, from C2 to C100.

Since we don't want to have to change the formula every period, let's put
the date to start the search in D1, and the ending date of the search in
D2.

Assume all dates are XL legal dates.

To count:
=Sumproduct((B2:B100=D1)*(B2:B100<=D2)*(C2:C100< ""))

To total:
=Sumproduct((B2:B100=D1)*(B2:B100<=D2)*C2:C100)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"JM" wrote in message
...
Need help with this function - cannot get it to work.
All records in the file have a purchase transaction date and a purchase
amount. I want to, for example, get a count of all transactions for the
month of August 2007. I also want to total the amounts for that month.
The
data in the DATE column is entered as "xx/xx/xxxx".
--
JM






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Count and/or sum data within a date span.

Hi,

Needed this same formula, however, it works for "Count" but not for "Total."
My totals will be a dollar amounts. Please help.

=SUMPRODUCT((H8:H2000=AL1664)*(H8:H2000<=AL1665)* AJ8:AJ2000)



"RagDyer" wrote:

Since you didn't give any indication of ranges,
Say purchase date is in Column B, from B2 to B100,
Amounts are in Column C, from C2 to C100.

Since we don't want to have to change the formula every period, let's put
the date to start the search in D1, and the ending date of the search in D2.

Assume all dates are XL legal dates.

To count:
=Sumproduct((B2:B100=D1)*(B2:B100<=D2)*(C2:C100< ""))

To total:
=Sumproduct((B2:B100=D1)*(B2:B100<=D2)*C2:C100)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"JM" wrote in message
...
Need help with this function - cannot get it to work.
All records in the file have a purchase transaction date and a purchase
amount. I want to, for example, get a count of all transactions for the
month of August 2007. I also want to total the amounts for that month.
The
data in the DATE column is entered as "xx/xx/xxxx".
--
JM






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Count and/or sum data within a date span.

On May 4, 11:13 pm, roy.okinawa
wrote:
Hi,

Needed this same formula, however, it works for "Count" but not for "Total."
My totals will be a dollar amounts. Please help.

=SUMPRODUCT((H8:H2000=AL1664)*(H8:H2000<=AL1665)* AJ8:AJ2000)

"RagDyer" wrote:
Since you didn't give any indication of ranges,
Say purchase date is in Column B, from B2 to B100,
Amounts are in Column C, from C2 to C100.


Since we don't want to have to change the formula every period, let's put
the date to start the search in D1, and the ending date of the search in D2.


Assume all dates are XL legal dates.


To count:
=Sumproduct((B2:B100=D1)*(B2:B100<=D2)*(C2:C100< ""))


To total:
=Sumproduct((B2:B100=D1)*(B2:B100<=D2)*C2:C100)


--
HTH,


RD


---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------


"JM" wrote in message
...
Need help with this function - cannot get it to work.
All records in the file have a purchase transaction date and a purchase
amount. I want to, for example, get a count of all transactions for the
month of August 2007. I also want to total the amounts for that month.
The
data in the DATE column is entered as "xx/xx/xxxx".
--
JM


I think you just have to change the last asterisk (*) to a comma (,).
Assuming you are trying to SUM the AJ column.
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
count the mean in few date but on de date it has various data LinSeang Excel Worksheet Functions 1 June 30th 06 02:12 PM
Importing Text File Data into Excel where records span several row Razorback76 Excel Discussion (Misc queries) 2 June 25th 06 06:36 AM
Count/Sum data with date entries. KBW Excel Worksheet Functions 6 April 5th 06 07:32 PM
Count multiple data by date Racorfrank Excel Worksheet Functions 3 October 30th 05 04:11 AM
Count data entries and date problem Gef Excel Worksheet Functions 5 November 4th 04 02:30 PM


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