COUNTIF Formula question

honkymagoo2009

New Member
Joined
Sep 22, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello,
I have a largw block of cells that I need to count a wide range of numbers. I seem to have issue copying the COUNTIF formula sequentially into the column.
=COUNTIF(C:G,1)
and then I would hope to continue the formula onward from 1 to 75. I have tried to copy the formula via copy and paste, dragging the black crosshair, creating 2 seperate formulas then highlighting the said cells and dragging black crosshair. Nothing seems to work. I have a SUM formula in a separate column that copies sequentially perfectly. So Im confused as to why the COUNTIF will not copy sequentially?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Your question is not clear.

Consider the alternatives shown and/or provide several examples of your sheet's information.

T202209a.xlsm
ABCDEFGHIJKL
1
216311111
3102222222
411133
544
655
6c
Cell Formulas
RangeFormula
H2:H4H2=COUNTIF(C:G,ROW()-1)
I2:I4I2=COUNTIF(C:G,K2)
J2:J4J2=COUNTIF(C:G,L2)
L2:L76L2=SEQUENCE(75,1,1,1)
Dynamic array formulas.
 
Upvote 0
Here is the basic layout Ive started. in H2 I would like to put the COUNTIF formula. Columns C to G are the cells I want to count how many times the numbers from 1 to 75 appear in the columns C,D,E,F, and G.
The second Image has "show formulas" on, and how I would like formula to copy. From 1 down to 75. Much like I was able to copy the SUM formula to the right.
Am I wrong in doing it this way?
I'm really new to Excel, I'm still learning alot of the ins and outs of it.
if all else fails I'll just copy and then change each single line all the way down.

Thanks for any and all help.

Countif1.JPG


countif2.JPG
 
Upvote 0
Try one of the 4 alternatives shown previously or try

COUNTIF(C:G,ROW(A1)) and fill down.
 
Upvote 0
Try one of the 4 alternatives shown previously or try

COUNTIF(C:G,ROW(A1)) and fill down.
Thank you...but, Im not using any information from row A1, column A plays no part in what I am trying to count.

All of the data has not been entered yet. I am still building the sheet.

I am hoping to find the frequency in which the number from columns C to G. In the entire columns C to G there will be number entered in the cells. 1 to 75. Once all of the data is entered. I want to find out how frequently those numbers appear in those columns.

As an example,with the data shown in the images above, I want to know how many times the number 22 appear In the entire columns of C to G. =COUNTIF(C:G,22) Using 22 as the example, with the data that is shown, the formula should return a result of 2. If we use the example of the number 12, with the given data above, the result should be 4.

I think I am using the wrong formula for what i am trying to do.
Atleast, in the way to have it copy fill. It gives me the result I am looking for, I was just hoping to not have to change every line 75 times.
 
Upvote 0
Each of the suggestions provide the answers that you specified.
You can paste my post into a clean sheet and then review the information with Formulas Evaluate Formula.
Click on the icon below the f(x) in the heading and then move to your sheet and paste.

T202209a.xlsm
ABCDEFGHIJKLM
1Countif increment
23234121922111111
391127451000022
41234657212000033
56971122243555544
644444000055
7000066
8000077
9000088
10111199
1100001010
1211111111
1344441212
1400001313
1500001414
1600001515
1700001616
1800001717
1900001818
2011111919
2100002020
2200002121
2322222222
6c
Cell Formulas
RangeFormula
H2:H23H2=COUNTIF(C:G,ROW()-1)
I2:I23I2=COUNTIF(C:G,ROW(A1))
J2:J23J2=COUNTIF(C:G,L2)
K2:K23K2=COUNTIF(C:G,M2)
M2:M76M2=SEQUENCE(75,1,1,1)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,385
Members
448,956
Latest member
JPav

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