我写了这个IF语句(IF = ALS),但它太长了。
知道什么可能是解决方案吗?
=ALS(K2="Soul Shakers";"urban, tropical";ALS(K2="Dunya";"iets anders”;ALS(K2=“Rakka”;”urban, tropical, allround”;ALS(K2=“Ravenous”;”house, techno”;ALS(K2=“DJ Yolotanker”;”allround”;ALS(K2=“Black Mamba”;”urban, tropical”;ALS(K2=“Nico Morano”;”house, techno, underground”;ALS(K2=“Cedex & Higher Underground”;”drum & bass”;ALS(K2=“Leesa”;”house, techno, underground”;ALS(K2=“Station Earth”;”drum & bass”;ALS(K2=“MC Mota”;”drum & bass”;ALS(K2=“Mr_Fuzz”;”urban, tropical, future”;ALS(K2=“Polar Youth”;”urban, future”;ALS(K2=“Skyve”;”allround, urban, tropical, house, drum & bass”;ALS(K2=“Woodie Smalls”;”urban”;ALS(K2=“Jonas Lion;”house, techno, urban, tropical, underground”))))))))))))))))
答案 0 :(得分:3)
创建一个像这样的查找表:
"Soul Shakers" "urban, tropical"
"Dunya" "iets anders”
"Rakka" "urban, tropical, allround"
...
"Jonas Lion" "house, techno, urban, tropical, underground"
现在你可以像这样使用VLOOKUP()
:
=VLOOKUP(K2;your_table_range;2;FALSE)
如果我是正确的,您使用的是荷兰语,VLOOKUP()
将为VERT.ZOEKEN()
。
答案 1 :(得分:0)
SWITCH
功能完全符合您的要求!
=SWITCH(K2, "Soul Shakers", "urban, tropical", "Dunya", "iets anders”, ...)
"Soul Shakers", "urban, tropical"
)都指出了输入及其相应输出的可能值。答案 2 :(得分:0)
您的公式的问题在于您输入的内容不正确。 而真正的"错误消息将提供该线索。真正的错误消息可能就像没有字符串>公式中包含255个字符, NOT 表示嵌套的IF语句太长。
<mvc:View
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.uxap"
xmlns:layout="sap.ui.layout"
xmlns:m="sap.m"
xmlns:blockcolor="sap.uxap.sample.SharedBlocks"
controllerName="personal.controller.Object"
height="100%"
>
<ObjectPageLayout id="ObjectPageLayout"
enableLazyLoading="false"
showAnchorBarPopover="false"
showFooter="true"
>
<headerTitle>
<ObjectPageHeader objectTitle="{DataAgingGroupName}"/>
</headerTitle>
<sections>
<ObjectPageSection title="Section 2">
<subSections>
<ObjectPageSubSection title="Deletable Data Subjects">
<blocks>
<Table xmlns="sap.m" id="table"
mode="SingleSelectLeft"
width="auto"
items="{invoice>/Invoices}"
noDataText="{worklistView>/tableNoDataText}"
busyIndicatorDelay="{worklistView>/tableBusyDelay}"
growing="true"
growingScrollToLoad="true"
updateFinished="onUpdateFinished"
>
<columns>
<Column id="nameColumn1">
<Text text="Data Subject"/>
</Column>
</columns>
<items>
<ColumnListItem
type="Navigation"
press="onPress"
>
<cells>
<Text id="__picker0"
text="{invoice>ProductName}"
width="100%"
/>
</cells>
</ColumnListItem>
</items>
</Table>
</blocks>
</ObjectPageSubSection>
</subSections>
</ObjectPageSection>
<ObjectPageSection title="Section 1">
<subSections>
<ObjectPageSubSection title="General Information"/>
</subSections>
</ObjectPageSection>
</sections>
<footer>
<m:OverflowToolbar>
<m:ToolbarSpacer/>
<m:Button
text="Delete"
type="Reject"
press="handleDelete"
/>
</m:OverflowToolbar>
</footer>
</ObjectPageLayout>
</mvc:View>
实际上是双引号"
或右双引号“
的线索。 ”
测试条件ALS
也就是说,@ zipa提出的查找表比深度嵌套的K2="Jonas Lion,