#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 337
Default Date verification

I have an input cell date that must be a Sunday
The next colunm over shows this date as a day of the week
I want the second cell to show "Wrong Date" if the date entered is not a
Sunday
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Date verification

=if(weekday(a1)=1,text(a1,"dddd"),"Wrong Date")



Oldjay wrote:

I have an input cell date that must be a Sunday
The next colunm over shows this date as a day of the week
I want the second cell to show "Wrong Date" if the date entered is not a
Sunday


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 337
Default Date verification

Thanks - Is there any way to conditionally format "Wrong Date" to red
"Dave Peterson" wrote:

=if(weekday(a1)=1,text(a1,"dddd"),"Wrong Date")



Oldjay wrote:

I have an input cell date that must be a Sunday
The next colunm over shows this date as a day of the week
I want the second cell to show "Wrong Date" if the date entered is not a
Sunday


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Date verification

Format|conditional formatting:

Cell value is: Equal to: Wrong date

Excel will change that last string to: ="wrong date"



Oldjay wrote:

Thanks - Is there any way to conditionally format "Wrong Date" to red
"Dave Peterson" wrote:

=if(weekday(a1)=1,text(a1,"dddd"),"Wrong Date")



Oldjay wrote:

I have an input cell date that must be a Sunday
The next colunm over shows this date as a day of the week
I want the second cell to show "Wrong Date" if the date entered is not a
Sunday


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 337
Default Date verification

Thanks

"Dave Peterson" wrote:

Format|conditional formatting:

Cell value is: Equal to: Wrong date

Excel will change that last string to: ="wrong date"



Oldjay wrote:

Thanks - Is there any way to conditionally format "Wrong Date" to red
"Dave Peterson" wrote:

=if(weekday(a1)=1,text(a1,"dddd"),"Wrong Date")



Oldjay wrote:

I have an input cell date that must be a Sunday
The next colunm over shows this date as a day of the week
I want the second cell to show "Wrong Date" if the date entered is not a
Sunday

--

Dave Peterson


--

Dave Peterson

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
IF and Date Functions Christ4 Excel Worksheet Functions 3 August 11th 06 04:18 AM
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Insert Automatic, Non-Updating Date Stamp Ken Zenachon Excel Discussion (Misc queries) 8 January 18th 06 06:52 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM


All times are GMT +1. The time now is 09:25 AM.

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

About Us

"It's about Microsoft Excel"