+ Reply to Thread
Results 1 to 4 of 4

Searching Columns and Rows

  1. #1
    Cliff
    Guest

    Searching Columns and Rows

    I am trying to find a function to count the occurrences of a specific number
    in a range of cells in 2 adjacent rows and 45 adjacent columns.

    Also, how would the formula change if the rows and columns were not adjacent?
    Any sugestions would help.

    --
    Cliff

  2. #2
    Pete_UK
    Guest

    Re: Searching Columns and Rows

    Have you tried COUNTIF(range,criterion) ?

    Pete


  3. #3
    Bill Kuunders
    Guest

    Re: Searching Columns and Rows

    one way

    =COUNTIF(A10:G11,"=45")+COUNTIF(I10:L11,"=45")

    or
    =COUNTIF(A10:G11,45)+COUNTIF(I10:L11,45)

    change the ranges to suit
    and you could store the number 45 in a cell........... A2

    =COUNTIF(A10:G11,A2)+COUNTIF(I10:L11,A2)

    --
    Greetings from New Zealand
    Bill K

    "Cliff" <[email protected]> wrote in message
    news:[email protected]...
    >I am trying to find a function to count the occurrences of a specific
    >number
    > in a range of cells in 2 adjacent rows and 45 adjacent columns.
    >
    > Also, how would the formula change if the rows and columns were not
    > adjacent?
    > Any sugestions would help.
    >
    > --
    > Cliff




  4. #4
    Cliff
    Guest

    Re: Searching Columns and Rows

    Thanks, I got the formulas to work when referencing a range of cells with
    numbers directly entered, but they would not work with a range of cells that
    had other formulas totaling a number in them.
    --
    Cliff


    "Bill Kuunders" wrote:

    > one way
    >
    > =COUNTIF(A10:G11,"=45")+COUNTIF(I10:L11,"=45")
    >
    > or
    > =COUNTIF(A10:G11,45)+COUNTIF(I10:L11,45)
    >
    > change the ranges to suit
    > and you could store the number 45 in a cell........... A2
    >
    > =COUNTIF(A10:G11,A2)+COUNTIF(I10:L11,A2)
    >
    > --
    > Greetings from New Zealand
    > Bill K
    >
    > "Cliff" <[email protected]> wrote in message
    > news:[email protected]...
    > >I am trying to find a function to count the occurrences of a specific
    > >number
    > > in a range of cells in 2 adjacent rows and 45 adjacent columns.
    > >
    > > Also, how would the formula change if the rows and columns were not
    > > adjacent?
    > > Any sugestions would help.
    > >
    > > --
    > > Cliff

    >
    >
    >


+ 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