+ Reply to Thread
Results 1 to 5 of 5

COUNTIF for 2 columns, conditional-formatting an entire row - THANKS!

  1. #1
    Registered User
    Join Date
    02-16-2007
    Posts
    6

    Arrow COUNTIF for 2 columns, conditional-formatting an entire row - THANKS!

    Hi,

    I am trying to count the rows where COLUMN B = NAME and COLUMN C = "YES". Please see the source data as the first image and desired outcome as the second image.

    Secondly, is there a way to use conditional formatting on the entire row based on one cell in that row?

    Any help would be greatly appreciated!

    Cheers,
    Mart
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    =SUMPRODUCT((B1:B100="name")*(C1:C100="yes"))

    extend range as necessary

    for the conditional formatting just set up a forula in the conditional formatting box such as

    =$A$11=1

    and then copy the formatting of the cell across the entire row
    not a professional, just trying to assist.....

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    Check out this site on sumproduct very descriptive


    http://www.xldynamic.com/source/xld.SUMPRODUCT.html

  4. #4
    Registered User
    Join Date
    02-16-2007
    Posts
    6

    Thanks guys for SUMPRODUCT!

    Hi,

    Thanks! SUMPRODUCT link educated me a lot and the proposed solution also worked! Awesome!

    As far as the conditional formatting question goes, I would like to copy this condition (the condition being "make entire row gray if cell in column B is blank") down 400 rows, so I assume there is no decent solution to this.

    Thanks again!
    Mart

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    Please Login or Register  to view this content.
    here is a code it searches column B and if the cell is blank, it gets colored grey

+ 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