+ Reply to Thread
Results 1 to 3 of 3

Count cell A if cell A is <= cell B

  1. #1
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Count cell A if cell A is <= cell B

    Using the TRADES sheet in the attached WB as reference... I actually would like to find the percentage of...

    (Count non-blank cells of Table1[DD] if <= Table1[STOP] AND if Table1[STOP] is not blank)

    divided by...

    (Count Table1[STOP] if not blank)

    I've tried something like...

    =IF(Table[STOP],"<>",(COUNTIFS(Table1[DD],"<>","<=Table1[STOP]")/COUNT(Table1[STOP])
    Attached Files Attached Files
    Last edited by cableghost; 05-24-2022 at 03:43 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,679

    Re: Count cell A if cell A is <= cell B

    Here is exactly what you asked for, but give this some thought to make sure it's really what you need for your purposes:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    The way you wrote this it sounds like you want:

    The count of rows where DD and STOP are both non-blank AND DD < STOP

    divided by

    The count of rows where STOP is non-blank.

    However, the count of rows where STOP is non-blank includes rows where DD is blank, which are not included in the top number. Are you sure that is really the calculation you need?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Count cell A if cell A is <= cell B

    Thanks Jeff, I think this will work.

+ 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. Replies: 3
    Last Post: 04-06-2022, 06:27 PM
  2. Replies: 5
    Last Post: 11-13-2019, 01:03 PM
  3. [SOLVED] COUNTIF for cell range that contains specific text then count data from another cell
    By sluke627 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2019, 04:02 PM
  4. Stop count if number = Cell and move rest of count to other cell
    By hackertom in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-18-2018, 09:06 AM
  5. [SOLVED] Count words in a cell & output number of occurences of each word in adjecent cell.
    By kprasad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2017, 07:28 AM
  6. Replies: 2
    Last Post: 05-25-2016, 12:46 PM
  7. [SOLVED] How to count multiple cell values & do a validation & display results on a different cell
    By adriandefry in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-03-2012, 09:12 AM

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