Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Match function...random search? | Excel Worksheet Functions | |||
Copy cell format to cell on another worksht and update automatical | Excel Worksheet Functions | |||
Reveal cell formats and extendable range in tool/statusbar/icon. | Excel Worksheet Functions | |||
Counting spefic cell (not a range) with a value greater than 1 | Excel Discussion (Misc queries) | |||
Adding contents of one cell to a range of cells. | Excel Worksheet Functions |