Hi All,
I'm trying to create a formula that will count how many cells in column B fall within/between the range of column C (min) and column D (max).
Please see attachment. Thanks in advance for any input!
Thanks,
Mario
Hi All,
I'm trying to create a formula that will count how many cells in column B fall within/between the range of column C (min) and column D (max).
Please see attachment. Thanks in advance for any input!
Thanks,
Mario
Last edited by Vancouver; 11-07-2010 at 05:01 PM.
Simplest to use 2 COUNTIFs
you could use a single SUMPRODUCT but above is preferable IMO.![]()
Please Login or Register to view this content.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
![]()
Please Login or Register to view this content.
Ben Van Johnson
Hi All,
Thank you so much for the inputs!
DonkeyOte, your formula is just what I was looking for however can you explain how the formula below translates?
For example, I would think that $B$B:$B$B,">"&$I2 should be $B$B:$B$B,"<="&$I2 because I need the count of all numbers in $B$B:$B$B less than or equal to $I2.
=COUNTIF($B$B:$B$B,">="&$H2)-COUNTIF($B$B:$B$B,">"&$I2)
Thanks again,
Mario
The function reads as:Originally Posted by Vancouver
a) Count all transactions greater than or greater than or equal to start date
This figure will be inclusive of transactions that exceed end date obviously so
b) Subtract from that value the Count of all transactions that exceed the end date
The resulting value is thus the count of all transactions between the two dates (inclusive)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks