CountIF (1 Viewer)

Number11

Member
Local time
Today, 11:14
Joined
Jan 29, 2020
Messages
607
how do i copy this formula to all rows

=COUNTIF(A:A,A112911)

if i drag it it changed the row number

=COUNTIF(A:A,A112912)
=COUNTIF(A:A,A112913)
=COUNTIF(A:A,A112914)
=COUNTIF(A:A,A112915)


and so on..
 

Josef P.

Well-known member
Local time
Today, 12:14
Joined
Feb 2, 2023
Messages
826
This will be difficult in an Access query (used forum: Microsoft Access Discussion -> Queries). ;)

In Excel:
=COUNTIF(A:A,A$112911)
... or simply refer to the top line in the subsequent lines, as it will always be the same value.
 

Gasman

Enthusiastic Amateur
Local time
Today, 11:14
Joined
Sep 21, 2011
Messages
14,301
how do i copy this formula to all rows

=COUNTIF(A:A,A112911)

if i drag it it changed the row number

=COUNTIF(A:A,A112912)
=COUNTIF(A:A,A112913)
=COUNTIF(A:A,A112914)
=COUNTIF(A:A,A112915)


and so on..
Why would you want the same value in every cell?
 

Gasman

Enthusiastic Amateur
Local time
Today, 11:14
Joined
Sep 21, 2011
Messages
14,301
It could be a constant value, like a VAT rate or similar set in one place in the sheet?
Ah, I just refer to that one cell each time.
I would use CountIf() to count the various items in my rows/columns.

Like so

TitleCount
Mr
72​
Mrs
184​
Ms
1​
Miss
3​
 

Users who are viewing this thread

Top Bottom