COUNTIF not working

atisyam

New Member
Joined
Sep 19, 2018
Messages
37
Hello, hope for anyone that can help.

Basically, I have input a COUNTIF function for Column B such as =countif(B:B,B2=1). A popup will occur if there are any duplicate values. When I entered this and run, it worked as intended.

Then on a different column, I used a Vlookup to carry out another function. In this example, the column B is where I put my COUNTIF. The thread can be seen here: https://www.mrexcel.com/forum/excel...ata-multiple-columns-rows-does-not-match.html

The true/false was able to work perfectly. However, when I try to run the countif function to check for duplicate values, it suddenly cannot run. I did not make any changes tot he countif formula.

I was thinking was it because of the linking of vlookup. Like as in user cannot use the same columns for 2 different purposes where in my case; column B to check for duplicate as well as column B to run the vlookup function?

I hope to get an advice on this. If attaching an excel sheet to make the question clearer, I would be more than happy to do so. I need help :(
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I did not make any changes to the countif formula

Instead of..
=countif(B:B,B2=1)
try...
=countif(B:B,B2)=1
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,767
Members
449,049
Latest member
greyangel23

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