Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

Calculated column formula: IF THEN statement?

瀏覽次數:9,841 次
跳到第一則未讀訊息

Erik

未讀,
2006年6月5日 晚上7:00:012006/6/5
收件者:
In a SharePoint 2003 List is it possible to use an IF THEN statement (or
equivalent) to auto populate a given text column based off another text
column's value? Here's my scenario. I run a Sales group and each of my Sales
Reps are assigned to a specific US territory (either East, West, North or
South). Column1 is a drop down menu with the following 4 choices following:
East, West, North or South. I’d like Column5 to be auto populated with the
appropriate Sales Rep’s name based off the value in Column1. For example:

If Column1 = East then Column5 = John Smith. If Column1 = West then Column5
= Roger Brown. If Column1 = North then Column5 = Jack Tate. If Column1 =
South then Column5 = Jim Black.

I looked all over SharePoint help and it doesn't appear this particular
formula is a feature of SharePoint, but I just want to double check. Any
idea? Thanks.

erik

Philip Lanier

未讀,
2006年6月6日 中午12:13:072006/6/6
收件者:
Good news... this does exist. Syntax is as follows:

IF(logical_test,value_if_true,value_if_false)

You can get to this in the online help by at
http://[servername]/_vti_bin/help/1033/sts/html/lif4.htm. For instance,
here's one currently available online:
http://usa1021.wss.bcentral.com/_vti_bin/help/1033/sts/html/lif4.htm. How I
got there. [In the list] "Modify Settings and columns >> Add a new column
>> [Optional Settings for Column group] Show me more information >>
Calculated >> About computed and calculated columns >> [Related Topics]
Functions"

Hope this is useful!

Philip Lanier
Ascentium


"Erik" <Er...@discussions.microsoft.com> wrote in message
news:E085D3B7-A6BB-427B...@microsoft.com...

S.S. Ahmed

未讀,
2006年6月6日 晚上7:15:442006/6/6
收件者:
Hi Erik

Yes, it is possible to use IF ELSE in calculated field. Use following
syntax:

=IF([Column1]="East","John Smith",IF([Column1]="West","Roger
Brown",IF([Column1]="North","Jack Tate",IF([Column1]="South","Jim Black"))))

HTH

Regards,

--SSA
http://sharepointblogs.com/ssa (All About SharePoint)

-----

"Erik" <Er...@discussions.microsoft.com> wrote in message
news:E085D3B7-A6BB-427B...@microsoft.com...

Erik

未讀,
2006年6月8日 下午6:50:012006/6/8
收件者:
Perfect - thanks, Philip and SS!

Rene

未讀,
2009年4月22日 中午12:34:072009/4/22
收件者:
Same scenario, but formula gives an error after 7 IF statements. Is there
another formula I can use, since I have 11 regions.

a.qal...@gmail.com

未讀,
2014年1月14日 凌晨1:19:072014/1/14
收件者:
HI every body
I have a problem with IF condition in sharepoint2007,I want to show delay between two days so first of all I created a list that has 4 column (title,date created, end date , and delay)in delay column i want to use this if condition:
=IF([end]-[create]>=0,0,1)
but it returns following error:
The formula contains a syntax error or is not supported.

Can anybody help me ?
thanks

michael.h...@gmail.com

未讀,
2017年10月18日 上午11:31:472017/10/18
收件者:
Hello!

I have an issue where I need to copy data from one column to another. My ex:
=RIGHT([Schedule Identifier - New],LEN([Schedule Identifier - New])-FIND("#",[Schedule Identifier - New])). In this example, if the column name has a #, it copies it over to another column minus the data to the left of the #. The issue is, if the data doesn't have a #, then it is not copying over and just labeling data in column as #NAME?, Any suggestions to fix this?
0 則新訊息