Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jnk101
 
Posts: n/a
Default Validation - Weekend Or text


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 text
Paid.

What am I doing wrong?


--
jnk101
------------------------------------------------------------------------
jnk101's Profile: http://www.excelforum.com/member.php...o&userid=27521
View this thread: http://www.excelforum.com/showthread...hreadid=470377

  #2   Report Post  
Biff
 
Posts: n/a
Default

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

"jnk101" wrote in
message ...

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 text
Paid.

What am I doing wrong?


--
jnk101
------------------------------------------------------------------------
jnk101's Profile:
http://www.excelforum.com/member.php...o&userid=27521
View this thread: http://www.excelforum.com/showthread...hreadid=470377



  #3   Report Post  
Ashish Mathur
 
Posts: n/a
Default

Hi,

Try this

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

Regards,

Ashish Mathur


"jnk101" wrote:


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 text
Paid.

What am I doing wrong?


--
jnk101
------------------------------------------------------------------------
jnk101's Profile: http://www.excelforum.com/member.php...o&userid=27521
View this thread: http://www.excelforum.com/showthread...hreadid=470377


  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

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

--
HTH

Bob Phillips

"Ashish Mathur" wrote in message
...
Hi,

Try this

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

Regards,

Ashish Mathur


"jnk101" wrote:


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 text
Paid.

What am I doing wrong?


--
jnk101
------------------------------------------------------------------------
jnk101's Profile:

http://www.excelforum.com/member.php...o&userid=27521
View this thread:

http://www.excelforum.com/showthread...hreadid=470377




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
data validation list drop down text format too small Bruce Edwards Excel Worksheet Functions 3 May 22nd 05 07:28 PM
Sort or Filter option? Mcobra41 Excel Worksheet Functions 3 February 23rd 05 07:22 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 05:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"