Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default countif with two sets of non consectutive ranges at the same time

I need to count how many times 10 appears in a row. but the row has been
split up. the data is in a1:f1 then more in m1:z1. the countif function
will not let me have more than one consectuive stretch for its range.

any suggestions

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default countif with two sets of non consectutive ranges at the same time

So issue separate COUNTIFs for each range.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Gover" wrote in message
...
I need to count how many times 10 appears in a row. but the row has been
split up. the data is in a1:f1 then more in m1:z1. the countif function
will not let me have more than one consectuive stretch for its range.

any suggestions



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default countif with two sets of non consectutive ranges at the same time

On Sep 13, 8:46 am, Gover wrote:
I need to count how many times 10 appears in a row. but the row has been
split up. the data is in a1:f1 then more in m1:z1. the countif function
will not let me have more than one consectuive stretch for its range.

any suggestions


And why doesn't the union reference operator work in this context?

=COUNTIF((A1:F1,M1:Z1),"=10")


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default countif with two sets of non consectutive ranges at the same t

i tried this and in fact copied your formula, but the result gave me a value
error.

i infact got around it by two sepaerate countif and +'d then together to
give my result
but thanks anyway

"joeu2004" wrote:

On Sep 13, 8:46 am, Gover wrote:
I need to count how many times 10 appears in a row. but the row has been
split up. the data is in a1:f1 then more in m1:z1. the countif function
will not let me have more than one consectuive stretch for its range.

any suggestions


And why doesn't the union reference operator work in this context?

=COUNTIF((A1:F1,M1:Z1),"=10")



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default countif with two sets of non consectutive ranges at the same t

On Sep 14, 2:56 am, Gover wrote:
"joeu2004" wrote:
And why doesn't the union reference operator work in this context?
=COUNTIF((A1:F1,M1:Z1),"=10")- Hide quoted text -


i tried this and in fact copied your formula, but the result gave me a value
error.


Yes, I know. That's why I asked the question. But now I see the
ambiguity of my phrasing in this context. You might have read it as a
sarcastic way of asking why that does not work for __you__ -- that is,
why you don't use that solution. That was not my intention. Sorry
for the confusion.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default countif with two sets of non consectutive ranges at the same time

=COUNTIF(A1:F1,10)+COUNTIF(M1:Z1,10)
--
David Biddulph

"Gover" wrote in message
...
I need to count how many times 10 appears in a row. but the row has been
split up. the data is in a1:f1 then more in m1:z1. the countif function
will not let me have more than one consectuive stretch for its range.

any suggestions



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default countif with two sets of non consectutive ranges at the same t

this worked, i was trying to be too clever i suppose by trying to do them
together rather than two seperate countif's
thanks

"David Biddulph" wrote:

=COUNTIF(A1:F1,10)+COUNTIF(M1:Z1,10)
--
David Biddulph

"Gover" wrote in message
...
I need to count how many times 10 appears in a row. but the row has been
split up. the data is in a1:f1 then more in m1:z1. the countif function
will not let me have more than one consectuive stretch for its range.

any suggestions




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default countif with two sets of non consectutive ranges at the same time

If you have XL-2007
use COUNTIFS function. It's more elegant than COUNTIF(rng1)+COUNTIF(rng2)

"Gover" wrote:

I need to count how many times 10 appears in a row. but the row has been
split up. the data is in a1:f1 then more in m1:z1. the countif function
will not let me have more than one consectuive stretch for its range.

any suggestions

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default countif with two sets of non consectutive ranges at the same t

sorry only have 2003 - but thanks anyway

"Teethless mama" wrote:

If you have XL-2007
use COUNTIFS function. It's more elegant than COUNTIF(rng1)+COUNTIF(rng2)

"Gover" wrote:

I need to count how many times 10 appears in a row. but the row has been
split up. the data is in a1:f1 then more in m1:z1. the countif function
will not let me have more than one consectuive stretch for its range.

any suggestions

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
Comparign two sets of time schedules to fidn best matches Sean Timmons Excel Worksheet Functions 0 December 19th 06 01:01 AM
Two Sets of Time Data - One Chart lmeg Charts and Charting in Excel 0 August 7th 06 12:10 PM
countif with non-continous ranges Debbie Excel Worksheet Functions 7 May 10th 06 09:00 PM
Countif between ranges BSantos Excel Discussion (Misc queries) 1 February 15th 06 05:52 PM
how do i import multiple data sets at one time? chris_rip Excel Discussion (Misc queries) 3 June 22nd 05 04:27 AM


All times are GMT +1. The time now is 04:35 PM.

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

About Us

"It's about Microsoft Excel"