formulakkkkkkkk

Upload: mario-alberto-gh

Post on 04-Feb-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/21/2019 Formulakkkkkkkk

    1/1

    =SIFECHA(C9;HOY();"y")&"dias"=EXTRAE(B7;1;2)&EXTRAE(C7;1;2)&EXTRAE(D7;3;2)=SIFECHA(D4;HOY();"y")&" aos"=SI(H5="A";"25";"18")=SI(E11>30;"ADULTO";"JOVEN")=SI(C8="MAANA";"30%";"0%")*D8=SUMAR.SI(B2:B14;"$";E2:E14)Excel no tiene entre sus funciones la de obtener nmeros primosasi que te toca crearla asiEntr al Editor, insert un mdulo y all copi esta macro:Function PRIMOS (x As Integer) As StringFor i = 2 To xIf x Mod i = 0 ThenIf x i ThenPRIMOS = "NO PRIMO"Exit FunctionElsePRIMOS = "PRIMO"Exit FunctionEnd IfEnd IfNext iEnd Function

    Ahora en tu hoja, si por ej. ingresas un valor en B2 en otra celda escribirs:=PRIMOS(B2)