CONDITIONAL FORMULA

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

Guest

IS IT POSSIBLE TO WRITE A CONDITIONAL FORMULA WHERE THE LOGICAL CONDITION IS
EITHER A BLANK CELL OR A DATE?

THEN, IF THAT IS POSSIBLE CAN TRUE BE A COPY COMMAND AND FALSE A DOWN ONE
CELL COMMAND?
 
Hello,

Try the following:

Sub Conditional()
With Range("a1")
If IsDate(.Value) Or .Value = vbNullString Then
.Copy .Item(1, 2)
Else: .Item(2).Select
End If
End With
End Sub

Where .Item(1, 2) is one cell to the right.

Regards,
Nate Oliver
 

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