find a value in multiple rows

pedram

New Member
Joined
Aug 12, 2014
Messages
27
Hi All this is my problem...


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]name[/TD]
[TD]leave start[/TD]
[TD]leave end[/TD]
[TD]leave one day only[/TD]
[/TR]
[TR]
[TD]smith
[/TD]
[TD]2/8/14[/TD]
[TD]6/8/14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]bob[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]paul[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]smith[/TD]
[TD]9/10/14[/TD]
[TD]14/10/14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]john[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]paul[/TD]
[TD][/TD]
[TD][/TD]
[TD]3/9/14[/TD]
[/TR]
[TR]
[TD]smith[/TD]
[TD]8/12/14[/TD]
[TD]14/12/14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]bob[/TD]
[TD]5/12/14[/TD]
[TD]8/12/14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]jack[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

the above table is a small sample of a much bigger table.
I would like to have a formula that answers these questions.. ( they are just examples of dates , i hope to be able to use any date in the year)

Is smith on leave on the 10/12/14 ? True
Is Paul on leave on 3/9/14 ? True
Is bob on leave on 10/12/14 ? false

Your help would be appreciated.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hello

If you put the table in A1:D10, the name in cell G1 and the date in cell H1, this works:

=SUM((A2:A10=G1)*(B2:B10+D2:D10<=H1)*(C2:C10+D2:D10>=H1))>0

You need to press Ctrl-Shif-Enter instead of Enter, to confirm the formula. It's an array formula.
 
Upvote 0

Forum statistics

Threads
1,225,882
Messages
6,187,571
Members
453,430
Latest member
Heric

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