Counting individual numbers in a range of cells with multiple numbers per cell

themeekclan

New Member
Joined
Jun 29, 2017
Messages
2
I'm looking for help to figure out how to count how many times a number occurs in a range of cells where there are multiple numbers per cell.

For example, if the range I'm searching has 351, 123, 240, 95, 28 and 111 located in multiple cells (not in any single column or row), how do I count how many one's, two's, three's, etc there are.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
using helpers A1=351 B1=3 C1=5 D1=1 then have 10 more columns counting the 1's, 2's etc in E1 to N1
 
Upvote 0
Welcome to Mr Excel

You can try something like this

[Table="class: grid"][tr][td="bgcolor: #DCE6F1"][/td][td="bgcolor: #DCE6F1"]
A
[/td][td="bgcolor: #DCE6F1"]
B
[/td][td="bgcolor: #DCE6F1"]
C
[/td][td="bgcolor: #DCE6F1"]
D
[/td][td="bgcolor: #DCE6F1"]
E
[/td][td="bgcolor: #DCE6F1"]
F
[/td][td="bgcolor: #DCE6F1"]
G
[/td][/tr]
[tr][td="bgcolor: #DCE6F1"]
1
[/td][td][/td][td][/td][td][/td][td][/td][td]
Concatenation​
[/td][td]
Number​
[/td][td]
Count​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
2
[/td][td]
351​
[/td][td][/td][td][/td][td][/td][td]
3512402812395111​
[/td][td]
1​
[/td][td]
5​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
3
[/td][td][/td][td][/td][td]
123​
[/td][td][/td][td][/td][td]
2​
[/td][td]
3​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
4
[/td][td]
240​
[/td][td][/td][td][/td][td][/td][td][/td][td]
3​
[/td][td]
2​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
5
[/td][td][/td][td][/td][td]
95​
[/td][td][/td][td][/td][td]
4​
[/td][td]
1​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
6
[/td][td]
28​
[/td][td][/td][td][/td][td][/td][td][/td][td]
5​
[/td][td]
2​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
7
[/td][td][/td][td][/td][td]
111​
[/td][td][/td][td][/td][td]
6​
[/td][td]
0​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
8
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td]
7​
[/td][td]
0​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
9
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td]
8​
[/td][td]
1​
[/td][/tr]

[tr][td="bgcolor: #DCE6F1"]
10
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td]
9​
[/td][td]
1​
[/td][/tr]
[/table]


Formula in E2
=A2&A4&A6&C3&C5&C7

Formula in G2 copied down
=LEN($E$2)-LEN(SUBSTITUTE($E$2,F2,""))

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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