PC Review


Reply
Thread Tools Rate Thread

counting specific figures in cells dependant upon contents of adjacent cells

 
 
judoist
Guest
Posts: n/a
 
      15th Jun 2004
I have 3 columns. The first has single digits (0-9), the second ha
various numbers with x's and blank spaces in between, and the third ha
a 0,1 or 2 in it.

I am able to count the numer of blanks in column 2 every time a
appears in column 1 by using formula below...

=SUMPRODUCT(($A1:$F350=5)*($B1:$B350="X"))

... I'd like to introduce column 3 so that if a 0 is present, the "x
is not counted. If a 1 is present "x" is counted once and 2, "x" i
counted twice.

Any suggestions

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
 
 
 
judoist
Guest
Posts: n/a
 
      15th Jun 2004
Sorry ...

Meant ofcourse to say i am able to count the number of "x"s in column
using formula, not blanks

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
Andy B
Guest
Posts: n/a
 
      15th Jun 2004
Hi

I think your formula must have been posted wrongly. I reckon it should have
been:
=SUMPRODUCT(($A1:$A350=5)*($B1:$B350="X"))

To include the next column in the way you describe try this:
=SUMPRODUCT(($A1:$A350=5)*($B1:$B350="X")*($C1:$C350))

Hope this helps
--
Andy.


"judoist >" <<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have 3 columns. The first has single digits (0-9), the second has
> various numbers with x's and blank spaces in between, and the third has
> a 0,1 or 2 in it.
>
> I am able to count the numer of blanks in column 2 every time a 5
> appears in column 1 by using formula below...
>
> =SUMPRODUCT(($A1:$F350=5)*($B1:$B350="X"))
>
> .. I'd like to introduce column 3 so that if a 0 is present, the "x"
> is not counted. If a 1 is present "x" is counted once and 2, "x" is
> counted twice.
>
> Any suggestions?
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting contents of adjacent cells Rocky Microsoft Excel Misc 1 1st Jun 2010 02:01 AM
Complicated counting of cells (based on other cells contents) =?Utf-8?B?R2Vvcmdl?= Microsoft Excel Worksheet Functions 3 7th Nov 2005 06:39 PM
Delete specific cells contents in a row with some locked cells in the same row trussman Microsoft Excel Programming 2 1st Mar 2005 06:12 PM
adding figures in adjacent cells next to specified numbers judoist Microsoft Excel Discussion 5 14th Jun 2004 09:15 PM
Counting Cells dependant on data skyshadow Microsoft Excel Worksheet Functions 5 26th Jan 2004 12:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:16 PM.