Advertisement

02.29.2008 at 06:17AM PST, ID: 23203710
[x]
Attachment Details

How to create calculated field with IF & AND statements in MOSS 2007

Asked by msomohano in MOSS-Sharepoint, Microsoft Excel Spreadsheet Software

Tags: , , ,

I'm using the  Absence-Vacation Schedule Template provided by microsoft to keep track of sick days, personal days, etc.  Now I believe (I could be wrong and if I am please correct me) that as it is, I can't set up a calculated field that sums end time - start time and looks at the absence type (it's a lookup field) and get it to propagate a message.  If I'm not mistaken, lookup fields do not work with calculated values.

So what I'm doing is, creating another absencetype field in the same list so that I can use it on the calculated field.  My issue is that I don't quite get the sintaxis correctly.  I'm gonna write here the formula I'm using hopefully someone could tell me why it's not working and how to go about it.

I'm interested in people going in and putting down their days off but for example,  the max # of personal days is 3 so if they try to request a 4th I want a message to say "You've Maxed out your personal days".  And this is the formula I used:

=IF([End Time]-[Start Time]=3, AND([AbsenceType]=Personal Days, You have maxed out your personal days.))

Start Free Trial
[+][-]02.29.2008 at 08:20AM PST, ID: 21014643

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.29.2008 at 08:26AM PST, ID: 21014706

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.29.2008 at 08:31AM PST, ID: 21014780

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.29.2008 at 08:32AM PST, ID: 21014799

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.29.2008 at 08:36AM PST, ID: 21014852

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MOSS-Sharepoint, Microsoft Excel Spreadsheet Software
Tags: Microsoft, SharePoint Server, 2007, IF Statement in calculated field
Sign Up Now!
Solution Provided By: psgindiana
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628