Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default COUNTIF Non Contiguous Cells Q

I want to create a formula that will Count the number of times cells
is a range are greater than 1.

Ordinarly I would use the formula =COUNTIF(F$10:F$168,"0"), however
my range is non-contiguous, it is however relative, in that the cells
I wish to Count are always 3 apart.

So if I was to avoid having to long type a formula with all the ranges
I want to count, how would I do it?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default COUNTIF Non Contiguous Cells Q

Hi

=SUMPRODUCT(--(MOD(ROW(A1:A15),3)=1),--(A1:A150))

Will count if row 1,4,7,10, 13 if 0

Hopes this helps.
....
Per

"Seanie" skrev i meddelelsen
...
I want to create a formula that will Count the number of times cells
is a range are greater than 1.

Ordinarly I would use the formula =COUNTIF(F$10:F$168,"0"), however
my range is non-contiguous, it is however relative, in that the cells
I wish to Count are always 3 apart.

So if I was to avoid having to long type a formula with all the ranges
I want to count, how would I do it?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default COUNTIF Non Contiguous Cells Q

Thanks Per

I didn't quite get the result I was looking for but I modified "=1" to
"1" and I did

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default COUNTIF Non Contiguous Cells Q

You are welcome.

I am glad that you got the result you needed.

/Per

"Seanie" skrev i meddelelsen
...
Thanks Per

I didn't quite get the result I was looking for but I modified "=1" to
"1" and I did

Thanks


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
Non-contiguous cells Kokomojo Excel Discussion (Misc queries) 2 November 6th 07 04:09 PM
Subtotal Non-contiguous cells David N. Ballew Jr. Excel Discussion (Misc queries) 3 May 2nd 07 07:30 PM
counting cells that are 0 in a range of non-contiguous cells Mark Excel Worksheet Functions 9 March 14th 07 02:45 PM
How do I count non-contiguous cells? broush Excel Worksheet Functions 5 May 30th 06 11:16 PM
Linking Non-Contiguous cells Mike A Excel Discussion (Misc queries) 0 December 7th 04 03:47 AM


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