+ Reply to Thread
Results 1 to 9 of 9

Count value with condition in a range of cells

  1. #1
    Registered User
    Join Date
    06-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2016
    Posts
    38

    Count value with condition in a range of cells

    Hi to all,
    I have a range of cell H15:BE15. Each cell has a numeric value in it (a number between 1 and 100).
    I need to count the number of some cells that has values less than 50.
    In specific, I need to count the numbers < 50 in the following columns only: L , Q , V , AA , AF , AK , AP , AU , AZ , BE
    How can this be done ?

    Khalil

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Count value with condition in a range of cells

    Onw way:

    =SUM(COUNTIF(INDIRECT({"L15","Q15","V15","AA15","AF15","AK15","AP15","AU15","AU15","AZ15","BE15"}),"<50"))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    06-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2016
    Posts
    38

    Re: Count value with condition in a range of cells

    Thank you very much.
    The exact result was accomplished

  4. #4
    Registered User
    Join Date
    06-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2016
    Posts
    38

    Re: Count value with condition in a range of cells

    Hi,
    I tried to copy it to the lines below but was not successful.
    What adjustments should be done to copy it to the lines below?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Count value with condition in a range of cells

    You didn't ask for that, did you?? Back in a moment or two.

  6. #6
    Registered User
    Join Date
    06-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2016
    Posts
    38

    Re: Count value with condition in a range of cells

    Yes, you are right, I did not ask for that, I though it will copy as I used to do using dragging or copy and paste.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Count value with condition in a range of cells

    I just noticed that there was a pattern to it... not random columns. Use this:

    =SUMPRODUCT((MOD(COLUMN(L15:BE15)-COLUMN(L15),5)=0)*(L15:BE15<50))
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2016
    Posts
    38

    Re: Count value with condition in a range of cells

    Thank you very much

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Count value with condition in a range of cells

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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] How to Count specific words in a range of cells based on condition
    By Ell0ll in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2020, 05:13 PM
  2. [SOLVED] Count in the given range with 1 condition duplicate as unique
    By Sekars in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-30-2017, 03:19 AM
  3. Replies: 1
    Last Post: 12-17-2015, 11:22 AM
  4. [SOLVED] Count Unique Values in a Range with Condition
    By vij8y in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-28-2015, 05:45 AM
  5. Count unique value in a range of cell with a given condition
    By Kehjz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-29-2014, 01:21 AM
  6. How to count the date range with condition
    By 00itachi00 in forum Excel General
    Replies: 4
    Last Post: 08-03-2012, 07:29 AM
  7. count sumproduct in data range only with condition
    By Armitage2k in forum Excel General
    Replies: 4
    Last Post: 04-19-2012, 11:23 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