XMATCH W/ TWO CRITERIA (within the same column)

JuicyMusic

Board Regular
Joined
Jun 13, 2020
Messages
210
Office Version
  1. 365
Platform
  1. Windows
Hello, I have a formula that works just fine but I need to add a 2nd criteria to it.

The only criteria it has now is that a particular text should be written as follows, and the formula will provide a result: JOB#(then a space).
Since people are starting to type "JOB(space)#" now - I need to account for it. I've tried to adjust my formula with no success.

Formula is looking for eIther JOB# or JOB #

Here is my existing formula:
Excel Formula:
=INDEX(F$2:F2,XMATCH("Job#*",F$2:F2,2,-1))


I can't wait:giggle:.....to see if I was anywhere close. Thanks,
Juicy
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Why not just get rid of the # sign?
 
Upvote 0
I tried getting rid of the pounds sign all together but there is a text with the word Job in it that I don't want a return for.

For example: JOB NUMBER

I just tried your formula and it is giving me results for these two texts as well: JOB NAME, JOB NUMBER
 
Last edited:
Upvote 0
In that case try it like Job*#*
 
Upvote 0
Solution
Awesome! SOLVED! What a little change that changed my life:)

Excel Formula:
=INDEX(F$2:F2,XMATCH("Job*#*",F$2:F2,2,-1))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,499
Members
449,089
Latest member
Raviguru

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