+ Reply to Thread
Results 1 to 10 of 10

countif >0, specific cells

  1. #1
    Renee - California
    Guest

    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. #2
    CLR
    Guest

    Re: countif >0, specific cells

    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" <ReneeCalifornia@discussions.microsoft.com> wrote in
    message news:2C972820-ABD0-4381-9EDD-64ADD2A703F9@microsoft.com...
    > 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. #3
    Renee - California
    Guest

    Re: countif >0, specific cells

    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" <ReneeCalifornia@discussions.microsoft.com> wrote in
    > message news:2C972820-ABD0-4381-9EDD-64ADD2A703F9@microsoft.com...
    > > 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. #4
    Aladin Akyurek
    Guest

    Re: countif >0, specific cells

    For averaging...

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

    For counting...

    =SUMPRODUCT(--(MOD(COLUMN(Q13:IM13)-COLUMN(Q13)+0,10)=0),--(Q13:IM13>0),--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. #5
    Ken Wright
    Guest

    Re: countif >0, specific cells

    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" <ReneeCalifornia@discussions.microsoft.com> wrote in
    message news:9E306592-C43C-4187-9494-D7ED9BEFBDEA@microsoft.com...
    > 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" <ReneeCalifornia@discussions.microsoft.com> wrote in
    >> message news:2C972820-ABD0-4381-9EDD-64ADD2A703F9@microsoft.com...
    >> > 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. #6
    Conrad Carlberg
    Guest

    Re: countif >0, specific cells

    Hi Renee,

    I suspect you've tried this:

    =COUNT(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM13>0),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" <ReneeCalifornia@discussions.microsoft.com> wrote in
    message news:9E306592-C43C-4187-9494-D7ED9BEFBDEA@microsoft.com...
    > 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" <ReneeCalifornia@discussions.microsoft.com> wrote

    in
    > > message news:2C972820-ABD0-4381-9EDD-64ADD2A703F9@microsoft.com...
    > > > 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. #7
    Ken Wright
    Guest

    Re: countif >0, specific cells

    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$13>0))

    --
    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" <ReneeCalifornia@discussions.microsoft.com> wrote in
    message news:9E306592-C43C-4187-9494-D7ED9BEFBDEA@microsoft.com...
    > 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" <ReneeCalifornia@discussions.microsoft.com> wrote in
    >> message news:2C972820-ABD0-4381-9EDD-64ADD2A703F9@microsoft.com...
    >> > 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. #8
    Renee - California
    Guest

    Re: countif >0, specific cells

    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:IN14>0),R14:IN14))

    "Conrad Carlberg" wrote:

    > Hi Renee,
    >
    > I suspect you've tried this:
    >
    > =COUNT(IF((MOD(COLUMN(Q13:IM13),10)=7)*(Q13:IM13>0),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" <ReneeCalifornia@discussions.microsoft.com> wrote in
    > message news:9E306592-C43C-4187-9494-D7ED9BEFBDEA@microsoft.com...
    > > 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" <ReneeCalifornia@discussions.microsoft.com> wrote

    > in
    > > > message news:2C972820-ABD0-4381-9EDD-64ADD2A703F9@microsoft.com...
    > > > > 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. #9
    Renee - California
    Guest

    Re: countif >0, specific cells

    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$13>0))
    >
    > --
    > 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" <ReneeCalifornia@discussions.microsoft.com> wrote in
    > message news:9E306592-C43C-4187-9494-D7ED9BEFBDEA@microsoft.com...
    > > 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" <ReneeCalifornia@discussions.microsoft.com> wrote in
    > >> message news:2C972820-ABD0-4381-9EDD-64ADD2A703F9@microsoft.com...
    > >> > 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. #10
    Renee - California
    Guest

    Re: countif >0, specific cells

    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:IM13>0),Q13:IM13))}
    >
    > For counting...
    >
    > =SUMPRODUCT(--(MOD(COLUMN(Q13:IM13)-COLUMN(Q13)+0,10)=0),--(Q13:IM13>0),--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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1