countif using concate function

akkinarula

New Member
Joined
Sep 2, 2011
Messages
27
hi all ,
i have tried following formula it runs without error but it does not show result

crange2 = "G" & Trim(Str(i)) & ":H" & Trim(Str(i))

Sheets("Rcl Mix").Select

Range(crange2).Select

ActiveCell.FormulaR1C1 = "=COUNTIF('Customer''s Details'!R13C53:R262C53,(CONCATENATE('RCL Mix'!R" & Trim(Str(i)) & "C2,R9C7)))"

i think underlined sentence is not working is anything i have written wrong
plz help me
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I think you cannot use CONCATENATE and & at the same time as it is the same..
Either use CONCATENATE(text1,text2,...) or text1 & text2 & ...


i have tried this it is worked

pstr1 = "=CONCATENATE('Customer''s Details'!R" & Trim(Str(a)) & "C11" & ","" "")"


ActiveCell.FormulaR1C1 = pstr1
 
Upvote 0
i have tried this it is worked

pstr1 = "=CONCATENATE('Customer''s Details'!R" & Trim(Str(a)) & "C11" & ","" "")"


ActiveCell.FormulaR1C1 = pstr1


ok now i have removed & part and written as

crange1 = "G" & Trim(Str(i)) & ":H" & Trim(Str(i))
cstr1 = "B" & Trim(Str(i)) & ":C" & Trim(Str(i))
cstr2 = "G9:H9"
Range(crange1).Select
ActiveCell.FormulaR1C1 = _
"=COUNTIF('Customer''s Details'!R13C53:R262C53,(Concatenate(cstr1,cstr2)))"


still result is not displaying .
plz anybody knows the solution for this plz tell me.
 
Upvote 0

Forum statistics

Threads
1,224,605
Messages
6,179,860
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