JayakrishnanJ
New Member
- Joined
- Jul 12, 2011
- Messages
- 16
Hello friends,
The following function i tried to use it in excel cell, but its too long, so i want to do it in VB, please help me in doing it in VB, I am bit new to this .
IF(C4="Aluminum Electrolytic Capacitor","CAPAE",
IF(AND(C4="Chip Array",E4="NP"),"CAPC",
IF(AND(C4="SIP",E4="NP"),"SIP",
IF(AND(C4="Chip",E4="NP"),"CAPC",
IF(AND(C4="Chip",E4="P"),"CAPCP",
IF(AND(C4="Axial Lead",E4="NP"),"CAPAD",
IF(AND(C4="Axial Lead",E4="P"),"CAPADP",
IF(AND(C4="Radial Lead",E4="NP"),CAPRD,
IF(AND(C4="Radial Lead",E4="P"),"CAPRDP",
IF(AND(C4="Molded Body",E4="NP"),"CAPM","CAPMP"))))))
Thanks,
Jayakrishnan J.
The following function i tried to use it in excel cell, but its too long, so i want to do it in VB, please help me in doing it in VB, I am bit new to this .
IF(C4="Aluminum Electrolytic Capacitor","CAPAE",
IF(AND(C4="Chip Array",E4="NP"),"CAPC",
IF(AND(C4="SIP",E4="NP"),"SIP",
IF(AND(C4="Chip",E4="NP"),"CAPC",
IF(AND(C4="Chip",E4="P"),"CAPCP",
IF(AND(C4="Axial Lead",E4="NP"),"CAPAD",
IF(AND(C4="Axial Lead",E4="P"),"CAPADP",
IF(AND(C4="Radial Lead",E4="NP"),CAPRD,
IF(AND(C4="Radial Lead",E4="P"),"CAPRDP",
IF(AND(C4="Molded Body",E4="NP"),"CAPM","CAPMP"))))))
Thanks,
Jayakrishnan J.