Hola,
Este código hace literalmente eso
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Me.Range("B2")) Is Nothing Then
Application.EnableEvents = False
Me.Range("B3").ClearContents
With Me.Range("B3").Validation
.Delete
Select Case Me.Range("B2").Value
Case 1
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _
Operator:=xlBetween, Formula1:="Avion,Barco"
Case 3
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _
Operator:=xlBetween, Formula1:="Barco"
Case Else
End Select
End With
Application.EnableEvents = True
End If
End Sub
Por
Israel Cassales, · publicado
Estimados,
Estoy buscando una forma de extraer el mes de una fecha con formato condicional en POWER QUERY.
En EXCEL la formula quedaría de esta manera : SI(A1<>"";MES(A1);"")
en POWER QUERY sería usando CUSTOM COLUMN sería algo como (?)
MES GUIA = IF (CAMPO FECHA) is not null then Month(CAMPOFECHA)
Otherwise null
De antemano, muchísimas gracias.
Saludos!!