简体   繁体   中英

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.
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.
So result would be

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

在此处输入图像描述


Thank you in advance for you help.

Here is one possibility, if one doesnt have 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))),"-")

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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