Find cells with specified first and second characters

ollyhughes1982

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

Re below images:

1.jpg
2.jpg
3.png


I am trying to find a way to achieve a formula that fulfils the logic in A2 of the ‘All Completed Runs - Period’ worksheet. i.e. What I want to do is, find where I have completed a parkrun in the ‘All Completed Runs’ worksheet that satisfies the following criteria:
  • The parkrun name begins with the first letter (i.e. the first character) of the Chemical Symbol - Look for this in column AS of the ‘All Completed Runs’ worksheet
AND, where there is a second Chemical Symbol letter (if not just look for the first letter)
  • …The parkrun name contains the second letter of the Chemical Symbol, exclduing the first character (look for this in column BX of the ‘All Completed Runs’ worksheet)
File Link (small OneDrive file - will open quickly): Periodic Table Example.xlsx

Thank in advance!

Olly.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
How about
Excel Formula:
=TAKE(FILTER('All Completed Runs'!$C$4:$C$2003,(LEFT('All Completed Runs'!$BX$4:$BX$2003)=LEFT(B4))*(IF(LEN(B4)=2,ISNUMBER(SEARCH("?"&RIGHT(B4),'All Completed Runs'!$BX$4:$BX$2003)),1)),""),1)
 
Upvote 0
Solution
How about
Excel Formula:
=TAKE(FILTER('All Completed Runs'!$C$4:$C$2003,(LEFT('All Completed Runs'!$BX$4:$BX$2003)=LEFT(B4))*(IF(LEN(B4)=2,ISNUMBER(SEARCH("?"&RIGHT(B4),'All Completed Runs'!$BX$4:$BX$2003)),1)),""),1)
Brilliant, thank you!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,879
Messages
6,175,148
Members
452,615
Latest member
bogeys2birdies

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