ziad alsayed
Well-known Member
- Joined
- Jul 17, 2010
- Messages
- 665
dear all
this is an array formula,i press ( CTRL+SHIFT+ENTER) for it to work in excel
how can i write it in VBA?
let say i want to put in cells(5,3).
appreciate any help
this is an array formula,i press ( CTRL+SHIFT+ENTER) for it to work in excel
how can i write it in VBA?
Code:
=SUM(VLOOKUP(RC1,'PHC 2011'!C1:C86,MATCH(CONCATENATE(R1C1,R4C),CONCATENATE('PHC 2011'!R4,'PHC 2011'!R5),0),0),VLOOKUP(RC1,'Apapa 2011'!C1:C86,MATCH(CONCATENATE(R1C1,R4C),CONCATENATE('Apapa 2011'!R4,'Apapa 2011'!R5),0),0),VLOOKUP(RC1,'VI 2011'!C1:C86,MATCH(CONCATENATE(R1C1,R4C),CONCATENATE('VI 2011'!R4,'VI 2011'!R5),0),0),VLOOKUP(RC1,'Kano 2011'!C1:C86,MATCH(CONCATENATE(R1C1,R4C),CONCATENATE('Kano 2011'!R4,'Kano 2011'!R5),0),0),VLOOKUP(RC1,'Ikeja 2011'!C1:C86,MATCH(CONCATENATE(R1C1,R4C),CONCATENATE('Ikeja 2011'!R4,'Ikeja 2011'!R5),0),0))
let say i want to put in cells(5,3).
appreciate any help