Validation - Weekend Or text

  • Thread starter Thread starter jnk101
  • Start date Start date
J

jnk101

Hi,

I'm trying to validate cell D1 so only weekend dates are approved *or
the text Paid. I have tried this in the custom formula box:

=OR(WEEKDAY(D1,2)>5,D1="Paid")

This accepts weekend dates but for some reason won't accept the tex
Paid.

What am I doing wrong
 
Hi!

The problem is that if D1 = paid (or any text value for that matter), it
causes the WEEKDAY function to error with #VALUE!.

Try this:

=OR(TEXT(D1,"ddd")="Sat",TEXT(D1,"ddd")="Sun",D1="Paid")

Biff
 
That doesn't work in DV, it errors on input. See Biff's reply for a working
solution.
 

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