Convertir formule en macro

Bonjour à tous j'ai cette formule dans beaucoup de cellule du coup mon fichier rame, est-ce possible de la transformer en Marco? , merci

=SI(C31="";NB.SI(C29;$B1);NB.SI(C31;$B1))
+SI(C35="";NB.SI(C33;$B1);NB.SI(C35;$B1))+SI(C39="";NB.SI(C37;$B1);NB.SI(C39;$B1))+SI(C43="";NB.SI(C41;$B1);NB.SI(C43;$B1))+SI(C47="";NB.SI(C45;$B1);NB.SI(C47;$B1))++SI(C51="";NB.SI(C49;$B1);NB.SI(C51;$B1))+SI(C55="";NB.SI(C53;$B1);NB.SI(C55;$B1))+SI(C59="";NB.SI(C57;$B1);NB.SI(C59;$B1))+SI(C63="";NB.SI(C61;$B1);NB.SI(C63;$B1))+SI(C67="";NB.SI(C65;$B1);NB.SI(C67;$B1))+SI(C71="";NB.SI(C69;$B1);NB.SI(C71;$B1))+SI(C75="";NB.SI(C73;$B1);NB.SI(C75;$B1))+SI(C79="";NB.SI(C77;$B1);NB.SI(C79;$B1))+SI(C83="";NB.SI(C81;$B1);NB.SI(C83;$B1))+SI(C87="";NB.SI(C85;$B1);NB.SI(C87;$B1))+SI(C91="";NB.SI(C89;$B1);NB.SI(C91;$B1))+SI(C95="";NB.SI(C93;$B1);NB.SI(C95;$B1))+SI(C99="";NB.SI(C97;$B1);NB.SI(C99;$B1))+SI(C103="";NB.SI(C101;$B1);NB.SI(C103;$B1))+SI(C107="";NB.SI(C105;$B1);NB.SI(C107;$B1))+SI(C111="";NB.SI(C109;$B1);NB.SI(C111;$B1))+SI(C115="";NB.SI(C113;$B1);NB.SI(C115;$B1))+SI(C119="";NB.SI(C117;$B1);NB.SI(C119;$B1))+SI(C123="";NB.SI(C121;$B1);NB.SI(C123;$B1))+SI(C127="";NB.SI(C125;$B1);NB.SI(C127;$B1))+SI(C131="";NB.SI(C129;$B1);NB.SI(C131;$B1))+SI(C135="";NB.SI(C133;$B1);NB.SI(C135;$B1))+SI(C139="";NB.SI(C137;$B1);NB.SI(C139;$B1))+SI(C143="";NB.SI(C141;$B1);NB.SI(C143;$B1))+SI(C147="";NB.SI(C145;$B1);NB.SI(C147;$B1))+SI(C151="";NB.SI(C149;$B1);NB.SI(C151;$B1))+SI(C155="";NB.SI(C153;$B1);NB.SI(C155;$B1))+SI(C159="";NB.SI(C157;$B1);NB.SI(C159;$B1))+SI(C163="";NB.SI(C161;$B1);NB.SI(C163;$B1))+SI(C167="";NB.SI(C165;$B1);NB.SI(C167;$B1))+SI(C171="";NB.SI(C169;$B1);NB.SI(C171;$B1))+SI(C175="";NB.SI(C173;$B1);NB.SI(C175;$B1))+SI(C179="";NB.SI(C177;$B1);NB.SI(C179;$B1))+SI(C183="";NB.SI(C181;$B1);NB.SI(C183;$B1))+SI(C187="";NB.SI(C185;$B1);NB.SI(C187;$B1))+SI(C191="";NB.SI(C189;$B1);NB.SI(C191;$B1))+SI(C195="";NB.SI(C193;$B1);NB.SI(C195;$B1))+SI(C199="";NB.SI(C197;$B1);NB.SI(C199;$B1))+SI(C203="";NB.SI(C201;$B1);NB.SI(C203;$B1))+SI(C207="";NB.SI(C205;$B1);NB.SI(C207;$B1))+SI(C211="";NB.SI(C209;$B1);NB.SI(C211;$B1))+SI(C215="";NB.SI(C213;$B1);NB.SI(C215;$B1))+SI(C219="";NB.SI(C217;$B1);NB.SI(C219;$B1))+SI(C223="";NB.SI(C221;$B1);NB.SI(C223;$B1))+SI(C227="";NB.SI(C225;$B1);NB.SI(C227;$B1))+SI(C231="";NB.SI(C229;$B1);NB.SI(C231;$B1))+SI(C239="";NB.SI(C237;$B1);NB.SI(C239;$B1))+SI(C243="";NB.SI(C241;$B1);NB.SI(C243;$B1))+SI(C247="";NB.SI(C245;$B1);NB.SI(C247;$B1))+SI(C251="";NB.SI(C249;$B1);NB.SI(C251;$B1))+SI(C255="";NB.SI(C253;$B1);NB.SI(C255;$B1))+SI(C259="";NB.SI(C257;$B1);NB.SI(C259;$B1))+SI(C263="";NB.SI(C261;$B1);NB.SI(C263;$B1))+SI(C267="";NB.SI(C265;$B1);NB.SI(C267;$B1))+SI(C271="";NB.SI(C259;$B1);NB.SI(C271;$B1))+SI(C275="";NB.SI(C273;$B1);NB.SI(C275;$B1))+SI(C279="";NB.SI(C277;$B1);NB.SI(C279;$B1))+SI(C283="";NB.SI(C281;$B1);NB.SI(C283;$B1))+SI(C287="";NB.SI(C285;$B1);NB.SI(C287;$B1))+SI(C291="";NB.SI(C289;$B1);NB.SI(C291;$B1))+SI(C295="";NB.SI(C293;$B1);NB.SI(C295;$B1))+SI(C299="";NB.SI(C297;$B1);NB.SI(C299;$B1))+SI(C303="";NB.SI(C301;$B1);NB.SI(C303;$B1))+SI(C307="";NB.SI(C305;$B1);NB.SI(C307;$B1))

Bonjour,

A la vue de la formule, tu ferais bien mieux de placer un fichier exemple sans données conficentielles et d'expliquer la démarche de ta formule

Là, je ne veux même pas décrypter cette formule

Salut merci pour ton retour

15test2.xlsx (215.63 Ko)

en fait si je le fais sur 6 mois le fichier monte à 11mo

Re,

Pour moi la formule en C1 à tirer jusqu'àC13 devrait faire l'affaire

=NB.SI($C$29:$D$307;B1)

merci de vais essayer

ben fate c'est plus compliqué car: c'est un tour de service et il ont un tour attribué et de modifications ta formule prends en compte le nb de la valeur mais pas la modif, je m'explique si quelqu'un est est en sp1n et que lui change de poste il faut alors que dans le compteur ca ne le compte plus

Re,

Teste avec cette macro

13test2.xlsm (213.18 Ko)
Rechercher des sujets similaires à "convertir formule macro"