+ Reply to Thread
Results 1 to 16 of 16

Simple count function

  1. #1
    Registered User
    Join Date
    07-01-2005
    Posts
    4

    Simple count function

    Hi, I want to do a very simple calculation in excel

    I have a number of columns, that can be populated with a 0 or non-0 value. I want a summary field that says number of non-zero columns?

    Any help would be great.

    Joe

  2. #2
    Forum Contributor
    Join Date
    06-21-2005
    Location
    Cambridge, England
    Posts
    118
    Try using

    =COUNTIF(G4:M4,"<>0")

    where g to m are the column you are lookin for zero values in.


    Ruth

  3. #3
    Registered User
    Join Date
    07-01-2005
    Posts
    4
    That was excellent Ruth, Thanks!

    Now, I have another one!

    Of the range of cells, say 20 columns, I want to sum the best 14 from the 20, in order of highest rank.

    So say I have 20 columns , with values of 1->20. I want the sum of the top 14, which would be 20+19+18+…etc.

    Any easy way to do this?

    Joe

  4. #4
    Bob Phillips
    Guest

    Re: Simple count function

    =SUMPRODUCT(LARGE(A1:T1,ROW(INDIRECT("1:14"))))

    --
    HTH

    Bob Phillips

    "berminator" <[email protected]> wrote
    in message news:[email protected]...
    >
    > That was excellent Ruth, Thanks!
    >
    > Now, I have another one!
    >
    > Of the range of cells, say 20 columns, I want to sum the best 14 from
    > the 20, in order of highest rank.
    >
    > So say I have 20 columns , with values of 1->20. I want the sum of the
    > top 14, which would be 20+19+18+.etc.
    >
    > Any easy way to do this?
    >
    > Joe
    >
    >
    > --
    > berminator
    > ------------------------------------------------------------------------
    > berminator's Profile:

    http://www.excelforum.com/member.php...o&userid=24833
    > View this thread: http://www.excelforum.com/showthread...hreadid=383851
    >




  5. #5
    Registered User
    Join Date
    07-01-2005
    Posts
    4
    Thanks again, worked a treat!

  6. #6
    Bob Phillips
    Guest

    Re: Simple count function

    =SUMPRODUCT(LARGE(A1:T1,ROW(INDIRECT("1:14"))))

    --
    HTH

    Bob Phillips

    "berminator" <[email protected]> wrote
    in message news:[email protected]...
    >
    > That was excellent Ruth, Thanks!
    >
    > Now, I have another one!
    >
    > Of the range of cells, say 20 columns, I want to sum the best 14 from
    > the 20, in order of highest rank.
    >
    > So say I have 20 columns , with values of 1->20. I want the sum of the
    > top 14, which would be 20+19+18+.etc.
    >
    > Any easy way to do this?
    >
    > Joe
    >
    >
    > --
    > berminator
    > ------------------------------------------------------------------------
    > berminator's Profile:

    http://www.excelforum.com/member.php...o&userid=24833
    > View this thread: http://www.excelforum.com/showthread...hreadid=383851
    >




  7. #7
    Bob Phillips
    Guest

    Re: Simple count function

    =SUMPRODUCT(LARGE(A1:T1,ROW(INDIRECT("1:14"))))

    --
    HTH

    Bob Phillips

    "berminator" <[email protected]> wrote
    in message news:[email protected]...
    >
    > That was excellent Ruth, Thanks!
    >
    > Now, I have another one!
    >
    > Of the range of cells, say 20 columns, I want to sum the best 14 from
    > the 20, in order of highest rank.
    >
    > So say I have 20 columns , with values of 1->20. I want the sum of the
    > top 14, which would be 20+19+18+.etc.
    >
    > Any easy way to do this?
    >
    > Joe
    >
    >
    > --
    > berminator
    > ------------------------------------------------------------------------
    > berminator's Profile:

    http://www.excelforum.com/member.php...o&userid=24833
    > View this thread: http://www.excelforum.com/showthread...hreadid=383851
    >




  8. #8
    Bob Phillips
    Guest

    Re: Simple count function

    =SUMPRODUCT(LARGE(A1:T1,ROW(INDIRECT("1:14"))))

    --
    HTH

    Bob Phillips

    "berminator" <[email protected]> wrote
    in message news:[email protected]...
    >
    > That was excellent Ruth, Thanks!
    >
    > Now, I have another one!
    >
    > Of the range of cells, say 20 columns, I want to sum the best 14 from
    > the 20, in order of highest rank.
    >
    > So say I have 20 columns , with values of 1->20. I want the sum of the
    > top 14, which would be 20+19+18+.etc.
    >
    > Any easy way to do this?
    >
    > Joe
    >
    >
    > --
    > berminator
    > ------------------------------------------------------------------------
    > berminator's Profile:

    http://www.excelforum.com/member.php...o&userid=24833
    > View this thread: http://www.excelforum.com/showthread...hreadid=383851
    >




  9. #9
    Bob Phillips
    Guest

    Re: Simple count function

    =SUMPRODUCT(LARGE(A1:T1,ROW(INDIRECT("1:14"))))

    --
    HTH

    Bob Phillips

    "berminator" <[email protected]> wrote
    in message news:[email protected]...
    >
    > That was excellent Ruth, Thanks!
    >
    > Now, I have another one!
    >
    > Of the range of cells, say 20 columns, I want to sum the best 14 from
    > the 20, in order of highest rank.
    >
    > So say I have 20 columns , with values of 1->20. I want the sum of the
    > top 14, which would be 20+19+18+.etc.
    >
    > Any easy way to do this?
    >
    > Joe
    >
    >
    > --
    > berminator
    > ------------------------------------------------------------------------
    > berminator's Profile:

    http://www.excelforum.com/member.php...o&userid=24833
    > View this thread: http://www.excelforum.com/showthread...hreadid=383851
    >




  10. #10
    Bob Phillips
    Guest

    Re: Simple count function

    =SUMPRODUCT(LARGE(A1:T1,ROW(INDIRECT("1:14"))))

    --
    HTH

    Bob Phillips

    "berminator" <[email protected]> wrote
    in message news:[email protected]...
    >
    > That was excellent Ruth, Thanks!
    >
    > Now, I have another one!
    >
    > Of the range of cells, say 20 columns, I want to sum the best 14 from
    > the 20, in order of highest rank.
    >
    > So say I have 20 columns , with values of 1->20. I want the sum of the
    > top 14, which would be 20+19+18+.etc.
    >
    > Any easy way to do this?
    >
    > Joe
    >
    >
    > --
    > berminator
    > ------------------------------------------------------------------------
    > berminator's Profile:

    http://www.excelforum.com/member.php...o&userid=24833
    > View this thread: http://www.excelforum.com/showthread...hreadid=383851
    >




  11. #11
    Bob Phillips
    Guest

    Re: Simple count function

    =SUMPRODUCT(LARGE(A1:T1,ROW(INDIRECT("1:14"))))

    --
    HTH

    Bob Phillips

    "berminator" <[email protected]> wrote
    in message news:[email protected]...
    >
    > That was excellent Ruth, Thanks!
    >
    > Now, I have another one!
    >
    > Of the range of cells, say 20 columns, I want to sum the best 14 from
    > the 20, in order of highest rank.
    >
    > So say I have 20 columns , with values of 1->20. I want the sum of the
    > top 14, which would be 20+19+18+.etc.
    >
    > Any easy way to do this?
    >
    > Joe
    >
    >
    > --
    > berminator
    > ------------------------------------------------------------------------
    > berminator's Profile:

    http://www.excelforum.com/member.php...o&userid=24833
    > View this thread: http://www.excelforum.com/showthread...hreadid=383851
    >




  12. #12
    Bob Phillips
    Guest

    Re: Simple count function

    =SUMPRODUCT(LARGE(A1:T1,ROW(INDIRECT("1:14"))))

    --
    HTH

    Bob Phillips

    "berminator" <[email protected]> wrote
    in message news:[email protected]...
    >
    > That was excellent Ruth, Thanks!
    >
    > Now, I have another one!
    >
    > Of the range of cells, say 20 columns, I want to sum the best 14 from
    > the 20, in order of highest rank.
    >
    > So say I have 20 columns , with values of 1->20. I want the sum of the
    > top 14, which would be 20+19+18+.etc.
    >
    > Any easy way to do this?
    >
    > Joe
    >
    >
    > --
    > berminator
    > ------------------------------------------------------------------------
    > berminator's Profile:

    http://www.excelforum.com/member.php...o&userid=24833
    > View this thread: http://www.excelforum.com/showthread...hreadid=383851
    >




  13. #13
    Bob Phillips
    Guest

    Re: Simple count function

    =SUMPRODUCT(LARGE(A1:T1,ROW(INDIRECT("1:14"))))

    --
    HTH

    Bob Phillips

    "berminator" <[email protected]> wrote
    in message news:[email protected]...
    >
    > That was excellent Ruth, Thanks!
    >
    > Now, I have another one!
    >
    > Of the range of cells, say 20 columns, I want to sum the best 14 from
    > the 20, in order of highest rank.
    >
    > So say I have 20 columns , with values of 1->20. I want the sum of the
    > top 14, which would be 20+19+18+.etc.
    >
    > Any easy way to do this?
    >
    > Joe
    >
    >
    > --
    > berminator
    > ------------------------------------------------------------------------
    > berminator's Profile:

    http://www.excelforum.com/member.php...o&userid=24833
    > View this thread: http://www.excelforum.com/showthread...hreadid=383851
    >




  14. #14
    Bob Phillips
    Guest

    Re: Simple count function

    =SUMPRODUCT(LARGE(A1:T1,ROW(INDIRECT("1:14"))))

    --
    HTH

    Bob Phillips

    "berminator" <[email protected]> wrote
    in message news:[email protected]...
    >
    > That was excellent Ruth, Thanks!
    >
    > Now, I have another one!
    >
    > Of the range of cells, say 20 columns, I want to sum the best 14 from
    > the 20, in order of highest rank.
    >
    > So say I have 20 columns , with values of 1->20. I want the sum of the
    > top 14, which would be 20+19+18+.etc.
    >
    > Any easy way to do this?
    >
    > Joe
    >
    >
    > --
    > berminator
    > ------------------------------------------------------------------------
    > berminator's Profile:

    http://www.excelforum.com/member.php...o&userid=24833
    > View this thread: http://www.excelforum.com/showthread...hreadid=383851
    >




  15. #15
    Bob Phillips
    Guest

    Re: Simple count function

    =SUMPRODUCT(LARGE(A1:T1,ROW(INDIRECT("1:14"))))

    --
    HTH

    Bob Phillips

    "berminator" <[email protected]> wrote
    in message news:[email protected]...
    >
    > That was excellent Ruth, Thanks!
    >
    > Now, I have another one!
    >
    > Of the range of cells, say 20 columns, I want to sum the best 14 from
    > the 20, in order of highest rank.
    >
    > So say I have 20 columns , with values of 1->20. I want the sum of the
    > top 14, which would be 20+19+18+.etc.
    >
    > Any easy way to do this?
    >
    > Joe
    >
    >
    > --
    > berminator
    > ------------------------------------------------------------------------
    > berminator's Profile:

    http://www.excelforum.com/member.php...o&userid=24833
    > View this thread: http://www.excelforum.com/showthread...hreadid=383851
    >




  16. #16
    Bob Phillips
    Guest

    Re: Simple count function

    =SUMPRODUCT(LARGE(A1:T1,ROW(INDIRECT("1:14"))))

    --
    HTH

    Bob Phillips

    "berminator" <[email protected]> wrote
    in message news:[email protected]...
    >
    > That was excellent Ruth, Thanks!
    >
    > Now, I have another one!
    >
    > Of the range of cells, say 20 columns, I want to sum the best 14 from
    > the 20, in order of highest rank.
    >
    > So say I have 20 columns , with values of 1->20. I want the sum of the
    > top 14, which would be 20+19+18+.etc.
    >
    > Any easy way to do this?
    >
    > Joe
    >
    >
    > --
    > berminator
    > ------------------------------------------------------------------------
    > berminator's Profile:

    http://www.excelforum.com/member.php...o&userid=24833
    > View this thread: http://www.excelforum.com/showthread...hreadid=383851
    >




+ 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