Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default counting and sumproduct formulas


I am attempting to count non-blank cells in one column that have to mee
criteria from another column. I have played with the sumproduc
function but to no avail....can someone assist?

Example following:
Column A represents the Month and Year and Column B represents Cost
incurred. I want to count the number of times a Cost was incurre
during the specific Month/Year. When a cost is not incurred, the cel
remains blank.

Column A Column B
01/2004
01/2004 $25.00

01/2004
02/2004 $15.00
02/2004 $20.00
02/2004

If the formula works correctly, my results would show
01/2004 1
02/2004 2

Please let me know if you have any ideas! :)
Thanks.............

--
samiam
-----------------------------------------------------------------------
samiam1's Profile: http://www.excelforum.com/member.php...fo&userid=2874
View this thread: http://www.excelforum.com/showthread.php?threadid=48433

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default counting and sumproduct formulas


Why not take a look at the sub-total function from the Data Menu - it allows
a summary by your date(key) field and a sum, count etc for the data

--
Cheers
Nigel



"samiam1" wrote in
message ...

I am attempting to count non-blank cells in one column that have to meet
criteria from another column. I have played with the sumproduct
function but to no avail....can someone assist?

Example following:
Column A represents the Month and Year and Column B represents Costs
incurred. I want to count the number of times a Cost was incurred
during the specific Month/Year. When a cost is not incurred, the cell
remains blank.

Column A Column B
01/2004
01/2004 $25.00

01/2004
02/2004 $15.00
02/2004 $20.00
02/2004

If the formula works correctly, my results would show
01/2004 1
02/2004 2

Please let me know if you have any ideas! :)
Thanks..............


--
samiam1
------------------------------------------------------------------------
samiam1's Profile:

http://www.excelforum.com/member.php...o&userid=28741
View this thread: http://www.excelforum.com/showthread...hreadid=484338



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default counting and sumproduct formulas

=sumproduct(-(Month(A1:A30)=1),-(Year(A1:A30)=2004),--(B1:B30<"")

--
Regards,
Tom Ogilvy


"samiam1" wrote in
message ...

I am attempting to count non-blank cells in one column that have to meet
criteria from another column. I have played with the sumproduct
function but to no avail....can someone assist?

Example following:
Column A represents the Month and Year and Column B represents Costs
incurred. I want to count the number of times a Cost was incurred
during the specific Month/Year. When a cost is not incurred, the cell
remains blank.

Column A Column B
01/2004
01/2004 $25.00

01/2004
02/2004 $15.00
02/2004 $20.00
02/2004

If the formula works correctly, my results would show
01/2004 1
02/2004 2

Please let me know if you have any ideas! :)
Thanks..............


--
samiam1
------------------------------------------------------------------------
samiam1's Profile:

http://www.excelforum.com/member.php...o&userid=28741
View this thread: http://www.excelforum.com/showthread...hreadid=484338



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default counting and sumproduct formulas


I am attempting to have this tally as new information is
entered-foregoing having to manually sort & subtotal. I may be forced
to do so manually, but wanted to explore all options prior to
submitting to manual work.


--
samiam1
------------------------------------------------------------------------
samiam1's Profile: http://www.excelforum.com/member.php...o&userid=28741
View this thread: http://www.excelforum.com/showthread...hreadid=484338

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default counting and sumproduct formulas


I appreciate all of your help! I was able to figure it out.....Thank
again
Samiam

--
samiam
-----------------------------------------------------------------------
samiam1's Profile: http://www.excelforum.com/member.php...fo&userid=2874
View this thread: http://www.excelforum.com/showthread.php?threadid=48433



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default counting and sumproduct formulas

Is the Month and year true dates or just text? If dates use

=SUMPRODUCT(--(A1:A100-DAY(A1:A100)+1=--"2004-01-01"),--(NOT(ISBLANK(B1:B100
))),B1:B100)

if it is text then use

=SUMPRODUCT(--(A1:A100="01/2004"),--(NOT(ISBLANK(B1:B100))),B1:B100)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"samiam1" wrote in
message ...

I am attempting to count non-blank cells in one column that have to meet
criteria from another column. I have played with the sumproduct
function but to no avail....can someone assist?

Example following:
Column A represents the Month and Year and Column B represents Costs
incurred. I want to count the number of times a Cost was incurred
during the specific Month/Year. When a cost is not incurred, the cell
remains blank.

Column A Column B
01/2004
01/2004 $25.00

01/2004
02/2004 $15.00
02/2004 $20.00
02/2004

If the formula works correctly, my results would show
01/2004 1
02/2004 2

Please let me know if you have any ideas! :)
Thanks..............


--
samiam1
------------------------------------------------------------------------
samiam1's Profile:

http://www.excelforum.com/member.php...o&userid=28741
View this thread: http://www.excelforum.com/showthread...hreadid=484338



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
Counting # of Formulas in a column with formulas and entered data Brand Excel Worksheet Functions 1 October 10th 09 01:01 PM
counting multiple criteria using SUMPRODUCT and getting #VALUE err lawandgrace Excel Discussion (Misc queries) 1 August 14th 09 05:38 PM
counting dates using SUMPRODUCT Marge Excel Discussion (Misc queries) 4 July 29th 09 02:00 PM
Adding a counting function within SumProduct PBB Excel Worksheet Functions 2 June 20th 08 03:41 PM
Counting non blanks with SUMPRODUCT? Mifty Excel Discussion (Misc queries) 4 February 7th 08 01:00 PM


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