• 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.

Error Msg while using ABS, Count-if and Rank function

Shailender

Member
Hello All, can someone help out with the formula which consist of ABS, Count-if and Rank function. I am getting an error message when I am trying to execute the code. The end output I have highlighted in sheet1 column B5.
 

Attachments

You must double the quotes in the formula like this:

Code:
ActiveCell.Formula = "=ABS(countif(" & StrColm & ":" & EndColm & ",""=0"")" & "-" & "Rank(" & Newcell & "," & StrColm & ":" & EndColm & "))"

As a side note, all that selecting is unnecessary.
 
Back
Top