two dimensional lookups (vlookup&hlookup)

Folks

See my sample excel sheet

I have data in sheet 1 showing my systems and the relevant activities over a calendar day

My question is , if I have more than 1 activities in one day per system this should be flagged as a conflict in sheet 2

so essentially I have 2 criterias that need to match i.e. system and date but it should only display the value if there are multiple activities

multiple activities are denoted by a  comma separator  i.e  test,bounce (test is 1 activity and bounce is another)

kindly help build such a conflict report
conflict.xlsx
rutgermonsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

[ fanpages ]IT Services ConsultantCommented:
Hi,

I placed the following formula within cell [B2] of the [Conflicts] worksheet:

=IFERROR(IF(FIND(",",OFFSET(Activities!$A$1,MATCH(B$1,Activities!$A:$A,0)-1,MATCH($A2,Activities!$1:$1,0)-1))>0,OFFSET(Activities!$A$1,MATCH(B$1,Activities!$A:$A,0)-1,MATCH($A2,Activities!$1:$1,0)-1),""),"")

I then copied this cell to the clipboard & pasted (special, formulas only) it to the range [B2:E9] (so the formatting of the destination cells was retained).

The results (as seen within the attached workbook, "Q_28698292.xlsx") match the values of the same range you had previously stated within the [Conflicts] worksheet of "conflict.xlsx" (attached above).

PS. You have spelled "bounce" as "bouce" throughout the workbook.

Also, the [Conflicts] worksheet covers the date range "19-Jul-15" to "26-Jul-15", but the [Activities] worksheet covers the period "18-Jul-15" to "25-Jul-15".

The formula (above) caters for this.  It will also support additional dates, &/or additional environment criteria (beyond "Dev", "Test", "Prod", & "DR").
Q-28698292.xlsx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
With Index/Match and Search formula, it can be achieved like this......

Try this.....

On Conflicts Sheet,
In B2

=IF(ISNUMBER(SEARCH(",",INDEX(Activities!$B$2:$I$5,MATCH(B$1,Activities!$A$2:$A$5,0),MATCH($A2,Activities!$B$1:$I$1,0)))),INDEX(Activities!$B$2:$I$5,MATCH(B$1,Activities!$A$2:$A$5,0),MATCH($A2,Activities!$B$1:$I$1,0)),"")

and copy across and down and you will get what you are looking for.
Find-Conflicts.xlsx
rutgermonsAuthor Commented:
both solutions are correct, fanpages did respond first, hence the points allocation

will follow up with a new request for this, i think this will work better with a macro and need this built into a macro
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.