xmatch challenge

KMunroe

New Member
Joined
Oct 31, 2008
Messages
22
Office Version
  1. 365
Platform
  1. Windows
I am hoping some of the excel experts on this site can help me with an xmatch challenge i am having. I am trying to see if there is a way to use an xmatch to return the 2nd or 3rd instance of a list of dates without using a helper column.
I want to be able to look up a date and the instance number and have the xmatch formula return the ordinal position of that date and instance numbers... I have been struggling with this for several hours. Any help would be greatly appreciate3d.

Here is what I was trying to do.

1648506409504.png
 

Attachments

  • 1648506214101.png
    1648506214101.png
    64 KB · Views: 4
  • 1648506274959.png
    1648506274959.png
    57.2 KB · Views: 4

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I don't know about XMatch, but here's another way you could do it.

Book1
ABCD
1Dates
2Jan-22
3Feb-22Monthinstance
4Mar-22Mar-222
5Apr-22
6May-22Result:15
7Jun-22
8Jul-22
9Aug-22
10Sep-22
11Oct-22
12Nov-22
13Dec-22
14Jan-22
15Feb-22
16Mar-22
17Apr-22
18May-22
19Jun-22
20Jul-22
21Aug-22
22Sep-22
23Oct-22
24Nov-22
25Dec-22
Sheet1
Cell Formulas
RangeFormula
D6D6=SMALL(IF(A2:A25=C4,ROW(A2:A25)-ROW(INDEX(A2:A25,1,1))+1),D4)
 
Upvote 0
Solution
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

From your talk of using XMATCH I assume you have other new functions like FILTER & SEQUENCE. If so, you could also try this.

22 03 29.xlsm
ABCD
1Dates
2Jan-22
3Feb-22Monthinstance
4Mar-22Mar-222
5Apr-22
6May-22Result:15
7Jun-22
8Jul-22
9Aug-22
10Sep-22
11Oct-22
12Nov-22
13Dec-22
14Jan-22
15Feb-22
16Mar-22
17Apr-22
18May-22
19Jun-22
20Jul-22
21Aug-22
22Sep-22
23Oct-22
24Nov-22
25Dec-22
KMunroe
Cell Formulas
RangeFormula
D6D6=INDEX(FILTER(SEQUENCE(ROWS(A2:A25)),A2:A25=C4),D4)
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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