Little background.
What I am wanting to do and attempted to do up above is the following:
Sheet 1 contains data from activities that took place. Sheet 2 contains general event information. I am wanting to match up the specific time from sheet one with a start and end time of sheet two. In other words if if the activity took place at 3:49pm and we had an event (on the same day, same state) that was offered between 3:30pm and 4:30pm then it matches and says YES.
What I have currently is two spreadsheets with varying data. Sheet1 has State, Date, Day, City, Time. Sheet2 has State, Time Start, Time End, Date, Day (and some other irrelevant data).
I was hoping I could use a formula to do the job but the one I drafted below fails on the "And/Or" section where I was trying to match up the exact time in a range of start and end times.
=IF(ISNA(MATCH(c2,Sheet2!$e$2:$e$38,0)*AND(a2,Sheet2!$a$2:$a$38,0)*AND((e2,Sheet2!$b$2:$b$38,0)*OR(e2,<=Sheet2!$c$2:$c$38)0)),"N","Y")
c2 = Day (So Day from Sheet1 equals one of the days listed in column E of Sheet two)
a2 = State (So state from Sheet1 equals one of the states listed in column A of sheet two)
I'm a database guy not an excel guru, but I am not dealing with enough data to justify the work to create a database to track this. I was hoping to do it in excel with a formula...am I barking up the wrong tree?
Any and all help is greatly appreciated.
What I am wanting to do and attempted to do up above is the following:
Sheet 1 contains data from activities that took place. Sheet 2 contains general event information. I am wanting to match up the specific time from sheet one with a start and end time of sheet two. In other words if if the activity took place at 3:49pm and we had an event (on the same day, same state) that was offered between 3:30pm and 4:30pm then it matches and says YES.
What I have currently is two spreadsheets with varying data. Sheet1 has State, Date, Day, City, Time. Sheet2 has State, Time Start, Time End, Date, Day (and some other irrelevant data).
I was hoping I could use a formula to do the job but the one I drafted below fails on the "And/Or" section where I was trying to match up the exact time in a range of start and end times.
=IF(ISNA(MATCH(c2,Sheet2!$e$2:$e$38,0)*AND(a2,Sheet2!$a$2:$a$38,0)*AND((e2,Sheet2!$b$2:$b$38,0)*OR(e2,<=Sheet2!$c$2:$c$38)0)),"N","Y")
c2 = Day (So Day from Sheet1 equals one of the days listed in column E of Sheet two)
a2 = State (So state from Sheet1 equals one of the states listed in column A of sheet two)
I'm a database guy not an excel guru, but I am not dealing with enough data to justify the work to create a database to track this. I was hoping to do it in excel with a formula...am I barking up the wrong tree?
Any and all help is greatly appreciated.