expected list separator or ) error

akkinarula

New Member
Joined
Sep 2, 2011
Messages
27
Hi all
i m trying to write counif function which count rows of sheet2's one of the column using criteria of sheet3's column2 (which is merged,their column names are 'B' and 'C' and row no is 10)
i've tried following thing but it gives me expected list separator or ) error

and also i have specified merged cell as c2 only(originally it is combination of c2&c3) is it right to specify this way.


ActiveCell.FormulaR1C1 = _
"=COUNTIF('Customer''s Details'!R13C39:R262C39,'RCL Mix'!R" & Trim(Str(i)& "C2)"

i m using dynamic row no using i as variable whose value is put by for loop.
i m using excel 2003
plz help me to solve this problem
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
The there were some changes in the string I posted, a space before an ampersand and a parenthesis were added, does replacing the string in the posted code with what I posted do what you want?
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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