简体   繁体   English

Excel 公式 - 我需要根据出现的正斜杠 (/) 过滤字符串

[英]Excel Formula - I need to filter string based on occurrence of forward slash (/)

I have an excel file with 1000 sites URL in a column.我有一个 excel 文件,其中有一列中有 1000 个站点 URL。
I want to filter rows based on occurrence of forward slash.我想根据正斜杠的出现过滤行。
Here I want to filter a site names where forward slash (/) occurrence is only 5.在这里,我想过滤正斜杠 (/) 出现次数仅为 5 的站点名称。
So result would be所以结果

  1. Https://test.sharepoint.com/it/basedonhistory/kite Https://test.sharepoint.com/it/basedonhistory/kite
  2. Https://test.sharepoint.com/it/basedonhistory/kite1 Https://test.sharepoint.com/it/basedonhistory/kite1
  3. Https://test.sharepoint.com/it/basedonhistory/kite2 Https://test.sharepoint.com/it/basedonhistory/kite2

在此处输入图像描述


Thank you in advance for you help.预先感谢您的帮助。

Here is one possibility, if one doesnt have o365.这是一种可能性,如果没有 o365。

=IFERROR(INDEX($A$1:$A$4,AGGREGATE(15,6,ROW($A$1:$A$4)/((LEN($A$1:$A$4)-LEN(SUBSTITUTE($A$1:$A$4,"/","")))=5),ROW(A1))),"-")

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM