#1   Report Post  
Steve
 
Posts: n/a
Default Defining Ranges

I need to use non consequetive cells for a "=COUNTIF" formula.... for
example, in cell Z6.... I want to "countif" the following cells C6, F6,
I6..... How do I do that?

Thanks,

Steve
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

What do yoiu want to count? Numbers or textstrings?
If numbers there is a solution

=SUMPRODUCT(--(LARGE((B1:B4,D1:E4,G1:G4),ROW(INDIRECT("1:"&COUNT (B1:B4,D1:E4,G1:G4))))5))

will count cells greater than 5, you can also name the non continguous cells
and use

=SUMPRODUCT(--(LARGE(MyRange,ROW(INDIRECT("1:"&COUNT(MyRange)))) 5))



Regards,

Peo Sjoblom




"Steve" wrote:

I need to use non consequetive cells for a "=COUNTIF" formula.... for
example, in cell Z6.... I want to "countif" the following cells C6, F6,
I6..... How do I do that?

Thanks,

Steve

  #3   Report Post  
Steve
 
Posts: n/a
Default

Peo,

I want to count "y's" in these cells (I want to assign a value of 1 to a "Y"
response). So in the cells I am having people fill in either Y or N and I
want to be able to convert the Y to a 1 and add it up. The problem is that
the cells I am tabulating are non continguous....

Thanks for your input,

Steve

"Peo Sjoblom" wrote:

What do yoiu want to count? Numbers or textstrings?
If numbers there is a solution

=SUMPRODUCT(--(LARGE((B1:B4,D1:E4,G1:G4),ROW(INDIRECT("1:"&COUNT (B1:B4,D1:E4,G1:G4))))5))

will count cells greater than 5, you can also name the non continguous cells
and use

=SUMPRODUCT(--(LARGE(MyRange,ROW(INDIRECT("1:"&COUNT(MyRange)))) 5))



Regards,

Peo Sjoblom




"Steve" wrote:

I need to use non consequetive cells for a "=COUNTIF" formula.... for
example, in cell Z6.... I want to "countif" the following cells C6, F6,
I6..... How do I do that?

Thanks,

Steve

  #4   Report Post  
Ashish Mathur
 
Posts: n/a
Default

Hi,

You may want to use the DCOUNTA function. Please refer to the help menu for
this function. It is well explained there

Regards,

"Steve" wrote:

I need to use non consequetive cells for a "=COUNTIF" formula.... for
example, in cell Z6.... I want to "countif" the following cells C6, F6,
I6..... How do I do that?

Thanks,

Steve

  #5   Report Post  
Steve
 
Posts: n/a
Default

Thank you

"Ashish Mathur" wrote:

Hi,

You may want to use the DCOUNTA function. Please refer to the help menu for
this function. It is well explained there

Regards,

"Steve" wrote:

I need to use non consequetive cells for a "=COUNTIF" formula.... for
example, in cell Z6.... I want to "countif" the following cells C6, F6,
I6..... How do I do that?

Thanks,

Steve



  #6   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Steve wrote:
I need to use non consequetive cells for a "=COUNTIF" formula.... for
example, in cell Z6.... I want to "countif" the following cells C6, F6,
I6..... How do I do that?

Thanks,

Steve


If it involves every third in say B6:Y6...

Z6:

=SUMPRODUCT(--(MOD(COLUMN(B6:Y6)-ROW(B6)+0,3)=0),--(B6:Y6="y"))

would count "y" in B6:Y6 in the relevant cells.
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
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM
Indirect and dynamic ranges Sam Excel Worksheet Functions 3 January 24th 05 07:01 AM
Problem with graph ranges No Such Luck Charts and Charting in Excel 6 December 3rd 04 01:09 PM
compare unique identifiers in multiple ranges bawilli_91125 Charts and Charting in Excel 1 November 30th 04 06:34 PM
Named dynamic ranges, copied worksheets and graph source data WP Charts and Charting in Excel 1 November 28th 04 05:19 PM


All times are GMT +1. The time now is 10:04 AM.

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"