Macros

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I copy a ready formula in Excel into codelanguage for macros?

For shorter formulas (1 line (function) in Excel), it is possible to start
the recorder, activate the formula, and stop the recorder. Then the whole
formula is ready in code for macro. When I try to do this for a formula (4
lines), I get a message that the formula cannot be copied.
 
The formula is:

=ROUNDUP(IF(H16="..";"";IF(H16="...";VLOOKUP(M16;AREA1;VLOOKUP(F16;AREA11;2)+11)+IF(E16>120;0;0);IF(H16="...";VLOOKUP(M16;AREA2;VLOOKUP(F16;AREA22;2)+10)+IF(E16>120;0;0);VLOOKUP(M16;AREA3;VLOOKUP(IF(F16<1000;F16;ROUND(F16;;-2));AREA33;2)+10;FALSE)*IF(F16<1000;1;ROUND(F16;-2)/100))));0)

arno skrev:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top