Counting number of times value exist in a column

martyp

Board Regular
Joined
Apr 12, 2006
Messages
61
Hi all,

Please can you help with something...

I have one sheet with different values in Column A. I want to check against each value in Column A to see how many times it appears in Column B of different sheets.

The COUNTIF function doesn't seem to be working?

I'm using for example:
=COUNTIF(Sept10!B2:B4000,"A4")

To see how many times the Value in A4 is matched in B2:B4000 in sheet Sept10 but it returns a value of 0 every time?

Can someone tell me what I'm doing wrong? Is COUNTIF a function that can't be used across different sheets?

Many thanks in advance
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try removing the quotes

=COUNTIF(Sept10!B2:B4000,A4)
 

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,890
Office Version
  1. 365
Platform
  1. Windows
Is A4 your cell containing the value you want to count or the value itself you are trying to count? If it's the cell reference, then remove the quotes and it should work
 

martyp

Board Regular
Joined
Apr 12, 2006
Messages
61
Is A4 your cell containing the value you want to count or the value itself you are trying to count? If it's the cell reference, then remove the quotes and it should work

A4 contains the value I want to count in the other sheets in column B.
Many thanks
 

Forum statistics

Threads
1,141,019
Messages
5,703,763
Members
421,315
Latest member
awaisnazir139

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
Top