如何突出显示谷歌表中字母表字母的第一个单元格

时间:2021-05-07 19:16:43

标签: google-sheets google-sheets-formula conditional-formatting

如果是字母表的第一个单词,如何突出显示该单词?

示例

aaple   **highlight this
arrow
asterisk
banana  **highlight this
banter
bow
cat     **highlight this
citrus
cow
dog     **highlight this
donkey


NOTE: There are multiple columns and all the values are sorted already


Maximum number of highlighted words = 26

How to do this is google sheet?

问题

  • 如何仅突出显示字母表中排在第一位的单词

下面给出了应该突出显示的示例谷歌表:

1 个答案:

答案 0 :(得分:2)

您可以在条件格式中使用以下公式:

=AND((ARRAY_CONSTRAIN(FILTER(SORT(FLATTEN($A$1:$F$55),1,1),LEFT(SORT(FLATTEN($A$1:$F$55),1,1),1)=LEFT(A1,1)),1,1)=A1),(A1<>""))

仅当名字重复时,才会突出显示所有名字。

enter image description here