Multiple criteria lookup function

daniel_ev

New Member
Joined
Jun 29, 2012
Messages
6
I am trying to find out whether local press releases may have affected companies' decision to join a certain government program. My Excel document contains A) a list of companies, B) those companies' postal code, and C) the date those companies got in touch with people from the program.

Lpypj.png


Secondly I set up a document that contains all press releases sent out by the agency in the past year. It contains the date at which a press release was published, and the minimum and maximum value of the Postal Codes of the area covered by the press release.

1byEG.png


I am trying to write a function that checks two things:
1. Is a company's postal code within the range covered by any press release?

2. Was any of the press releases that meet those criteria sent out within three months before the initial contact date (Sheet 1, Column A)?


If both are true, the function should return a 1 or something. If not a 0 of course suffices.
How do I do this?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,215,772
Messages
6,126,800
Members
449,337
Latest member
BBV123

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