Advice on a formula

datadummy

Active Member
Joined
Mar 16, 2017
Messages
312
Office Version
  1. 365
Platform
  1. Windows
I am using the following formula =COUNTIF(Sheet1!F:F,"*MEDICAL CENTER : PROPERTY : BHU") this is returning an incorrect count and I can't figure out why, there are only 9 events and my formula is returning 148. The portion in parenthesis is copied and pasted from the raw data to assure I captured it exactly as it is entered. Any suggestions on a better more precise formula?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
can you post a mini worksheet with the xl2bb add in? (Link is below.)

Please give more information to help the forum help you. There could be any number of reasons. but we can't guess what data you have in the 148 + cells.
 
Upvote 0
I think that it may be the * in the formula. That usually represents a wildcard.
 
Upvote 0
can you post a mini worksheet with the xl2bb add in? (Link is below.)

Please give more information to help the forum help you. There could be any number of reasons. but we can't guess what data you have in the 148 + cells.
I've tried uploading via the link in the past and due to being on a work computer I am unable to.
 
Upvote 0
And to add onto what @Skybot says... if you are not using the asterisk for a wildcard but truly an asterisk. then precede that with a tilde.
 
Upvote 0
try:

Excel Formula:
COUNTIF(Sheet1!F:F,"~*MEDICAL CENTER : PROPERTY : BHU")
 
Upvote 0
I think that it may be the * in the formula. That usually represents a wildcard.
I removed the * and I am still getting the same results. I have checked all the filters to assure I'm not missing any with the term and I verified they're only 9 such events yet I am still getting a count of 148.
 
Upvote 0
can you paste 30 or so of the values in a table here? the icon above the chat window after the double quote will format a table for you.
 
Upvote 0
1677111467928.png
 
Upvote 0

Forum statistics

Threads
1,215,103
Messages
6,123,105
Members
449,096
Latest member
provoking

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