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?
 
well, i think you need to give some actual data that you don't want counted. Please.
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I type before I think sometimes....

Did you type MEDICAL CENTER : PROPERTY : BHU in cell H200?
Oh I think I did that process wrong I put MEDICAL CENTER : PROPERTY : BHU in cell J6 "criteria" and referenced J:J.
 
Upvote 0
For what its worth I copied and pasted the filtered data to a separate tab and then tried the formula and it returned 9 as expected.
 
Upvote 0
That's fine. Type it into H200 on Sheet2.
Ok here is what I have entered =COUNTIF(Sheet2!F:F,Sheet2!H200) it returned 0. Should I take the Sheet2 reference out as I have put the formula on Sheet3?
 
Upvote 0
For what its worth I copied and pasted the filtered data to a separate tab and then tried the formula and it returned 9 as expected.
There must've been some hidden rows.? Oh well, it's working, right?
 
Upvote 0
There must've been some hidden rows.? Oh well, it's working, right?
If I filter and then copy and paste it works, I'm hoping to avoid the copy and paste and just be able to reference the unfiltered data.
 
Upvote 0

Forum statistics

Threads
1,215,869
Messages
6,127,421
Members
449,382
Latest member
DonnaRisso

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