Hi:
I have an existing formula that works well for me. I would like to use it in a macro.
So I would like to copy the formula in cell Q2.
First here is the formula
=IF(F2="y",(IF(((ISNUMBER(SEARCH("blade",E2))*AND(B2="Server"))),"Blade Server","Card")),(IF(((ISNUMBER(SEARCH("blade",E2))*AND(B2="Server"))),"Blade Enclosure",PROPER(B2))))
Here is what I have in terms of the code
Range("Q2").Formula = "=IF(F2="y",(IF(((ISNUMBER(SEARCH("blade",E2))*AND(B2="Server"))),"Blade Server","Card")),(IF(((ISNUMBER(SEARCH("blade",E2))*AND(B2="Server"))),"Blade Enclosure",PROPER(B2))))"
I get the following error, even before I try to run my macro.
Compile error:
Expected: end of statement
Range("Q2").Formula = "=IF(F2="y",(IF(((ISNUMBER(SEARCH("blade",E2))*AND(B2="Server"))),"Blade Server","Card")),(IF(((ISNUMBER(SEARCH("blade",E2))*AND(B2="Server"))),"Blade Enclosure",PROPER(B2))))"
How can I copy the above formula into cell Q2?
Thank you,
Rocco
I have an existing formula that works well for me. I would like to use it in a macro.
So I would like to copy the formula in cell Q2.
First here is the formula
=IF(F2="y",(IF(((ISNUMBER(SEARCH("blade",E2))*AND(B2="Server"))),"Blade Server","Card")),(IF(((ISNUMBER(SEARCH("blade",E2))*AND(B2="Server"))),"Blade Enclosure",PROPER(B2))))
Here is what I have in terms of the code
Range("Q2").Formula = "=IF(F2="y",(IF(((ISNUMBER(SEARCH("blade",E2))*AND(B2="Server"))),"Blade Server","Card")),(IF(((ISNUMBER(SEARCH("blade",E2))*AND(B2="Server"))),"Blade Enclosure",PROPER(B2))))"
I get the following error, even before I try to run my macro.
Compile error:
Expected: end of statement
Range("Q2").Formula = "=IF(F2="y",(IF(((ISNUMBER(SEARCH("blade",E2))*AND(B2="Server"))),"Blade Server","Card")),(IF(((ISNUMBER(SEARCH("blade",E2))*AND(B2="Server"))),"Blade Enclosure",PROPER(B2))))"
How can I copy the above formula into cell Q2?
Thank you,
Rocco