Counting formula by multiple columns

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
COLUMN-MCOLUMN-NCOLUMN-PCOLUMN-R
1116
1226
1335
1443
15
16
21
22
23
24
25
26
31
32
33
36
32
44
45
41

<colgroup><col span="2"><col><col span="2"></colgroup><tbody>
</tbody>


Hello,
What is the formula for to count Column-P- datas base on Column-N- ?
Thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Based on your example:

=COUNTIF(M:M,P2)

But are you looking for something more, like you want a unique count? In that case the "3" value would be 4, since "2" is duplicated.
 
Upvote 0
Hello Eric,
Thanks for reply, but my question is a bit different..
So column M has datas from 1 to 4 (multiple) and those datas I've placed on column P after sort the duplicates(actually I have huge of datas that is sample only)
I need the formula on column R which will show me amount of column N datas base on column M
Hope its clear..
 
Upvote 0
I'm afraid I still don't see the difference. My formula replicates your results exactly. See below:

MNOPQRST
1COLUMN-MCOLUMN-NCOLUMN-PCOLUMN-R
211166
312266
413354
514433
615
716
821
922
1023
1124
1225
1326
1431
1532
1633
1736
1832
1944
2045
2141

<tbody>
</tbody>
Sheet11


Worksheet Formulas
CellFormula
R2=COUNTIF(M:M,P2)

<tbody>
</tbody>

Array Formulas
CellFormula
S2{=SUM(SIGN(FREQUENCY(IF($M$2:$M$21=P2,$N$2:$N$21),$N$2:$N$21)))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



Or if you want the formula that creates the unique count, that's in S2.
 
Upvote 0

Forum statistics

Threads
1,215,151
Messages
6,123,321
Members
449,094
Latest member
Chestertim

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top