Comments on: Taming the Elusive “Calculated Column” – Lookup and Reference http://www.endusersharepoint.com/2009/01/07/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-%e2%80%93-lookup-and-reference/ No GeekSpeak on SharePoint 2007 WSS and MOSS Thu, 15 Jul 2010 00:23:40 -0400 http://wordpress.org/?v=2.8.6 hourly 1 By: Yar Dost http://www.endusersharepoint.com/2009/01/07/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-%e2%80%93-lookup-and-reference/comment-page-1/#comment-82770 Yar Dost Wed, 14 Jul 2010 20:59:06 +0000 http://www.endusersharepoint.com/?p=1047#comment-82770 Would it be possible to use the CHOOSE function to populate a column based on the value of another column in the list. For instance, if there is a person's name associated with a city's name, would it be possible to pick the name of the city in the Location column from a drop down menu and have the point of contact column be populated based on the value chosen for Location? Would it be possible to use the CHOOSE function to populate a column based on the value of another column in the list. For instance, if there is a person’s name associated with a city’s name, would it be possible to pick the name of the city in the Location column from a drop down menu and have the point of contact column be populated based on the value chosen for Location?

]]>
By: David http://www.endusersharepoint.com/2009/01/07/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-%e2%80%93-lookup-and-reference/comment-page-1/#comment-75281 David Thu, 17 Jun 2010 15:53:41 +0000 http://www.endusersharepoint.com/?p=1047#comment-75281 YES, Thanks! That did the trick! YES, Thanks! That did the trick!

]]>
By: Dessie Lunsford http://www.endusersharepoint.com/2009/01/07/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-%e2%80%93-lookup-and-reference/comment-page-1/#comment-75272 Dessie Lunsford Thu, 17 Jun 2010 15:30:34 +0000 http://www.endusersharepoint.com/?p=1047#comment-75272 David, It looks like in each of the two "IF" statements, you're checking on two conditions that must each be TRUE (the "AND" part). Look at your second condition to check in each... You're checking for a greater than in the first, and a less than in the second, but you have the parentheses in the wrong place on each of them. You have them as: (WEEKDAY([Migration Install Date]>3)) (WEEKDAY([Migration Install Date]<4)) where they should be: (WEEKDAY([Migration Install Date])>3) (WEEKDAY([Migration Install Date])<4) See the difference? The "WEEKDAY" function will return a number, which you're then checking to see if its greater or less than another number, so it has to occur after you get the number (in your original formula, you're trying to check the value too early - you have to close the "WEEKDAY" function first, then run your comparison). Does this help? - Dessie David,
It looks like in each of the two “IF” statements, you’re checking on two conditions that must each be TRUE (the “AND” part). Look at your second condition to check in each…

You’re checking for a greater than in the first, and a less than in the second, but you have the parentheses in the wrong place on each of them.

You have them as:

(WEEKDAY([Migration Install Date]>3))
(WEEKDAY([Migration Install Date]<4))

where they should be:

(WEEKDAY([Migration Install Date])>3)
(WEEKDAY([Migration Install Date])<4)

See the difference?

The “WEEKDAY” function will return a number, which you’re then checking to see if its greater or less than another number, so it has to occur after you get the number (in your original formula, you’re trying to check the value too early – you have to close the “WEEKDAY” function first, then run your comparison).

Does this help?

- Dessie

]]>
By: David http://www.endusersharepoint.com/2009/01/07/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-%e2%80%93-lookup-and-reference/comment-page-1/#comment-75098 David Thu, 17 Jun 2010 00:21:49 +0000 http://www.endusersharepoint.com/?p=1047#comment-75098 This second IF of this statement is not working...what is wrong with it? =IF(AND(([ECS Migration Type]="LFC to RM"),(WEEKDAY([Migration Install Date]>3))),([Migration Install Date]-3),IF(AND(([ECS Migration Type]="LFC to RM"),(WEEKDAY([Migration Install Date]<4))),([Migration Install Date]-5) )) Many Thanks, David This second IF of this statement is not working…what is wrong with it?

=IF(AND(([ECS Migration Type]=”LFC to RM”),(WEEKDAY([Migration Install Date]>3))),([Migration Install Date]-3),IF(AND(([ECS Migration Type]=”LFC to RM”),(WEEKDAY([Migration Install Date]<4))),([Migration Install Date]-5)
))

Many Thanks,
David

]]>
By: Linda http://www.endusersharepoint.com/2009/01/07/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-%e2%80%93-lookup-and-reference/comment-page-1/#comment-19423 Linda Wed, 18 Nov 2009 19:32:07 +0000 http://www.endusersharepoint.com/?p=1047#comment-19423 Is there a way to code a calculated column so that it links to the item? I created a calculated column called "Full Name" with this formula: =[Last Name]&", "&[First Name]. When I include this column in a view, I want it to link to the item (with the edit menu if possible). Currently, when building a view I have only "Last Name (linked to item with edit menu)" and "Last Name (linked to item)" providing this option. Is there a way to code a calculated column so that it links to the item? I created a calculated column called “Full Name” with this formula: =[Last Name]&”, “&[First Name]. When I include this column in a view, I want it to link to the item (with the edit menu if possible). Currently, when building a view I have only “Last Name (linked to item with edit menu)” and “Last Name (linked to item)” providing this option.

]]>
By: Debora http://www.endusersharepoint.com/2009/01/07/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-%e2%80%93-lookup-and-reference/comment-page-1/#comment-17785 Debora Tue, 06 Oct 2009 15:50:25 +0000 http://www.endusersharepoint.com/?p=1047#comment-17785 I have signed up for the newsletter. Is it possible to get this ebook that explains build logical formulas? I have signed up for the newsletter. Is it possible to get this ebook that explains build logical formulas?

]]>
By: Raya http://www.endusersharepoint.com/2009/01/07/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-%e2%80%93-lookup-and-reference/comment-page-1/#comment-13584 Raya Wed, 10 Jun 2009 06:24:37 +0000 http://www.endusersharepoint.com/?p=1047#comment-13584 Hi, Is there a way where we can change the title column to be a calculated value? I want the title column to display a value from a drop down field. Please advice.. Hi,

Is there a way where we can change the title column to be a calculated value? I want the title column to display a value from a drop down field. Please advice..

]]>
By: EndUserSharePoint http://www.endusersharepoint.com/2009/01/07/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-%e2%80%93-lookup-and-reference/comment-page-1/#comment-11156 EndUserSharePoint Fri, 06 Mar 2009 02:57:16 +0000 http://www.endusersharepoint.com/?p=1047#comment-11156 Jill - In this week's newletter, there is an eBook written by Dessie that might help as you are trying to build logical formulas. -- Mark Jill – In this week’s newletter, there is an eBook written by Dessie that might help as you are trying to build logical formulas. — Mark

]]>
By: jriesen http://www.endusersharepoint.com/2009/01/07/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-%e2%80%93-lookup-and-reference/comment-page-1/#comment-11152 jriesen Thu, 05 Mar 2009 20:57:45 +0000 http://www.endusersharepoint.com/?p=1047#comment-11152 Thank you, you presented a solution for the 7 nested IFs limitation that works beautifully. I have been looking for an answer on this for months. I had thought about the splitting of the formula into to calulated columns, but that was a bit clunky and presented web part listview issues. But calling the 2nd calculated column from the 1st calculated column to continue the IFs statements was ingenious. Now I don't even have to display that 2nd calculated column in the view. Thanks again! Thank you, you presented a solution for the 7 nested IFs limitation that works beautifully. I have been looking for an answer on this for months. I had thought about the splitting of the formula into to calulated columns, but that was a bit clunky and presented web part listview issues. But calling the 2nd calculated column from the 1st calculated column to continue the IFs statements was ingenious. Now I don’t even have to display that 2nd calculated column in the view. Thanks again!

]]>
By: Komal Agrawal http://www.endusersharepoint.com/2009/01/07/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-%e2%80%93-lookup-and-reference/comment-page-1/#comment-9759 Komal Agrawal Mon, 19 Jan 2009 13:55:11 +0000 http://www.endusersharepoint.com/?p=1047#comment-9759 Hello, I used your method here to create a formula with 3 IF statements. The statements all work together separately, but give me a syntax error when combined. I used the same () as your example, and can't figure it out. =IF((AND([Call for Abstracts/Papers]=0,[Call for Papers Deadline]=0),[Title]), IF(AND([Call for Abstracts/Papers]>0,[Call for Papers Deadline]=0),[Title]&" - "&"Call for Abstracts/Papers"&TEXT([Call for Abstracts/Papers],": mm-dd-yy"),[Title]), IF(AND([Call for Abstracts/Papers]=0,[Call for Papers Deadline]>0),[Title]&" - "&"Call for Papers Deadline"&TEXT([Call for Papers Deadline],": mm-dd-yy"),[Title])) (Line breaks are only there to increase readability) Hello,

I used your method here to create a formula with 3 IF statements. The statements all work together separately, but give me a syntax error when combined. I used the same () as your example, and can’t figure it out.

=IF((AND([Call for Abstracts/Papers]=0,[Call for Papers Deadline]=0),[Title]),

IF(AND([Call for Abstracts/Papers]>0,[Call for Papers Deadline]=0),[Title]&” – “&”Call for Abstracts/Papers”&TEXT([Call for Abstracts/Papers],”: mm-dd-yy”),[Title]),

IF(AND([Call for Abstracts/Papers]=0,[Call for Papers Deadline]>0),[Title]&” – “&”Call for Papers Deadline”&TEXT([Call for Papers Deadline],”: mm-dd-yy”),[Title]))

(Line breaks are only there to increase readability)

]]>