Formula using If statement with Xmatch

dharv3y78

New Member
Joined
Oct 26, 2019
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hi Mr Excel Members,

I have a problem which i hope you vcan help me with i have attached a sample workbook if the issue i am having.

I have a Formula in where if Alt' day be taken In Leiu of a Public Holiday (B3) equals No in N4 i have the following formula below in which it check E4:E15 & F4:F15 and checks to see if they are in K4 & L4 down and if it is the N4 is blank and if not it puts the date from L4.
Excel Formula:
=IF(ISNA(XMATCH([@State]&[@Date],Table1[Jurisdiction]&Table1[Date])),[@Date],"")

The issue that i have is in the section Formula I Want in to have the the above but also if Alt' day be taken In Leiu of a Public Holiday (B3) equals Yes then i want it to read which State Public Holiday being taken In Lieu of in B4 and add that holiday back in eg: Lets say it Holiday 1 for this shown i N4 as blank but is added back in on T4, and that it now reads and takes that alternate date in A16.

I'm sure i have just alter the above formula a litte but i have not worked out the correct formula as what i have tried has failed.

Hope this is clear enough for you Workbook attached.

Book1.xlsx
ABCDEFGHIJKLMNOPQRST
1Formula CurrentlyPublic HolidayWhat I HaveSchool HolidaysWhat I Want AlsoSchool Holidays
2
3Alt' day be taken In Leiu of a Public HolidayNOJurisdictionDateHoliday NameDayJurisdictionStateDateDayDate for FieldJurisdictionStateDateDayDate for Field
4State Public Holiday being taken In Lieu ofSA1/1/24Holiday 1MondaySASA1/1/24Monday SASA1/1/24Monday1/1/24
5SA1/26/24Holiday 2FridaySASA1/2/24Tuesday1/2/24SASA1/2/24Tuesday1/2/24
6SA3/11/24Holiday 3MondaySASA1/3/24Wednesday1/3/24SASA1/3/24Wednesday
7Alternative Public Holiday DatesSA3/29/24Holiday 4FridaySASA1/4/24Thursday1/4/24SASA1/4/24Thursday1/4/24
8DateHoliday NameSA3/30/24Holiday 5SaturdaySASA1/5/24Friday1/5/24SASA1/5/24Friday1/5/24
9SA3/31/24Holiday 6SundaySASA1/6/24Saturday1/6/24SASA1/6/24Saturday1/6/24
10SA4/1/24Holiday 7MondaySASA1/7/24Sunday1/7/24SASA1/7/24Sunday1/7/24
11SA4/25/24Holiday 8ThursdaySASA1/8/24Monday1/8/24SASA1/8/24Monday1/8/24
12SA6/10/24Holiday 9MondaySASA1/9/24Tuesday1/9/24SASA1/9/24Tuesday1/9/24
13SA10/7/24Holiday 10MondaySASA1/10/24Wednesday1/10/24SASA1/10/24Wednesday1/10/24
14Alternative Public Holiday DatesSA12/25/24Holiday 11WednesdaySASA1/11/24Thursday1/11/24SASA1/11/24Thursday1/11/24
15DateHoliday NameSA12/26/24Holiday 12ThursdaySASA1/12/24Friday1/12/24SASA1/12/24Friday1/12/24
16Wednesday, 3 January 2024Holiday 13
17
18
19
Sheet1
Cell Formulas
RangeFormula
N4:N15N4=IF(ISNA(XMATCH([@State]&[@Date],Table1[Jurisdiction]&Table1[Date])),[@Date],"")
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi All,

Just wondering if anyone is able to help me with this issue.

Thanks in advance
Donald
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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