Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Renee - California
 
Posts: n/a
Default countif >0, specific cells

I need to count specific cells in a row. I had a similar formula to average
the same cells I am now trying to count:

=AVERAGE(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM13 0),Q13:IM13))

I tried tweaking this to count, but it's just not coming out with a valid
answer.

Any help would be appreciated.

Thanks!

Renee.
  #2   Report Post  
CLR
 
Posts: n/a
Default

If you are just wanting to count the number of cells in the range Q13:IM:13
that contain value larger than zero.........

=COUNTIF(Q13:IM13,"0")

Vaya con Dios,
Chuck, CABGx3


"Renee - California" wrote in
message ...
I need to count specific cells in a row. I had a similar formula to

average
the same cells I am now trying to count:

=AVERAGE(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM13 0),Q13:IM13))

I tried tweaking this to count, but it's just not coming out with a valid
answer.

Any help would be appreciated.

Thanks!

Renee.



  #3   Report Post  
Renee - California
 
Posts: n/a
Default

No, that's the problem, it's not that straight forward. I want to count Q13,
AA13, AK13... all the way to IM13.

The formula I used before indicates the start and end column, addressing
every 10th column, etc. but I can't recreate it just to do a count now.
YIKES!!!


"CLR" wrote:

If you are just wanting to count the number of cells in the range Q13:IM:13
that contain value larger than zero.........

=COUNTIF(Q13:IM13,"0")

Vaya con Dios,
Chuck, CABGx3


"Renee - California" wrote in
message ...
I need to count specific cells in a row. I had a similar formula to

average
the same cells I am now trying to count:

=AVERAGE(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM13 0),Q13:IM13))

I tried tweaking this to count, but it's just not coming out with a valid
answer.

Any help would be appreciated.

Thanks!

Renee.




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

For averaging...

{=AVERAGE(IF((MOD(COLUMN(Q13:IM13)-COLUMN(Q13)+0,10)=0)*(Q13:IM130),Q13:IM13))}

For counting...

=SUMPRODUCT(--(MOD(COLUMN(Q13:IM13)-COLUMN(Q13)+0,10)=0),--(Q13:IM130),--ISNUMBER(Q13:IM13))

Renee - California wrote:
I need to count specific cells in a row. I had a similar formula to average
the same cells I am now trying to count:

=AVERAGE(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM13 0),Q13:IM13))

I tried tweaking this to count, but it's just not coming out with a valid
answer.

Any help would be appreciated.

Thanks!

Renee.


--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
  #5   Report Post  
Ken Wright
 
Posts: n/a
Default

Just count you said - no criteria to fill other than being every "10th" Col
but starting with Q inclusive :-

=SUMPRODUCT(--(MOD(COLUMN($Q$13:$IM$13),10)=7))

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------

"Renee - California" wrote in
message ...
No, that's the problem, it's not that straight forward. I want to count
Q13,
AA13, AK13... all the way to IM13.

The formula I used before indicates the start and end column, addressing
every 10th column, etc. but I can't recreate it just to do a count now.
YIKES!!!


"CLR" wrote:

If you are just wanting to count the number of cells in the range
Q13:IM:13
that contain value larger than zero.........

=COUNTIF(Q13:IM13,"0")

Vaya con Dios,
Chuck, CABGx3


"Renee - California" wrote in
message ...
I need to count specific cells in a row. I had a similar formula to

average
the same cells I am now trying to count:

=AVERAGE(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM13 0),Q13:IM13))

I tried tweaking this to count, but it's just not coming out with a
valid
answer.

Any help would be appreciated.

Thanks!

Renee.








  #6   Report Post  
Ken Wright
 
Posts: n/a
Default

Juts realised your text doesn't tie with your title, so if it;s every 10th
where 0 then try

=SUMPRODUCT(--(MOD(COLUMN($Q$13:$IM$13),10)=7),--($Q$13:$IM$130))

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------

"Renee - California" wrote in
message ...
No, that's the problem, it's not that straight forward. I want to count
Q13,
AA13, AK13... all the way to IM13.

The formula I used before indicates the start and end column, addressing
every 10th column, etc. but I can't recreate it just to do a count now.
YIKES!!!


"CLR" wrote:

If you are just wanting to count the number of cells in the range
Q13:IM:13
that contain value larger than zero.........

=COUNTIF(Q13:IM13,"0")

Vaya con Dios,
Chuck, CABGx3


"Renee - California" wrote in
message ...
I need to count specific cells in a row. I had a similar formula to

average
the same cells I am now trying to count:

=AVERAGE(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM13 0),Q13:IM13))

I tried tweaking this to count, but it's just not coming out with a
valid
answer.

Any help would be appreciated.

Thanks!

Renee.






  #7   Report Post  
Conrad Carlberg
 
Posts: n/a
Default

Hi Renee,

I suspect you've tried this:

=COUNT(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM130 ),Q13:IM13))

array-entered, so if that's not working, might there be a non-numeric value
in one or more of the cells you're counting, such that COUNT would then
return an undercount? Specifically what formula are you using to get a
count, and what is it returning? An error value? An erroneous value?

--
C^2
Conrad Carlberg

Excel Sales Forecasting for Dummies, Wiley, 2005


"Renee - California" wrote in
message ...
No, that's the problem, it's not that straight forward. I want to count

Q13,
AA13, AK13... all the way to IM13.

The formula I used before indicates the start and end column, addressing
every 10th column, etc. but I can't recreate it just to do a count now.
YIKES!!!


"CLR" wrote:

If you are just wanting to count the number of cells in the range

Q13:IM:13
that contain value larger than zero.........

=COUNTIF(Q13:IM13,"0")

Vaya con Dios,
Chuck, CABGx3


"Renee - California" wrote

in
message ...
I need to count specific cells in a row. I had a similar formula to

average
the same cells I am now trying to count:

=AVERAGE(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM13 0),Q13:IM13))

I tried tweaking this to count, but it's just not coming out with a

valid
answer.

Any help would be appreciated.

Thanks!

Renee.






  #8   Report Post  
Renee - California
 
Posts: n/a
Default

Yes, I was using the same formula (except in this worksheet it was shifted
one to the left); and I was getting 0.

=COUNT(IF((MOD(COLUMN(R14:IN14),10)=7)*(R14:IN140 ),R14:IN14))

"Conrad Carlberg" wrote:

Hi Renee,

I suspect you've tried this:

=COUNT(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM130 ),Q13:IM13))

array-entered, so if that's not working, might there be a non-numeric value
in one or more of the cells you're counting, such that COUNT would then
return an undercount? Specifically what formula are you using to get a
count, and what is it returning? An error value? An erroneous value?

--
C^2
Conrad Carlberg

Excel Sales Forecasting for Dummies, Wiley, 2005


"Renee - California" wrote in
message ...
No, that's the problem, it's not that straight forward. I want to count

Q13,
AA13, AK13... all the way to IM13.

The formula I used before indicates the start and end column, addressing
every 10th column, etc. but I can't recreate it just to do a count now.
YIKES!!!


"CLR" wrote:

If you are just wanting to count the number of cells in the range

Q13:IM:13
that contain value larger than zero.........

=COUNTIF(Q13:IM13,"0")

Vaya con Dios,
Chuck, CABGx3


"Renee - California" wrote

in
message ...
I need to count specific cells in a row. I had a similar formula to
average
the same cells I am now trying to count:

=AVERAGE(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM13 0),Q13:IM13))

I tried tweaking this to count, but it's just not coming out with a

valid
answer.

Any help would be appreciated.

Thanks!

Renee.






  #9   Report Post  
Renee - California
 
Posts: n/a
Default

This is counting now, but it's returning a count of "1" only.

A little more insight on this project:

Each worksheet represents a territory.
Each territory can contain up to 24 customers;
The data collected for each customer is a list of all the items I have to
offer, the price that particular customer pays for the item, and the amount
of facings they have of each item. Not every customer picks up every item.

What I'm trying to count is how many customers in that territory actually
picked up any given item.

Any more ideas??? I really appreciate your help.

"Ken Wright" wrote:

Juts realised your text doesn't tie with your title, so if it;s every 10th
where 0 then try

=SUMPRODUCT(--(MOD(COLUMN($Q$13:$IM$13),10)=7),--($Q$13:$IM$130))

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------Â*------------------------------Â*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------Â*------------------------------Â*----------------

"Renee - California" wrote in
message ...
No, that's the problem, it's not that straight forward. I want to count
Q13,
AA13, AK13... all the way to IM13.

The formula I used before indicates the start and end column, addressing
every 10th column, etc. but I can't recreate it just to do a count now.
YIKES!!!


"CLR" wrote:

If you are just wanting to count the number of cells in the range
Q13:IM:13
that contain value larger than zero.........

=COUNTIF(Q13:IM13,"0")

Vaya con Dios,
Chuck, CABGx3


"Renee - California" wrote in
message ...
I need to count specific cells in a row. I had a similar formula to
average
the same cells I am now trying to count:

=AVERAGE(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM13 0),Q13:IM13))

I tried tweaking this to count, but it's just not coming out with a
valid
answer.

Any help would be appreciated.

Thanks!

Renee.






  #10   Report Post  
Renee - California
 
Posts: n/a
Default

THANK YOU, THANK YOU - THIS IS THE TICKET!!!! WOOHOO!!!!

"Aladin Akyurek" wrote:

For averaging...

{=AVERAGE(IF((MOD(COLUMN(Q13:IM13)-COLUMN(Q13)+0,10)=0)*(Q13:IM130),Q13:IM13))}

For counting...

=SUMPRODUCT(--(MOD(COLUMN(Q13:IM13)-COLUMN(Q13)+0,10)=0),--(Q13:IM130),--ISNUMBER(Q13:IM13))

Renee - California wrote:
I need to count specific cells in a row. I had a similar formula to average
the same cells I am now trying to count:

=AVERAGE(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM13 0),Q13:IM13))

I tried tweaking this to count, but it's just not coming out with a valid
answer.

Any help would be appreciated.

Thanks!

Renee.


--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.

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
How do I count cells beginning with specific letter? jay New Users to Excel 7 October 15th 08 06:25 PM
keep specific cells from being changed. bronsonbits Excel Discussion (Misc queries) 1 September 7th 05 06:44 PM
Can specific cells on a worksheet be hidden & password protected? Ann Excel Worksheet Functions 6 July 5th 05 09:08 PM
CountIF cells are not empty Wayne Excel Discussion (Misc queries) 3 January 6th 05 04:44 PM
How do I retrieve data (specific cells) from multiple worksheets on a shared drive jbean Excel Worksheet Functions 1 November 10th 04 09:26 PM


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