+ Reply to Thread
Results 1 to 6 of 6

Count number of row's with conditions met

  1. #1
    Registered User
    Join Date
    10-10-2014
    Location
    seattle wa
    MS-Off Ver
    2007
    Posts
    63

    Count number of row's with conditions met

    Hi All,

    Can this be done in excel:

    I would like to count the number of rows that are highlighted in red in column W, only if there is blue highlight in column B. I have attached the screen shot of what data i am looking at. So my formula should only Count 1 since both conditions were met. Please let me know if that's possible in excel or tools that you may know.

    Thank you
    2015-06-22 13_18_21-Microsoft Excel .png

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,651

    Re: Count number of row's with conditions met

    Please upload an excel file it has much more sense than images

    Why are the cells red and blue highlighted?
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Count number of row's with conditions met

    Is there some logic as to why those cells are colored like that (think Conditional Formatting). If there is, then we can maybe use that same logic for the calc. If the colors were added manually, then you will probably need VBA, color is cosmetic, not data, and formulas work on data - they cannot "see" color
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Count number of row's with conditions met

    Excel cannot calculate a result on cell colour, so it would come down to the reason why those cells are coloured that way, which is why popipipo asked that question.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  5. #5
    Registered User
    Join Date
    10-10-2014
    Location
    seattle wa
    MS-Off Ver
    2007
    Posts
    63

    Re: Count number of row's with conditions met

    Sorry, I can not send the spreadsheet since it's our companies policy. Is there a code in visual basics that I can do?

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count number of row's with conditions met

    Quote Originally Posted by gak67 View Post
    Excel cannot calculate a result on cell colour
    It can be done using VBA functions but I recommend not doing it as it doesn't work as you think it should.

    Changing a cell color does not cause a calculation so the formula won't update automatically.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Count number of rows that meet two conditions
    By travisg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-18-2013, 12:20 PM
  2. [SOLVED] Count a range with two conditions (string and number)
    By yauchildchew in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2013, 11:35 PM
  3. Count if 2 conditions (string and number) are met
    By jemdlee in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-21-2012, 09:19 AM
  4. Count the number of Cells in one ROW with conditions
    By Amanda in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-09-2005, 11:05 AM
  5. How do I count number of cels the matches 2 conditions ?
    By Abra in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-27-2005, 05:06 PM

Tags for this Thread

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