【问题标题】:excel search function in the cell单元格中的excel搜索功能
【发布时间】:2011-08-31 20:08:34
【问题描述】:

这是我的excel专栏

Iolite Purple Color Faceted Almonds Shape "AA" Grade Bead
Spinal Black Color Smooth Balls Shape "AAA" Grade Bead
Opal Orange Color Faceted Round Shape "AAA" Grade Bead
Spesitite Orange Color Faceted Trillion Shape "AA" Grade Bead
Garnet Pink Color Faceted Trillion Shape "AA+" Grade Bead
GreenGold Yellow Color Faceted Fancy Shape "AA+" Grade Bead
GreenGold Yellow Color Faceted Fancy Shape "AAA" Grade Bead
Sapphire Shaded Blue Color Faceted Bead Shape "AAA" Grade Bead

我想在不同的单元格中复制“颜色”一词之前的单词。世界“颜色”处于不同的位置。
任何公式?

谢谢

【问题讨论】:

    标签: excel search


    【解决方案1】:

    您的列数据似乎已在您的问题中重新格式化。所以,我推断了以下内容。在 A 列中提供了此列表:

    Purple Color Faceted Almonds Shape "AA" Grade Bead 
    Spinal Black Color Smooth Balls Shape "AAA" Grade Bead 
    Opal Orange Color Faceted Round Shape "AAA" Grade Bead 
    Spesitite Orange Color Faceted Trillion Shape "AA" Grade Bead 
    Garnet Pink Color Faceted Trillion Shape "AA+" Grade Bead 
    GreenGold Yellow Color Faceted Fancy Shape "AA+" Grade Bead 
    GreenGold Yellow Color Faceted Fancy Shape "AAA" Grade Bead 
    Sapphire Shaded Blue Color Faceted Bead Shape "AAA" Grade Bead
    

    B 列中的这些公式:

    =LEFT(A1,SEARCH("color",A1)-1)
    =LEFT(A2,SEARCH("color",A2)-1)
    =LEFT(A3,SEARCH("color",A3)-1)
    =LEFT(A4,SEARCH("color",A4)-1)
    =LEFT(A5,SEARCH("color",A5)-1)
    =LEFT(A6,SEARCH("color",A6)-1)
    =LEFT(A7,SEARCH("color",A7)-1)
    =LEFT(A8,SEARCH("color",A8)-1)
    

    产生这些值:

    Purple 
    Spinal Black 
    Opal Orange 
    Spesitite Orange 
    Garnet Pink 
    GreenGold Yellow 
    GreenGold Yellow 
    Sapphire Shaded Blue 
    

    祝你好运!

    【讨论】:

    • +1 但您可能想使用TRIM 删除结果末尾的空格
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-25
    • 1970-01-01
    • 1970-01-01
    • 2013-07-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多