Hi Expert,
Wondering simple function is possible using match and count in a given range (a1:g7) :-
Given row range (a1:g7)each cell numbers are
2,20,38,29,6,8, 10
need to count specific numbers only 2,20,29 answer is 3
Thanks
Karnik
Hi Expert,
Wondering simple function is possible using match and count in a given range (a1:g7) :-
Given row range (a1:g7)each cell numbers are
2,20,38,29,6,8, 10
need to count specific numbers only 2,20,29 answer is 3
Thanks
Karnik
Try
=SUM(COUNTIF(A1:G1,{2,20,29}))
Hi John,
Thanks for solution, it work!
I was using if& lengthy one, this is excellent
Thanks
Karnik
Here's another one...
Use cells to hold the criteria.
Data Range
A B C D E F G H I J 1 43 41 67 77 16 95 5 2 3 2 2 24 31 14 15 62 66 20 3 30 99 69 41 10 77 35 29 4 97 77 86 20 24 25 79 5 94 33 69 62 43 86 92 6 89 59 64 67 94 1 87 7 19 79 74 46 86 56 29 8 ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
This formula entered in J1:
=SUMPRODUCT(COUNTIF(A1:G7,I1:I3))
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Hi Tony,
Thanks , it works too!
Karnik
You're welcome. Thanks for the feedback!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks