ISNUMBER(SEARCH( function to only find words beginning with

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
793
Office Version
  1. 365
Platform
  1. MacOS
Hi,

I have the formula (below) and wondered if there is a way to amend it so it only searches strings beginning with the words, rather than for the words being present anywhere within the string.

=SORT(FILTER('parkrun Reader Dump'!B3:B5003,('parkrun Reader Dump'!N3:N5003=1)*('parkrun Reader Dump'!O3:O5003=1)*('parkrun Reader Dump'!P3:P5003=1)*('parkrun Reader Dump'!D3:D5003="United Kingdom")*((ISNUMBER(SEARCH("Pont y",'parkrun Reader Dump'!B3:B5003)))+(ISNUMBER(SEARCH("Ponte",'parkrun Reader Dump'!B3:B5003)))+(ISNUMBER(SEARCH("Ponty",'parkrun Reader Dump'!B3:B5003))))))

Thanks,

Olly.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Maybe
Excel Formula:
=SORT(FILTER('parkrun Reader Dump'!B3:B5003,('parkrun Reader Dump'!N3:N5003=1)*('parkrun Reader Dump'!O3:O5003=1)*('parkrun Reader Dump'!P3:P5003=1)*('parkrun Reader Dump'!D3:D5003="United Kingdom")*(LEFT('parkrun Reader Dump'!B3:B5003,4)="Pont")))
 
Upvote 0
Hi. Thanks. That does work at the moment, but if more events were added that are similar it could pickup incorrect ones. Would it be possible to have three separate LEFT functions, searching on Pont y, Ponte and Ponty?

I have tried to do this (below formula), but it doesn't work:

=SORT(FILTER('parkrun Reader Dump'!B3:B5003,('parkrun Reader Dump'!N3:N5003=1)*('parkrun Reader Dump'!O3:O5003=1)*('parkrun Reader Dump'!P3:P5003=1)*('parkrun Reader Dump'!D3:D5003="United Kingdom")*(LEFT('parkrun Reader Dump'!B3:B5003,4)="Pont y")))*(LEFT('parkrun Reader Dump'!B3:B5003,4)="Ponte")))*(LEFT('parkrun Reader Dump'!B3:B5003,4)="Ponty")))

Thanks again.
 
Upvote 0
It would need to be like
Excel Formula:
=SORT(FILTER('parkrun Reader Dump'!B3:B5003,('parkrun Reader Dump'!N3:N5003=1)*('parkrun Reader Dump'!O3:O5003=1)*('parkrun Reader Dump'!P3:P5003=1)*('parkrun Reader Dump'!D3:D5003="United Kingdom")*((LEFT('parkrun Reader Dump'!B3:B5003,6)="Pont y")+(LEFT('parkrun Reader Dump'!B3:B5003,5)="Ponte")+(LEFT('parkrun Reader Dump'!B3:B5003,5)="Ponty"))))
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,638
Latest member
Oluwabukunmi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top