PC Review


Reply
Thread Tools Rate Thread

Data Validation Formula

 
 
salgud
Guest
Posts: n/a
 
      10th Jul 2009
I'm clueless on this one, not even sure if it can be done. I've got a
spreadsheet with the following columns: Date of Birth, Start of Service,
End of Service and Days of Service (difference between SoS and EoS), no
problem. But in this situation, the SoS and the EoS have to be the same
month. Since I've already set validation criteria on those fields, I'm
trying to figure out if I can create validation criteria in the Days of
Service cell to check to see if both the SoS and EoS are the same month.
Does anyone know how to do this?

If it can't be done this way, I'll just write code to check it, as I'm
already doing other code for other validation criteria that can't be done
using the validation criteria function of XL. My first choice is to put it
in as Validation Criteria, if possible.

Thanks again!
 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      10th Jul 2009
My worksheet begins with text DoB in A1 and dates beginning in row 2

DoB SoS EoS DoS(months)
01/01/1950 01/02/1980 01/03/2000 241

If I select all the DoS dates I can apply conditional formatting
Formula Is =MONTH(B2)<>MONTH(C2)
and add whatever formatting I need
(I use the universal date format of dd/mm/yyy)
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"salgud" <(E-Mail Removed)> wrote in message
news:wt3r4p9g6ynn$.(E-Mail Removed)...
> I'm clueless on this one, not even sure if it can be done. I've got a
> spreadsheet with the following columns: Date of Birth, Start of Service,
> End of Service and Days of Service (difference between SoS and EoS), no
> problem. But in this situation, the SoS and the EoS have to be the same
> month. Since I've already set validation criteria on those fields, I'm
> trying to figure out if I can create validation criteria in the Days of
> Service cell to check to see if both the SoS and EoS are the same month.
> Does anyone know how to do this?
>
> If it can't be done this way, I'll just write code to check it, as I'm
> already doing other code for other validation criteria that can't be done
> using the validation criteria function of XL. My first choice is to put it
> in as Validation Criteria, if possible.
>
> Thanks again!



 
Reply With Quote
 
salgud
Guest
Posts: n/a
 
      10th Jul 2009
On Fri, 10 Jul 2009 14:45:53 -0300, Bernard Liengme wrote:

> =MONTH(B2)<>MONTH(C2)


Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula for Data Validation Nadine Microsoft Excel Programming 1 27th May 2010 11:57 PM
Data Validation and Formula Hasnain Microsoft Excel Programming 1 1st Mar 2008 11:14 AM
Can I use formula with data validation? =?Utf-8?B?amI=?= Microsoft Excel Misc 1 24th Oct 2007 01:49 PM
data validation formula =?Utf-8?B?S2ltYmVybHk=?= Microsoft Excel Misc 4 12th Nov 2006 03:01 PM
Data validation Formula =?Utf-8?B?RkE=?= Microsoft Excel Misc 0 28th Sep 2005 02:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:34 AM.