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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,222,017
Messages
6,163,403
Members
451,835
Latest member
kristianb63

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