Help with a logical test

ireland87

Board Regular
Joined
Jul 22, 2015
Messages
52
Hi

i have a formula that returns the correct result
=IF(ISNUMBER(MATCH(A2,V8:V13,0)),IF(A2=B2,"eombh","bh"),IF(A2=B2,"eom","normal"))

A2 = a date
V8:V13 is a column of dates

however i want to introduce another variable (system)

=IF(ISNUMBER(MATCH(1,(A6=BH!A2:BE2)*(A2=BH!A3:BE15),0)),IF(A2=B2,"eombh","bh"),IF(A2=B2,"eom","normal"))

A6 = system
BH!A2:BE2 = bank holiday sheet listing system a .... system x
A2= a date
BH!A3:BE15 = all the bank holidays for the systems


so what i really want the formula to do is look up the system in A6 then match that to a column in BH!A2:BE2 then look at the date in A2 and see if this date is in the corresponding column for the system within this range BH!A3:BE15

can anyone help me out?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
How about
=IF(ISNUMBER(MATCH(A2,INDEX(BH!A3:BE15,0,MATCH(A6,BH!A2:BE2,0)),0)),IF(A2=B2,"eombh","bh"),IF(A2=B2,"eom","normal"))
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
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