![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 2
|
Hi, I am having a problem using COUNTIF to count using a range of numbers in 2 different cells. For example, in c7 I have 24 and in c8 have 26 and I want to count the number of clients that we have that produced revenue >=c7 AND <=C8. It is difficult because COUNTIF will not let you use <> to reference a given cell. any clue on how TO DO THIS? Below is the formula I am currently using to reference one cell and it works fine. I just want to add a >c7 and <=c8 in place of the C7.
=COUNTIF(Sheet1!$B$4:$B$1846,C7) |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=COUNTIF(Sheet1!$B$4:$B$1846,">"&C7)-COUNTIF(Sheet1!$B$4:$B$1846,">"&C8) |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 2
|
Aladin, you are the man!! Thanks a lot!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|