Anda di halaman 1dari 8

SENATIVITUAL EXCELAPLICADOALOSCOSTOSYPRESUPUESTOS

FUNCIONESDEFECHAYHORA

AHORA AO DIA DIA.LAB
DIA.LAB.INTL DIA.LAB.INTL DIAS.LAB DIAS.LAB.INTL
DIAS360 DIASEM FECHA FECHA.MES
FECHANUMERO FIN.MES FRAC.AO HORA
HORANUMERO HOY MES MINUTO
NSHORA NUM.DE.SEMANA

AHORA
Obtienelafechayhoraactual.
Sintaxis:AHORA()
Ejemplos
AHORA() Devuelvelafechayhoraactual



AO
Regresaelaodelafechaespecificada.
Sintaxis:AO(fecha)
Fecha(obligatorio):Lafechadelaquesedeseaconocerelao.
Ejemplos
AO(31/01/2012) Devuelve2012
AO(HOY()) DevuelveAoactual



DIA
Regresaeldadelmesdeunafecha.
Sintaxis:DIA(fecha)
Fecha(obligatorio):Lafechadelaquesedeseaconocerelda.
Ejemplos
DIA(31/01/2012) Devuelve31
DIA(HOY()) Devuelvedaactual

PAGINA1
SENATIVITUAL EXCELAPLICADOALOSCOSTOSYPRESUPUESTOS



DIA.LAB
Obtieneelnmerodeseriedeldalaborableapartirdeunafechaespecificada.
Sintaxis:DIA.LAB(fecha_inicial,dias_lab,[festivos])
fecha_inicial(obligatorio):Lafechaenlaqueseiniciaelconteo.
dias_lab(obligatorio):Nmerodedaslaborablesacontardespusdelafecha
inicial.
festivos(opcional):Unrangodondeestnespecificadosdasfestivosquesern
excluidosdelconteo.
Ejemplos
DIA.LAB(01/01/2011,20) Devuelve40571querepresentael28/01/2011



DIA.LAB.INTL
Obtieneelnmerodeseriedeldalaborableapartirdeunafechaespecificada
permitiendoindicarlosdasquecorrespondenalfindesemana.
Sintaxis:DIA.LAB.INTL(fecha_inicial,dias_lab,[fin_de_semana],[festivos])
fecha_inicial(obligatorio):Lafechaenlaqueseiniciaelconteo.
dias_lab(obligatorio):Nmerodedaslaborablesacontardespusdelafecha
inicial.
fin_de_semana(opcional):Dasdefindesemana.
festivos(opcional):Unrangodondeestnespecificadosdasfestivosquesern
excluidosdelconteo.
Ejemplos
DIA.LAB.INTL(01/01/2011,20,11) Devuelve40568querepresentael25/01/2011
coneldadomingocomofindesemana
DIA.LAB.INTL(01/01/2011,20,17) Devuelve40568querepresentael25/01/2011
coneldasbadocomofindesemana

PAGINA2
SENATIVITUAL EXCELAPLICADOALOSCOSTOSYPRESUPUESTOS

DIAS.LAB
Obtieneelnmerodedaslaborablesentredosfechasespecificadas.
Sintaxis:DIAS.LAB(fecha_inicial,fecha_final,[festivos])
fecha_inicial(obligatorio):Lafechaenlaqueseiniciaelconteo.
fecha_final(obligatorio):Lafechadondeterminaelconteo.
festivos(opcional):Unrangodondeestnespecificadosdasfestivosquesern
excluidosdelconteo.
Ejemplos
DIAS.LAB(01/01/2011,31/01/2011) Devuelve21
DIAS.LAB(HOY(),HOY()+60) Devuelvedaslaborablesenlos
siguientes60das



DIAS.LAB.INTL
Obtieneelnmerodedaslaborablesentredosfechasespecificadasconparmetros
defindesemanapersonalizados.
Sintaxis: DIAS.LAB.INTL(fecha_inicial,fecha_final,[fin_de_semana],[festivos])
fecha_inicial(obligatorio):Lafechaenlaqueseiniciaelconteo.
fecha_final(obligatorio):Lafechadondeterminaelconteo.
fin_de_semana(opcional):Dasdefindesemana.
festivos(opcional):Unrangodondeestnespecificadosdasfestivosquesern
excluidosdelconteo.
Ejemplos
DIAS.LAB.INTL(01/01/2011,31/01/2011,7) Devuelve22
DIAS.LAB.INTL(HOY(),HOY()+60,17) Devuelvedaslaborablesenlossiguientes60
dasconsbadocomodadedescanso

DIAS360
Devuelveelnmerodedasentredosfechasutilizandounaode360das.
Sintaxis:DIAS360(fecha_inicial,fecha_final,mtodo)
fecha_inicial(obligatorio):Fechadeiniciodelclculo.
fecha_final(obligatorio):Fechafinaldelclculo.

PAGINA3
SENATIVITUAL EXCELAPLICADOALOSCOSTOSYPRESUPUESTOS

mtodo(opcional):Siesfalsosetomaelmtodoamericanoysiesverdadero
elmtodoeuropeo.
Ejemplos
DIAS360(01/01/2012,01/07/2012) Devuelve180
DIAS360(01/01/2012,01/02/2012)) Devuelve30

DIASEM
Obtieneeldadelasemanadeunafechaespecificada.
Sintaxis:DIASEM(fecha,[tipo])
fecha(obligatorio):Lafechadelaquesedeseaconocerelda.
tipo(opcional):Determinaeltipodevalorquesedevolver.Sitipo=1
[Domingo=1,Sbado=7],sitipo=2[Lunes=1,Domingo=7]
Ejemplos
DIASEM(31/01/2011) Devuelve2conDomingocomoprimerda
DIASEM(31/01/2011,2) Devuelve1conLunescomoprimerda



FECHA
Obtieneelnmerodeseriequerepresentaalafechaespecificada.
Sintaxis:FECHA(ao,mes,da)
ao(Obligatorio):Nmeroquerepresentaelaodelafecha.
mes(Obligatorio):Nmeroquerepresentaelmesdelafecha.
da(Obligatorio):Nmeroquerepresentaeldadelafecha.
Ejemplos
FECHA(2010,6,25) Devuelve40354
FECHA(2011,3,30) Devuelve40632

FECHA.MES
Obtieneelnmerodeseriedeunafechaqueesunoovariosmesesposterioreso
anterioresalafechaespecificada.
Sintaxis:FECHA.MES(fecha_inicial,meses)
fecha_inicial(obligatorio):Lafechainicialdondeseiniciarlacuenta.
meses(obligatorio):Elnmerodemesesasumarorestardelafecha_inicial.
Ejemplos

PAGINA4
SENATIVITUAL EXCELAPLICADOALOSCOSTOSYPRESUPUESTOS

FECHA.MES(12/02/2011,2) Devuelve40645querepresentael12/04/2011
FECHA.MES(12/02/2011,1) Devuelve40555querepresentael12/01/2011



FECHANUMERO
Convierteuntextoconformatodefechaenunnmerodeseriedefecha.
Sintaxis:FECHANUMERO(texto_de_fecha)
texto_de_fecha(obligatorio):Eltextoquerepresentalafecha.
Ejemplos
FECHANUMERO(19/10/2009) Devuelve40105
FECHANUMERO(20101231) Devuelve40543

FIN.MES
Obtieneelnmerodeseriedelltimodademes.
Sintaxis:FIN.MES(fecha_inicial,meses)
fecha_inicial(obligatorio):Fechainicialdelacualseobtendrelfindemes.
meses(obligatorio):Mesesasumarorestardelafechainicialantesde
obtenerelfindemes.
Ejemplos
FIN.MES(A1,0) ObtieneelltimodadelmesdelafechaenA1
FIN.MES(A1,3) Suma3mesesalafechaenA1yobtieneelltimodadeese
mes

FRAC.AO
Calculalafraccindeaoquerepresentaelnmerodedasentredosfechas.
Sintaxis: FRAC.AO(fecha_inicial,fecha_final,base)
fecha_inicial(obligatorio):Lafechainicialelclculo.
fecha_final(obligatorio):Lafechafinaldelclculo.

PAGINA5
SENATIVITUAL EXCELAPLICADOALOSCOSTOSYPRESUPUESTOS

base(opcional):Tipodebaseutilizadoparacontarlosdas[0=(US)30/360,1
=real/real,2=real/360,3=real/365,4=(Europea)30/360].
Ejemplos
FRAC.AO(15/03/2012,23/05/2012) Devuelve0.188888889
FRAC.AO(15/03/2012,23/05/2012,3) Devuelve0.189041096



HORA
Obtienelahoradeunvalordehoraespecificado.
Sintaxis:HORA(hora)
hora(obligatorio):Elvalordetiempoquecontienelahoraquesedesea
conocer.
Ejemplos
HORA(7:30) Devuelve7
HORA(AHORA()) Devuelvehoraactual



HORANUMERO
Convierteuntextoenunnmerodeserieparaunahora.
Sintaxis:HORANUMERO(texto_de_hora)
texto_de_hora(obligatorio):Cadenadetextoquerepresentaunahora.
Ejemplos
HORANUMERO(7:35:40) Devuelve0.316435185
HORANUMERO(21:07:18) Devuelve0.880069444

HOY
Regresalafechadeldadehoy.
Sintaxis: HOY()
Ejemplos

PAGINA6
SENATIVITUAL EXCELAPLICADOALOSCOSTOSYPRESUPUESTOS

HOY()=Lafechadehoy

MES
Regresaelmesdeunafechaespecificada.
Sintaxis:MES(fecha)
fecha(obligatorio):Lafechadelaquesedeseaobtenerelmes.
Ejemplos
MES(31/01/2011) Devuelve1
MES(AHORA()) Devuelvemesactual

MINUTO
Obtieneelminutodeunvalordehoraespecificado.
Sintaxis:MINUTO(hora)
hora(obligatorio):Elvalordehoraquecontieneelminutoquesedesea
conocer.
Ejemplos
MINUTO(7:30) Devuelve30
MINUTO(AHORA()) DevuelveMinutoactual



NSHORA
Obtieneelnmerodeseriequerepresentaunahoraespecificadaenhoras,minutosy
segundos.
Sintaxis:NSHORA(hora,minuto,segundo)
hora(obligatorio):Nmeroquerepresentalahora.
minuto(obligatorio):Nmeroquerepresentalosminutos.
segundo(obligatorio):Nmeroquerepresentalossegundos.
Ejemplos

PAGINA7
SENATIVITUAL EXCELAPLICADOALOSCOSTOSYPRESUPUESTOS

NSHORA(7,35,40)=0.316435185
NSHORA(21,7,18)=0.880069444

NUM.DE.SEMANA
Devuelveelnmerodesemanadentrodeunaoquelecorrespondeaunafecha
indicada.
Sintaxis:NUM.DE.SEMANA(num_de_serie,tipo)
num_de_serie(obligatorio):Lafechadelacualsedeterminarlaseman
dentrodelao.
tipo(obligatorio):Eldadecomienzodelasemana[1=Domingo,2=Lunes]
Ejemplos
NUM.DE.SEMANA(20/09/2009,1) Devuelve39
NUM.DE.SEMANA(20/09/2009,2) Devuelve38

SEGUNDO
Regresaelsegundodelvalordehoraespecificado.
Sintaxis:SEGUNDO(hora)
hora(obligatorio):Lahoraquecontienelossegundosquesedeseaconocer.
Ejemplos
SEGUNDO(12:30:45)=45
SEGUNDO(AHORA())=Elsegundodelahoraactual

PAGINA8

Anda mungkin juga menyukai