Countif problem

forexcel

New Member
Joined
Jun 2, 2018
Messages
18
I have a range of codes at column a (about 1500 codes) I used =countif($A$1:$A$2000;EG43) to check if the input code at EG43 is correct and it returned 1 but should have returned 0. EG43 contains R1738* while at A81 there is the value R1738.If i delete the value of A81 countif returns 0 so the problem is at this cell. I guess the * at end is considered as wildcard. Any idea how to avoid this?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Yes, the * is being treated as a wildcard.

Try
=countif($A$1:$A$2000;SUBSTITUTE(EG43;"*";"~*"))
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,952
Members
448,535
Latest member
alrossman

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