COUNT IF... I think! XL2000

AnderE

New Member
Joined
Feb 17, 2011
Messages
12
Hi,

I have a list of 100 codes (eg C18EA) and I am trying to count how many times each code occurs in several other lists, eg H1:H26014

So far I have the following:

=COUNTIF(H$1:H$26014,"*C18EA*")

But doing it this way I have to do each code individually or at least add the correct ocde into each formula.

Say C18EA is in cell A1, is there any way that I can tell excel to count the number of times A1 is found in the list H1:H26014? I have tried the following, but it doesn't work - it tells me I have too few arguments...

=COUNTIF(H$1:H$26014=A1)

I hope this makes sense!

Any help appreciated.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Try this out,

Select a cell in the table, then look to sort A to Z then use the Data Tab and look at subtotals, you can set the subtotal to count based on your code column.
 
Upvote 0
Thankyou to you both! Worked a treat!

I had also tried ,"*A1*" and ,"*"&A1 but obviously neither worked....

Thankyou so much!
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,853
Members
452,948
Latest member
UsmanAli786

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