Excel 2007 function CountIf

eagle

New member
Local time
6:42 AM
Messages
8
I would like to know whether there is a possibility of using other functions in the search criteria argument of the CountIf Function that also refer to the cells in the domain to which CountIf is applied.
The same question arises when using for example SumIf Function.

Thanks a lot for your help

Kind regards
 

My Computer

Computer type
Laptop
OS
Windows 7 64bit

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
To Golden in connexion with CountIf

Thank you very much for the link referring to "sumproduct". Since momentarily I have no much free time left, it will take a few days until I can read through it.

I would like to do the following:

Lets assume there is a column of numbers and one would like to count how many of them can be divided by a given number e.g. 3.

The condition to be checked could be something like: number/3-round(number/3;0) = 0

Now, what I would like to know is if such an expression can be directly combined with the countIf function (without introducing "artificial" columns), something like

CountIf(A1:A1000; number in each cell/3-round(number in each cell/3;0) = 0)

I hope my question is not too idiotic.
Looking forward to your reply
 

My Computer

Computer type
Laptop
OS
Windows 7 64bit
Try This

{=COUNT(A1:A1000)-COUNT(IF(MOD(A1:A1000,3),A1:A1000))}

Don't type the curly braces, they will be added automatically

This is an array formula so you have to press CTRL-SHIFT-ENTER at the end of the formula

hth
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home Made
OS
Linux Mint 17 Cinnamon | Win 7 Ult x64
CPU
Intel I7-3770K @ 4.2ghz
Motherboard
ASRock Extreme 4
Memory
32GB G-Skill C10Q
Graphics Card(s)
EVGA GTX 670 2GB SC
Sound Card
Creative Fatality ExtremeGamer
Monitor(s) Displays
LG E2742V x 2
Screen Resolution
1920x1080
Hard Drives
256GB Vertex 4 SSD
2TB Seagate ST2000DM001
1TB Seagate ST1000DM003
PSU
Corsair HX 650
Case
HAF 932 advanced
Cooling
Corsair H100i liquid cooler
Keyboard
Logitech Wireless
Mouse
Logitech Wireless
Internet Speed
OptusNet NBN 100/40
Antivirus
Malwarebytes
Browser
Firefox 30
Other Info
Router: Sagemcom F@st 3846 Crippled by Optus.
Back
Top