Counting Text Pulled With A formula

karmaimages

Board Regular
Joined
Oct 1, 2009
Messages
112
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a list of columns in a sheet, which pulls a "Pass" or "Fail" from other sheets, I want to add a count on the word pass but this isn't working, it's displaying a zero value.

The formula that I tried was =countif(B:B, "Pass")

I suspect that because the text is pulled form another sheet this is why it isn't counting the value of the cell, how do I get around this issue?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi,

I have a list of columns in a sheet, which pulls a "Pass" or "Fail" from other sheets, I want to add a count on the word pass but this isn't working, it's displaying a zero value.

The formula that I tried was =countif(B:B, "Pass")

I suspect that because the text is pulled form another sheet this is why it isn't counting the value of the cell, how do I get around this issue?
Write Sheet name in range from where you are looking values
 
Upvote 0
Your data may have leading or trailing spaces, " Pass ", if that is the case you need to remove those and if the column B in overview tab has just a sigle word, you can do it easily by replacing nothing with space.

Ctrl + H > Find What Put a pace
Replace with > Nothing

or post your data using below xl2bb link.
 
Upvote 0
1692784284254.png


Total is the last cell.

The formula in the Pass cell there is

='Employee1'!B32

So pulls that reference from another sheet
 
Upvote 0
Assuming the image is of column B what do these two return
Excel Formula:
=len(b34)
and
Excel Formula:
=char(left(b34))
 
Upvote 0
Solution
Assuming the image is of column B what do these two return
Excel Formula:
=len(b34)
and
Excel Formula:
=char(left(b34))
That was it, there is a space at the end of the word, whoever created the options for some dropdowns added the extra space :mad:
 
Upvote 0
Glad it's sorted & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

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