+ Reply to Thread
Results 1 to 6 of 6

Count Cells if diff cell meets conditions

Hybrid View

  1. #1
    DJS
    Guest

    Count Cells if diff cell meets conditions

    Hello~
    I need to count all rows of Column B if they are not blank and only if the
    contents of the same row in column A are >=2005.
    Is this possible without the use of a macro, and if so could you provide me
    an example?

  2. #2
    Gary L Brown
    Guest

    RE: Count Cells if diff cell meets conditions

    Check out Chip Pearson's website on Array Formulas....
    http://www.cpearson.com/excel/array.htm

    He addresses multiple criteria Count Ifs and Sum Ifs.

    I believe this is exactly what you are looking for.

    HTH,
    --
    Gary Brown
    gary_brown@ge_NOSPAM.com
    If this post was helpful, please click the ''Yes'' button next to ''Was this
    Post Helpfull to you?''.


    "DJS" wrote:

    > Hello~
    > I need to count all rows of Column B if they are not blank and only if the
    > contents of the same row in column A are >=2005.
    > Is this possible without the use of a macro, and if so could you provide me
    > an example?


  3. #3
    Bob Phillips
    Guest

    Re: Count Cells if diff cell meets conditions

    =SUMPRODUCT(--(NOT(ISBLANK(B1:B1000))),--(A1:A1000>2005))

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "DJS" <DJS@discussions.microsoft.com> wrote in message
    news:65A112B7-9DF7-479A-8306-2D7498EE75F7@microsoft.com...
    > Hello~
    > I need to count all rows of Column B if they are not blank and only if the
    > contents of the same row in column A are >=2005.
    > Is this possible without the use of a macro, and if so could you provide

    me
    > an example?




  4. #4
    DJS
    Guest

    Re: Count Cells if diff cell meets conditions

    Thanks Bob~
    I tried the following formula but I get a #NUM! error and can't seem to
    figure out what I am doing wrong. Here is waht I have so far:
    =SUMPRODUCT(--(NOT(ISBLANK('OBD-only'!FL:FL))),--('OBD-only'!AF:AF>=2005))

    Column FL of the OBD-only sheet has most fields populated with a 17
    character alpha-numeric val and the other cells are blank.

    Column AF of the OBD-only sheet has all fields populated with years ranging
    between 1996-2006.


    "Bob Phillips" wrote:

    > =SUMPRODUCT(--(NOT(ISBLANK(B1:B1000))),--(A1:A1000>2005))
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (remove nothere from email address if mailing direct)
    >
    > "DJS" <DJS@discussions.microsoft.com> wrote in message
    > news:65A112B7-9DF7-479A-8306-2D7498EE75F7@microsoft.com...
    > > Hello~
    > > I need to count all rows of Column B if they are not blank and only if the
    > > contents of the same row in column A are >=2005.
    > > Is this possible without the use of a macro, and if so could you provide

    > me
    > > an example?

    >
    >
    >


  5. #5
    Bob Phillips
    Guest

    Re: Count Cells if diff cell meets conditions

    SUMPRODUCT does not permit full columns, you must specify a range

    =SUMPRODUCT(--(NOT(ISBLANK('OBD-only'!FL1:FL10000))),--('OBD-only'!AF1:AF100
    00>=2005))

    for example

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "DJS" <DJS@discussions.microsoft.com> wrote in message
    news:DF74BE64-17F4-4882-B540-A3A16B76F840@microsoft.com...
    > Thanks Bob~
    > I tried the following formula but I get a #NUM! error and can't seem to
    > figure out what I am doing wrong. Here is waht I have so far:
    > =SUMPRODUCT(--(NOT(ISBLANK('OBD-only'!FL:FL))),--('OBD-only'!AF:AF>=2005))
    >
    > Column FL of the OBD-only sheet has most fields populated with a 17
    > character alpha-numeric val and the other cells are blank.
    >
    > Column AF of the OBD-only sheet has all fields populated with years

    ranging
    > between 1996-2006.
    >
    >
    > "Bob Phillips" wrote:
    >
    > > =SUMPRODUCT(--(NOT(ISBLANK(B1:B1000))),--(A1:A1000>2005))
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > (remove nothere from email address if mailing direct)
    > >
    > > "DJS" <DJS@discussions.microsoft.com> wrote in message
    > > news:65A112B7-9DF7-479A-8306-2D7498EE75F7@microsoft.com...
    > > > Hello~
    > > > I need to count all rows of Column B if they are not blank and only if

    the
    > > > contents of the same row in column A are >=2005.
    > > > Is this possible without the use of a macro, and if so could you

    provide
    > > me
    > > > an example?

    > >
    > >
    > >




  6. #6
    DJS
    Guest

    Re: Count Cells if diff cell meets conditions

    Thanks Bob, that fixed it.
    Much appreciated!

    "Bob Phillips" wrote:

    > SUMPRODUCT does not permit full columns, you must specify a range
    >
    > =SUMPRODUCT(--(NOT(ISBLANK('OBD-only'!FL1:FL10000))),--('OBD-only'!AF1:AF100
    > 00>=2005))
    >
    > for example
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (remove nothere from email address if mailing direct)
    >
    > "DJS" <DJS@discussions.microsoft.com> wrote in message
    > news:DF74BE64-17F4-4882-B540-A3A16B76F840@microsoft.com...
    > > Thanks Bob~
    > > I tried the following formula but I get a #NUM! error and can't seem to
    > > figure out what I am doing wrong. Here is waht I have so far:
    > > =SUMPRODUCT(--(NOT(ISBLANK('OBD-only'!FL:FL))),--('OBD-only'!AF:AF>=2005))
    > >
    > > Column FL of the OBD-only sheet has most fields populated with a 17
    > > character alpha-numeric val and the other cells are blank.
    > >
    > > Column AF of the OBD-only sheet has all fields populated with years

    > ranging
    > > between 1996-2006.
    > >
    > >
    > > "Bob Phillips" wrote:
    > >
    > > > =SUMPRODUCT(--(NOT(ISBLANK(B1:B1000))),--(A1:A1000>2005))
    > > >
    > > > --
    > > > HTH
    > > >
    > > > Bob Phillips
    > > >
    > > > (remove nothere from email address if mailing direct)
    > > >
    > > > "DJS" <DJS@discussions.microsoft.com> wrote in message
    > > > news:65A112B7-9DF7-479A-8306-2D7498EE75F7@microsoft.com...
    > > > > Hello~
    > > > > I need to count all rows of Column B if they are not blank and only if

    > the
    > > > > contents of the same row in column A are >=2005.
    > > > > Is this possible without the use of a macro, and if so could you

    > provide
    > > > me
    > > > > an example?
    > > >
    > > >
    > > >

    >
    >
    >


+ 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