CountIf question

tjc154

Active Member
Joined
Apr 7, 2007
Messages
363
I'm trying do a count of cells in a range that contain the following variable \\AUTXFSWP01\. I tried the following formula but it retuns a value of "0"

=Countif(A2:A250,"\\AUTXFSWP01\"). I also tried removing the backslashes, but it still returns the same.

Is Excel not able to do a count when \ characters are used?

Thanks

Tom
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Will \\AUTXFSWP01\ be the ENTIRE contents of the cell?
Or will that appear mixed in with other text in the cell as well?

Perhaps you want

=Countif(A2:A250,"*\\AUTXFSWP01\*")
 
Upvote 0
surprising...it is working fine for me ...i am getting the counts...
except that it takes "\\" as some address...but still it gives the right counts...
what can be the problem ????
 
Upvote 0
I have a path name that continues after the last back slash. Ex: \\AUTXFSWP01\data\Count
.
The formula in your first reponse works with the **characters.

Thank you

Tom
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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