number occurrences from multiple cells.

mythology2

New Member
Joined
Aug 13, 2017
Messages
3
Hi,

I have multiple occurrences of numbers form 1 to 49 between cells A1 and G92. I also have in column K the numbers 1 to 49, one number in each cell.
What I want to do is count the number of times the numbers in cells A1 through to G92 occur and place that number next to it's corresponding number in column K.

I've tried the formula: =SUM(IF(A1:G92=1,1,0)) in the cell next to the number 1 in column K to calculate how many times the number 1 occurs.

I get a return of 0, where i can quite clearly see that the number 1 occurs many times.

This formula I got from the Microsoft website excel help page.
 
Last edited by a moderator:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hello,

You are using an Array Formula ...

=SUM(IF(A1:G92=1,1,0))

So you should use simultaneously the 3 keys Control+Shift+Enter ... instead of the Enter Key ...

HTH
 
Upvote 0
Hello,

You are using an Array Formula ...

=SUM(IF(A1:G92=1,1,0))

So you should use simultaneously the 3 keys Control+Shift+Enter ... instead of the Enter Key ...

HTH

'
thank you, that's not explained very well. I had assumed you pressed the 3 keys BEFORE entering the formula to get into 'array mode'
 
Upvote 0
'
thank you, that's not explained very well. I had assumed you pressed the 3 keys BEFORE entering the formula to get into 'array mode'

No ...

1. You type your formula ...

2. and ... Instead of the standard Enter key ... you have to use the 3 keys simultaneously ...
 
Upvote 0
Also, in L1 entered and copied down:

=INDEX(FREQUENCY($A$1:$G$92,CHOOSE({1,2},$K1-1,$K1)),2)

which is equally effective, maybe even faster.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,021
Latest member
pingpong7117

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