Total of companies in sheet But having a problem

Mikelowrey

Board Regular
Joined
Apr 20, 2014
Messages
57
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I have a sheet with over 50K companies, now here is the thing, some companies repeats themselves in the sheet because the have multiple licenses. What I would like to know is how can I know the total of companies "by name" even tho they have multiples licenses.

Hopefully I wrote the right way.. :)

thank you !
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(1-(A2:A50000=""),MATCH(A2:A1000,A2:A50000,0)),ROW(A2:A50000)-ROW(A2)+1),1))

where A2:A50000 is the range which houses company names.

This gives you a unique count of the companies in your data.
 
Upvote 0
Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(1-(A2:A50000=""),MATCH(A2:A1000,A2:A50000,0)),ROW(A2:A50000)-ROW(A2)+1),1))

where A2:A50000 is the range which houses company names.

This gives you a unique count of the companies in your data.

ok, so If I have the company name in column G, this is what I should do?

=SUM(IF(FREQUENCY(IF(1-(G2:G50000=""),MATCH(G2:G1000,G2:G50000,0)),ROW(G2:G50000)-ROW(G2)+1),1))

Thanks!
 
Upvote 0
ok, so If I have the company name in column G, this is what I should do?

=SUM(IF(FREQUENCY(IF(1-(G2:G50000=""),MATCH(G2:G1000,G2:G50000,0)),ROW(G2:G50000)-ROW(G2)+1),1))

Thanks!

=SUM(IF(FREQUENCY(IF(1-(G2:G50000=""),MATCH(G2:G50000,G2:G50000,0)),ROW(G2:G50000)-ROW(G2)+1),1))

This must be confirmed with control+shift+enter, not just enter.

 
Upvote 0
=SUM(IF(FREQUENCY(IF(1-(G2:G50000=""),MATCH(G2:G50000,G2:G50000,0)),ROW(G2:G50000)-ROW(G2)+1),1))

This must be confirmed with control+shift+enter, not just enter.


ETA:

I did get a value of 0 at the beginning but then I got a value. So the next questions is the definition of this code, what did it look for?
 
Last edited:
Upvote 0
Control+shift+enter >> Press down the control and the shift keys at the same time, while you hit the enter key. If done correctly, Excel itself puts a pair of { and } around the formula in recognition.


Yes, it added the {} but its taking a while to "process". what is it that the code specifically looks for?
 
Upvote 0
This is what I did:

=SUM(IF(FREQUENCY(IF(1-(G3:G80368=""),MATCH(G3:G80368,G3:G80368,0)),ROW(G3:G80368)-ROW(G3)+1),1))

press ctrl shift enter and it still gives me a value of 0

** It did add the {}

eTA:
I did get a final value which took a while. thank you for the great support and quick answers!
 
Last edited:
Upvote 0
This is what I did:

=SUM(IF(FREQUENCY(IF(1-(G3:G80368=""),MATCH(G3:G80368,G3:G80368,0)),ROW(G3:G80368)-ROW(G3)+1),1))

press ctrl shift enter and it still gives me a value of 0

** It did add the {}

eTA:
I did get a final value which took a while. thank you for the great support and quick answers!

Would you post a sample 10 rows and indicate the desired outcome for that sample?
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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