Count Values in Cells

philb99

Active Member
Joined
Feb 3, 2014
Messages
389
Office Version
  1. 2010
Platform
  1. Windows
I have a list of countries recorded in Cells from A2 to A1000, some cells have 4 or more countries recorded, and I want to Count certain countries

I have been using this Formula where I have the country that I am looking for entered into Cell C1

=COUNTIF($A$2:$A$100,"*"&C$1&"*")

What it doesn't do is separate those countries with some of the same name like Sudan and South Sudan also North Korea and South Korea

Therefore can any on help with the formula
 
Aladin - I can now work these 4 formulas in Excel 2007 but when I try in 2003 version one of the formula does not work (its the D5 above), a warning states that NAME will be displayed. All of the remaining 3 formulas work

Anything you can do for me please

You get a #NAME? error because 2003 does not have the IFERROR function.

Replace the formula in D5 with the one that follows...
Rich (BB code):
=IF($E5="","",INDEX($A$2:$A$19,SMALL(IF($B$2:$B$19=$E5,
  ROW($B$2:$B$19)-ROW($B$2)+1),COUNTIF($E$5:E5,E5))))
which must be confirmed with control+shift+enter.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,216,473
Messages
6,130,838
Members
449,597
Latest member
buikhanhsang

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