在字符串中包含一个单词并记录以下字符串

时间:2019-04-11 14:53:12

标签: excel

我的原始数据集中大约有1000行。我需要使用isnumber(search(substring,string))查找我的子字符串是否在列中。 IT报告为TRUE或FALSE。如果它为TRUE,如果它为FALSE,我将有3个可能的结果。

但是,我希望选择记录三个结果中的哪一个,而不是将其报告为TRUE。

我尝试使用= isnumber(Search(substring,string))

=isnumber(search(substring, string))

我的第一列是

AAA-1-2

我在搜索我的字符串的列中将包含...

AAA-1-2-1
AAA-1-2-2
AAA-1-2-B

我想从中选择...我只想选择AAA-1-2-1。

谢谢。

所以结果看起来像...

第一列

AAA-1-2

第二列

AAA-1-2-1

1 个答案:

答案 0 :(得分:2)

对通配符使用VLOOKUP:

Styles

enter image description here


但是根据您最后一个删除的问题,我相信您确实想要:

<Style x:Key="BaseTextBox" TargetType="TextBox">
    <Setter Property="HorizontalAlignment" Value="Stretch"/>
    <Setter Property="VerticalAlignment" Value="Center"/>
    <Setter Property="TextWrapping" Value="NoWrap"/>
    <Style.Triggers>
        <Trigger Property="IsEnabled" Value="False">
            <Setter Property="Validation.ErrorTemplate" Value="{x:Null}"/>
        </Trigger>
        <Trigger Property="IsReadOnly" Value="True">
            <Setter Property="Background" Value="LightGray"/>
        </Trigger>
    </Style.Triggers>
</Style>

<Style x:Key="GroupBoxBase" TargetType="GroupBox">
    <Setter Property="Padding" Value="2"/>
</Style>

<Style x:Key="ConfigurationMainWindownButton" TargetType="Button">
    <Setter Property="Height" Value="Auto"/>
    <Setter Property="Width" Value="70"/>
    <Setter Property="Margin" Value="2,2,2,2"/>
    <Setter Property="HorizontalAlignment" Value="Center"/>
</Style>

<Style x:Key="RemoveButton" TargetType="Button" BasedOn="{StaticResource ConfigurationMainWindownButton}">
    <Setter Property="VerticalAlignment" Value="Top"/>
    <Setter Property="HorizontalAlignment" Value="Right"/>
    <Setter Property="Padding" Value="0"/>
    <Setter Property="Width" Value="20"/>
    <Setter Property="Height" Value="20"/>
    <Setter Property="Foreground" Value="Red"/>
    <Setter Property="FontWeight" Value="Bold"/>
    <!-- <Setter Property="Validation.ErrorTemplate" Value="{x:Null}"/> -->
</Style>

enter image description here

要显示顺序无关紧要:

enter image description here

相关问题