+ Reply to Thread
Results 1 to 10 of 10

Formula Required to Count Rows only if condition is meet or else dont count

  1. #1
    Registered User
    Join Date
    08-18-2017
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    62

    Formula Required to Count Rows only if condition is meet or else dont count

    Formula Required to Count Rows only if condition is meet or else dont count and update the formula cell.

    For Example:-

    IN D1 I Need to add formula as given below:-

    IF A1=B1, then Count Row C:C or else dont Count the result keep existing count as it is.
    Attached Images Attached Images

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: Formula Required to Count Rows only if condition is meet or else dont count

    So, this is what you want based on your image:

    If Class = Class Teacher (FALSE), count the rows in column C.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-18-2017
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Formula Required to Count Rows only if condition is meet or else dont count

    Please ignore that Image,

    Please refer Attached Sample excel.

    I want - IF E1 = A7, then Count E3:E86 in B7 or else dont count or update the count result in B7.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: Formula Required to Count Rows only if condition is meet or else dont count

    You are going to need to tell us what your expected outcomes are.

  5. #5
    Registered User
    Join Date
    08-18-2017
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Formula Required to Count Rows only if condition is meet or else dont count

    Basically whenever I change E1 row then it should update accordingly in B Row as per matching criteria.

    For Example:-

    If I Change E1 to WEEK 3 then it should check A6 to A10 and then accordingly update B column.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: Formula Required to Count Rows only if condition is meet or else dont count

    Yes, I get that, but what are the expected results? So, show me what the table on the left should look like if WEEK 2 is selected in E1, and then how it should look if WEEK 3 is selected. I know it's obvious to you, but it isn't to me.

  7. #7
    Registered User
    Join Date
    08-18-2017
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Formula Required to Count Rows only if condition is meet or else dont count

    Lets say I have 5 columns with different Weeks = So result in B column should get update in respective match result of A column.

    Refer attached excel
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,877

    Re: Formula Required to Count Rows only if condition is meet or else dont count

    Sorry - I don't understand at all what you are trying to do. Let's hope somebody else will.

  9. #9
    Registered User
    Join Date
    08-18-2017
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Formula Required to Count Rows only if condition is meet or else dont count

    Thanks For your efforts ...have a good day

  10. #10
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Formula Required to Count Rows only if condition is meet or else dont count

    Not sure I understand but see if this does what you want?
    Attached Files Attached Files

+ 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. [SOLVED] Excel formula to meet the condition as required
    By PRADEEPB270 in forum Excel General
    Replies: 3
    Last Post: 02-13-2017, 07:25 AM
  2. [SOLVED] Count if the sum of columns meet a condition
    By my_sunshine in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 03-09-2015, 12:33 PM
  3. A formula to count subtotals if they meet a qualifying condition
    By JC_LA_1979 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2015, 01:03 PM
  4. IF formula - Skip rows that dont meet criteria
    By AusBec in forum Excel General
    Replies: 7
    Last Post: 09-03-2014, 09:52 PM
  5. [SOLVED] I want to use a formula to count how many rows meet a set of two criteria.
    By VivatMartin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2012, 10:46 AM
  6. Replies: 5
    Last Post: 08-29-2011, 02:22 PM
  7. Count text strings that meet a condition
    By dcgrove in forum Excel General
    Replies: 4
    Last Post: 09-14-2010, 03:38 PM

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