CountA multiple columns no duplicate counts

HuskyJones

New Member
Joined
Sep 30, 2015
Messages
41
Office Version
  1. 365
Platform
  1. Windows
Hey Guru's!!
I've done a counta =COUNTA(L4:M10000) which gives me every cell with data.
but .......
I also need unique's in that if L4 and M4 both have data it's only counted once?
I know it's going to be something simple that i'll smack my forehead in shame for after but you guys always clear my excel fog :LOL:

Cheers
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
=sumproduct(($l$4:$m$10000<>"")/countif($l$4:$m$10000,$l$4:$m$10000&""))
 
Upvote 0
Sorry, been away
Nope that didn't work :(
I have 75 in col L, 121 in col M. my total contacts are 196 which is correct.

There are 29 duplicates with data in both columns that I need only recognising once - so 167 uniques
Could I count all in col L, but then say only count col M if Col L is blank??

arrgghhh brain fart!
 
Upvote 0
Try to post a small sample from L4:M10000 (say 10 rows) along with the result which must obtain for that sample.
 
Upvote 0
Try to post a small sample from L4:M10000 (say 10 rows) along with the result which must obtain for that sample.

Thanks Aladin

Similar to this......
Total will be 12
Uniques will be 10

IDCol LCol M
1Y
2Y
3 Y
4
5
6UY
7 Y
8 Y
9U
10UY
11 Y
12 Y

<colgroup><col style="width:48pt" width="64" span="3"> </colgroup><tbody>
</tbody>



<tbody>
</tbody>
 
Last edited:
Upvote 0
Control+shift+enter, not just enter:

=SUM(IF($L$2:$L$13&$M$2:$M$13="",0,1))

This yields a count of 10.

Just enter:

=COUNTIFS($L$2:$M$13,"?*")

This yields a count of 12.

Is this the processing you have in mind?
 
Upvote 0
Control+shift+enter, not just enter:

=SUM(IF($L$2:$L$13&$M$2:$M$13="",0,1))

This yields a count of 10.

Just enter:

=COUNTIFS($L$2:$M$13,"?*")

This yields a count of 12.

Is this the processing you have in mind?

You are an ANGEL!! (y)(y)
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,465
Members
448,965
Latest member
grijken

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