Put an IF statement inside of a MATCH functin?

LambChoptheKid

New Member
Joined
Dec 10, 2022
Messages
35
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I am attempting to create a function that searches an array for a date match, and if there is one, then subsequently check to see if a the time is between a designated "Start" time and "End" time within the row that contains a match. This function will be placed in the RUNNING? column.

This is the function that I've come up with so far, but I've hit a wall here: =IF(AND(MATCH(B2,M:M,0),

Is it possible to nest an IF function within a MATCH function to check if the allotted date is between the times?

If that is not possible, do you have any suggestions to help me solve this problem?

Thank you
 

Attachments

  • Forum Help.PNG
    Forum Help.PNG
    63.8 KB · Views: 13

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Why don't you use countifs?
For example in C2:
Excel Formula:
=IF(COUNTIFS($F$3:$F$9,$A2,$G$3:$G$9,"<="&$B2,$H$3:$H$9,">="&$B2)>0,TRUE)
 
Upvote 0
Solution
Why don't you use countifs?
For example in C2:
Excel Formula:
=IF(COUNTIFS($F$3:$F$9,$A2,$G$3:$G$9,"<="&$B2,$H$3:$H$9,">="&$B2)>0,TRUE)
That worked!

I'm still pretty new to excel, so I've never worked with a countifs function before. Clearly I'll have to get familiar as it looks like it will be key to many of my projects.

Thank you!
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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