View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
pano[_2_] pano[_2_] is offline
external usenet poster
 
Posts: 4
Default Countif question how do I do this ?

On Apr 11, 12:36 am, Ron Coderre
wrote:
I posted a bit of a shortcut....the formula should automatically count
instances where same-row cells in Col_B and Col_O contain numbers.

Consequently, you wouldn't need to list it in Col_Z (if that's what you're
doing)
If this was the only activity:
Refs Col_B Col_O
Row_5 1 (blank)
Row_6 (blank) (blank)
Row_7 (blank) 3
Row_8 4 5
Row_9 9 8

The formula would return: 2 (OnlyRow 8 and 9 contain 2 number)

Is there a problem with the data? numeric text, possibly?

Try this test:
A5: =ISNUMBER(B5)
Copy that formula down through A40

The formula will return TRUE for every referenced cell that contains a number.
Repeat for O5:O40

Does that help?
***********
Regards,
Ron

XL2002, WinXP



"pano" wrote:
On Apr 11, 12:02 am, Ron Coderre
wrote:
Try something like this:


=SUMPRODUCT(ISNUMBER(B5:B40)*ISNUMBER(O5:O40))


Does that help?
***********
Regards,
Ron


XL2002, WinXP


"pano" wrote:
Hi everyone,
Help is needed.........


cells B5 to B40 may contain a number or be left blank--- cells O5 to
O40 may contain a number or be left blank.


I need to count the instances where a number appears in a cell B5 to
B40 and cells O5 to O40 example


cell B10 cell O10 cell z10
3 1 = 1 instance


cell B15 cell O15
7 1 = 1
instance so total would be 2 instances of criteria met.


Hope this is clear to someone who could help me with this.


Thanks in advance......- Hide quoted text -


- Show quoted text -

Ron thanks for the input but no it does not count the instances for me
when I put your formula in it just comes up blank- Hide quoted text -


- Show quoted text -


Ok Ron I tried your formula on a new blank sheet and yes it works so I
dont understand why it wont work on my workbook. I ran your test
B5:B40 came up false in all cells and O5:O40 came up true in all
cells---O5:O40 does have a formula in each cell which is as follows
=(COUNTIF(COUNT!C42:C72,J5)0)+0 whereas B5 to B40 the user has to
enter a number.

Awaiting your further advice to helpo solve this if indeed it can be??