#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chris Morley
 
Posts: n/a
Default countif criteria

Please some one help. i need to count cells over 2 colomns only if those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have tried
using a countif formula and i am sure this was used before with a equal to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default countif criteria

sounds like another one for SUMPRODUCT - except it will need a defined
range -

=sumproduct(--(k1:K100="Yes"),--(l1:l100="Yes"))

Chris Morley wrote:
Please some one help. i need to count cells over 2 colomns only if those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have tried
using a countif formula and i am sure this was used before with a equal to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default countif criteria

As well as sumproduct, you could simply use

=countif(K:L="Yes")

(I've ignored the sheet1 as it's less typing for me that way!)

Chris Morley wrote:
Please some one help. i need to count cells over 2 colomns only if those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have tried
using a countif formula and i am sure this was used before with a equal to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default countif criteria

Countif does not work over disjoint ranges. You can use either:

=COUNTIF(Sheet1!I:K,"yes")
or
=COUNTIF(Sheet1!I:I,"yes")+COUNTIF(Sheet1!K:K,"yes ")

--
Gary's Student


"Chris Morley" wrote:

Please some one help. i need to count cells over 2 colomns only if those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have tried
using a countif formula and i am sure this was used before with a equal to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default countif criteria

Agreed, I read it as columns K and L which aren't disjointed, and
therefore works
Gary''s Student wrote:
Countif does not work over disjoint ranges. You can use either:

=COUNTIF(Sheet1!I:K,"yes")
or
=COUNTIF(Sheet1!I:I,"yes")+COUNTIF(Sheet1!K:K,"yes ")

--
Gary's Student


"Chris Morley" wrote:

Please some one help. i need to count cells over 2 colomns only if those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have tried
using a countif formula and i am sure this was used before with a equal to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vener
 
Posts: n/a
Default countif criteria


Chris Morley Wrote:
Please some one help. i need to count cells over 2 colomns only if
those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have
tried
using a countif formula and i am sure this was used before with a equal
to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i
know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K



try this
=countif(K:I,"yes")


--
vener
------------------------------------------------------------------------
vener's Profile: http://www.excelforum.com/member.php...o&userid=35486
View this thread: http://www.excelforum.com/showthread...hreadid=552588

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default countif criteria

This is a deficency of the font:

IlIlIlIlIl

appears to be a string of identical characters in Arial, but not Verdana.
--
Gary''s Student


" wrote:

Agreed, I read it as columns K and L which aren't disjointed, and
therefore works
Gary''s Student wrote:
Countif does not work over disjoint ranges. You can use either:

=COUNTIF(Sheet1!I:K,"yes")
or
=COUNTIF(Sheet1!I:I,"yes")+COUNTIF(Sheet1!K:K,"yes ")

--
Gary's Student


"Chris Morley" wrote:

Please some one help. i need to count cells over 2 colomns only if those
colomns contain yes.

col 1 col 2
yes no
yes yes
yes no

The formula i need, i have used before but lost...! typical. I have tried
using a countif formula and i am sure this was used before with a equal to

=COUNTIF(Sheet1!K:K,Sheet1!I:I="yes") this returns a valye of 0 and i know
that it shoule have counted 6. can any one help

Chris

i have tried =countif(K:K



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
COUNTIF statement with 3 criteria checks Malvaro Excel Discussion (Misc queries) 4 June 4th 06 11:40 PM
COUNTIF with two criteria Boran Düzgün Excel Worksheet Functions 3 March 7th 06 10:43 PM
Countif w/ Multiple Criteria Patrick_KC Excel Worksheet Functions 2 August 9th 05 09:25 PM
Countif using format criteria....not number criteria? Troy Excel Worksheet Functions 1 April 20th 05 04:50 AM
counting cells (COUNTIF) based on two or more criteria Tricia S. Excel Worksheet Functions 10 March 17th 05 02:17 PM


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