R1C1 Style formula does not yield any value

kumthekarg

New Member
Joined
Oct 17, 2013
Messages
6
Hi All,

Here is the code I am using to find duplicates amongst certain cell values ( max 12 here). I have been able to implement it but by using a variable in the R1C1 style formula.

Here is the code:

dd = -1 * (12 - Frozen)
ActiveCell.FormulaR1C1 = "=IF(SUM(IF(FREQUENCY(MATCH(RC" & dd & " :RC[-1],RC" & dd & ":RC[-1],0),MATCH(RC" & dd & ":RC[-1],RC" & dd & " :RC[-1],0))>0,1))<12,1,0)"

It does not give me any error but neither gets any value and rather the cell remains blank. Can you please help me find he mistake I am committing here?

Any help is much appreciated..
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,217,342
Messages
6,136,004
Members
449,976
Latest member
DittoG

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