Shailender Member Jul 10, 2017 #1 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 ABS RANK.xlsm ABS RANK.xlsm 16.2 KB · Views: 1
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.
Debaser Well-Known Member Jul 10, 2017 #2 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.
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.