Comments on: Taming the Elusive “Calculated Column” – Logic – Part 1 http://www.endusersharepoint.com/2009/02/23/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-logic/ No GeekSpeak on SharePoint 2007 WSS and MOSS Tue, 27 Jul 2010 12:32:50 -0400 http://wordpress.org/?v=2.8.6 hourly 1 By: Paul Kensler http://www.endusersharepoint.com/2009/02/23/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-logic/comment-page-1/#comment-76478 Paul Kensler Tue, 22 Jun 2010 17:55:08 +0000 http://www.endusersharepoint.com/?p=1361#comment-76478 I was searching for the same solution and came across this post; I came up with the answer and thought I'd post back if others stumble across it. Yes, this can be done using nested IF statements, BUT you can only have 7 nested IFs, so I sort of cheated. If you outline a table of your Impact and Urgency scores, you end up with 9 cells (my difference from the original question, is I score the highest priority as 1 - so the lower the number, the higher the priority) Low I + Low U = 5 Low I + Med U = 4 Low I + High U = 3 Med I + Low U = 4 Med I + Med U = 3 Med I + High U = 2 High I + Low U = 3 High I + Med U = 2 High I + High U = 1 So I wrote the IF statements to account for the scores 1, 2, 4 and 5, and made the final "else" = 3. So any combination of the above Impact and Urgency scores either directly results in a logical match, or it defaults to 3 (which for my purposes was safe, because 3 = medium priority). =IF(AND(Impact="Low",Urgency="Low"),5,IF(AND(Impact="Low",Urgency="Medium"),4,IF(AND(Impact="Medium",Urgency="Low"),4,IF(AND(Impact="Medium",Urgency="High"),2,IF(AND(Impact="High",Urgency="Medium"),2,IF(AND(Impact="High",Urgency="High"),1,3)))))) Hope this helps somebody! Paul I was searching for the same solution and came across this post; I came up with the answer and thought I’d post back if others stumble across it.
Yes, this can be done using nested IF statements, BUT you can only have 7 nested IFs, so I sort of cheated. If you outline a table of your Impact and Urgency scores, you end up with 9 cells (my difference from the original question, is I score the highest priority as 1 – so the lower the number, the higher the priority)
Low I + Low U = 5
Low I + Med U = 4
Low I + High U = 3
Med I + Low U = 4
Med I + Med U = 3
Med I + High U = 2
High I + Low U = 3
High I + Med U = 2
High I + High U = 1

So I wrote the IF statements to account for the scores 1, 2, 4 and 5, and made the final “else” = 3. So any combination of the above Impact and Urgency scores either directly results in a logical match, or it defaults to 3 (which for my purposes was safe, because 3 = medium priority).

=IF(AND(Impact=”Low”,Urgency=”Low”),5,IF(AND(Impact=”Low”,Urgency=”Medium”),4,IF(AND(Impact=”Medium”,Urgency=”Low”),4,IF(AND(Impact=”Medium”,Urgency=”High”),2,IF(AND(Impact=”High”,Urgency=”Medium”),2,IF(AND(Impact=”High”,Urgency=”High”),1,3))))))

Hope this helps somebody!

Paul

]]>
By: Thomas http://www.endusersharepoint.com/2009/02/23/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-logic/comment-page-1/#comment-14846 Thomas Fri, 17 Jul 2009 09:20:55 +0000 http://www.endusersharepoint.com/?p=1361#comment-14846 How is it possible to calculate with the column "name". If I try "=UPPER([Name])" I always get the error message "The formula refers to a column that does not exist. Check the formula for spelling mistakes or change the non-existing column to an existing column. Troubleshoot issues with Windows SharePoint Services." But at the document library I have the column "Name". I also used the internal names like "FileLeafRef" but I failed. Best regards Thomas How is it possible to calculate with the column “name”.
If I try “=UPPER([Name])” I always get the error message “The formula refers to a column that does not exist. Check the formula for spelling mistakes or change the non-existing column to an existing column.
Troubleshoot issues with Windows SharePoint Services.”

But at the document library I have the column “Name”. I also used the internal names like “FileLeafRef” but I failed.

Best regards
Thomas

]]>
By: Thomas Olsson http://www.endusersharepoint.com/2009/02/23/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-logic/comment-page-1/#comment-13598 Thomas Olsson Wed, 10 Jun 2009 14:05:19 +0000 http://www.endusersharepoint.com/?p=1361#comment-13598 Hi! I have a tricky question! I have two columns called "Impact" and "Urgency" set to "choice" with three different options "low", "medium", "high". When a user sets for example "low" on the Impact and "low" on the Urgency I want to create a third column called PRIORITY that takes the to "low" values and sets a priority value.. 1-5 low +low = 1 low + medium = 2 medium + medium = 3 high + medium =4 high + high = 5 Is this possible!?????? /Thomas Hi! I have a tricky question!
I have two columns called “Impact” and “Urgency” set to “choice” with three different options “low”, “medium”, “high”.

When a user sets for example “low” on the Impact and “low” on the Urgency I want to create a third column called PRIORITY that takes the to “low” values and sets a priority value.. 1-5
low +low = 1
low + medium = 2
medium + medium = 3
high + medium =4
high + high = 5

Is this possible!??????

/Thomas

]]>
By: Taming the Elusive “Calculated Column” - Logic - Part 9 | End User SharePoint http://www.endusersharepoint.com/2009/02/23/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-logic/comment-page-1/#comment-12785 Taming the Elusive “Calculated Column” - Logic - Part 9 | End User SharePoint Wed, 13 May 2009 00:40:41 +0000 http://www.endusersharepoint.com/?p=1361#comment-12785 [...] Taming the Elusive “Calculated Column” - Logic - Part 1 [...] [...] Taming the Elusive “Calculated Column” – Logic – Part 1 [...]

]]>
By: Taming the Elusive “Calculated Column” - Logic - Part 8 | End User SharePoint http://www.endusersharepoint.com/2009/02/23/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-logic/comment-page-1/#comment-12649 Taming the Elusive “Calculated Column” - Logic - Part 8 | End User SharePoint Fri, 08 May 2009 14:40:12 +0000 http://www.endusersharepoint.com/?p=1361#comment-12649 [...] Taming the Elusive “Calculated Column” - Logic - Part 1 [...] [...] Taming the Elusive “Calculated Column” – Logic – Part 1 [...]

]]>
By: Taming the Elusive “Calculated Column” - Logic - Part 2 | End User SharePoint http://www.endusersharepoint.com/2009/02/23/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-logic/comment-page-1/#comment-12576 Taming the Elusive “Calculated Column” - Logic - Part 2 | End User SharePoint Wed, 06 May 2009 03:12:33 +0000 http://www.endusersharepoint.com/?p=1361#comment-12576 [...] Taming the Elusive “Calculated Column” - Logic - Part 1 [...] [...] Taming the Elusive “Calculated Column” – Logic – Part 1 [...]

]]>
By: Taming the Elusive “Calculated Column” - Logic - Part 6 - Formulas for Testing Multiple Conditions | End User SharePoint http://www.endusersharepoint.com/2009/02/23/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-logic/comment-page-1/#comment-12568 Taming the Elusive “Calculated Column” - Logic - Part 6 - Formulas for Testing Multiple Conditions | End User SharePoint Tue, 05 May 2009 22:58:29 +0000 http://www.endusersharepoint.com/?p=1361#comment-12568 [...] Taming the Elusive “Calculated Column” - Logic - Part 1 [...] [...] Taming the Elusive “Calculated Column” – Logic – Part 1 [...]

]]>
By: Taming the Elusive “Calculated Column” - Logic - Part 6 - The truth, the whole truth “AND/OR” nothing but the truth | End User SharePoint http://www.endusersharepoint.com/2009/02/23/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-logic/comment-page-1/#comment-12553 Taming the Elusive “Calculated Column” - Logic - Part 6 - The truth, the whole truth “AND/OR” nothing but the truth | End User SharePoint Tue, 05 May 2009 18:41:07 +0000 http://www.endusersharepoint.com/?p=1361#comment-12553 [...] Taming the Elusive “Calculated Column” - Logic - Part 1 [...] [...] Taming the Elusive “Calculated Column” – Logic – Part 1 [...]

]]>
By: Taming the Elusive “Calculated Column” - Logic - Part 5 | End User SharePoint http://www.endusersharepoint.com/2009/02/23/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-logic/comment-page-1/#comment-10979 Taming the Elusive “Calculated Column” - Logic - Part 5 | End User SharePoint Fri, 27 Feb 2009 15:55:01 +0000 http://www.endusersharepoint.com/?p=1361#comment-10979 [...] Taming the Elusive “Calculated Column” - Logic - Part 1 [...] [...] Taming the Elusive “Calculated Column” – Logic – Part 1 [...]

]]>
By: Taming the Elusive “Calculated Column” - Logic - Part 4 | End User SharePoint http://www.endusersharepoint.com/2009/02/23/taming-the-elusive-%e2%80%9ccalculated-column%e2%80%9d-logic/comment-page-1/#comment-10948 Taming the Elusive “Calculated Column” - Logic - Part 4 | End User SharePoint Thu, 26 Feb 2009 17:19:12 +0000 http://www.endusersharepoint.com/?p=1361#comment-10948 [...] Taming the Elusive “Calculated Column” - Logic - Part 1 [...] [...] Taming the Elusive “Calculated Column” – Logic – Part 1 [...]

]]>