Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mmay321
 
Posts: n/a
Default counting a cell range within a range


i want to count how many cells within the range determined in the
following formula also have the value "x" in the range D2:D3000:

=SUMPRODUCT(--(MONTH(log!$A$2:$A$3000)=7),--(YEAR(log!$A$2:$A$3000)=2005))

i then want to subtract that number from the number determined by the
previous formula.

thanks!


--
mmay321
------------------------------------------------------------------------
mmay321's Profile: http://www.excelforum.com/member.php...o&userid=25492
View this thread: http://www.excelforum.com/showthread...hreadid=394364

  #2   Report Post  
David Billigmeier
 
Posts: n/a
Default

You just add in another condition to SUMPRODUCT:

=SUMPRODUCT(--(MONTH(log!$A$2:$A$3000)=7),--(YEAR(log!$A$2:$A$3000)=2005),--($D$2:$D$3000="x"))

I assume you can get the rest.


--
David Billigmeier


"mmay321" wrote:


i want to count how many cells within the range determined in the
following formula also have the value "x" in the range D2:D3000:

=SUMPRODUCT(--(MONTH(log!$A$2:$A$3000)=7),--(YEAR(log!$A$2:$A$3000)=2005))

i then want to subtract that number from the number determined by the
previous formula.

thanks!


--
mmay321
------------------------------------------------------------------------
mmay321's Profile: http://www.excelforum.com/member.php...o&userid=25492
View this thread: http://www.excelforum.com/showthread...hreadid=394364


  #3   Report Post  
mmay321
 
Posts: n/a
Default


i entered the formula:

=SUMPRODUCT(--(MONTH(log!$A$2:$A$3000)=7),--(YEAR(log!$A$2:$A$3000)=2005),--($D$2:$D$3000="x"))

and it yields the following:
1/0/1900 0:00


i don't know what that means!


--
mmay321
------------------------------------------------------------------------
mmay321's Profile: http://www.excelforum.com/member.php...o&userid=25492
View this thread: http://www.excelforum.com/showthread...hreadid=394364

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
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Reveal cell formats and extendable range in tool/statusbar/icon. Danny O'Hern ([email protected]) Excel Worksheet Functions 0 April 29th 05 01:16 PM
Counting spefic cell (not a range) with a value greater than 1 mmock Excel Discussion (Misc queries) 5 April 27th 05 02:34 PM
Adding contents of one cell to a range of cells. CLJinVA Excel Worksheet Functions 1 February 10th 05 10:19 PM


All times are GMT +1. The time now is 07:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"