countif not counting

EvonS

Board Regular
Joined
Jun 1, 2016
Messages
111
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Sheet 1 has a column with a number of values selected from a drop down list (This 'Main' list is defined on a separate sheet 3)

Sheet 2 column A reflects the 'Main' list then column B uses a countif statement to count how many times the value in A appears. (See below)

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]a
[/TD]
[TD]b
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]=sheet 3 list
[/TD]
[TD]=countif a1 appears on sheet 1
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]=sheet 3 list
[/TD]
[TD]=countif a2 appears on sheet 1
[/TD]
[/TR]
</tbody>[/TABLE]






However the formulas are not counting all the times the value appears. I'm assuming I don't need to use trim because everything is based off of the same main list. Am I missing something?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
So I just used this conditional formatting formula <code>=LEN($A2)>LEN(TRIM($AA4882)) and it didn't highlight anything of note.</code>
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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