• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Problem. IF with COUNTA Function

vijay.vizzu

Member
Dear All,


I have a sheet with repeated items, so i entered countif formula to get unique count of items without repeatition, so i entered =IF(COUNTIF($J$11:J15,J15)=1,1,"") in cell C11. It works fine, but now in another column i entered =IF(J11<>"",COUNTA($J$11:J11),"") to give serial numbers for cell C11. but when i copy the formula to below cells, it counts formula cells also and wherever formula cell appears it counts but not showing any figure and in next cell it counts. like it appears 1,2,3,5,7 (4,6 are the cells which contains countif formula. So how to resolve this. I don't want to delete countif formula which is in cell C11.


Thanks in advance.
 
Thank you vijay Sharma, but sorry to say this i can't upload my file due to some IT restriction. Sorry for incovenience caused
 
Change your COUNTA function (which counts both text and numbers) to just a COUNT function (counts only numbers) and that should solve your problem.
 
Back
Top