Filtering out events with overlap in time

Henk85

Board Regular
Joined
Nov 11, 2015
Messages
112
Hello,

Currently I'm undertaking a study on the effect of an M&A announcement on the stock prices. However, in order to prevent confounding events, I want to filter out concurrent mergers (i.e. acquirers undertaking two or more mergers in the same period).
The relevant variables are as follows
Announcement Date
Closing Date
Acquirer ticker.

There should thus be NO acquisition by the same acquirer (i.e. having the same ticker code) in the period between the announcement date and the closing date/unconditional date.

Could you guys give me any advice on how should I construct this fomula? I reckon it's something with index, match and/or if, but I can't really get it working.

07/12/199910/26/1999DoubleClick IncDCLK
06/14/199911/26/1999DoubleClick IncDCLK
02/01/199905/21/1999America Online IncAOL
11/24/199803/17/1999America Online IncAOL
01/19/199905/28/1999At Home CorpATHM
01/27/199905/28/1999Yahoo! IncYHOO
04/01/199907/20/1999Yahoo! IncYHOO
07/14/200310/07/2003Yahoo! IncYHOO
12/23/200203/19/2003Yahoo! IncYHOO
12/12/200102/13/2002Yahoo! IncYHOO

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

So the first two Yahoo mergers should show a 0, the other ones should show a 1.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hello,

Currently I'm undertaking a study on the effect of an M&A announcement on the stock prices. However, in order to prevent confounding events, I want to filter out concurrent mergers (i.e. acquirers undertaking two or more mergers in the same period).
The relevant variables are as follows
Announcement Date
Closing Date
Acquirer ticker.

There should thus be NO acquisition by the same acquirer (i.e. having the same ticker code) in the period between the announcement date and the closing date/unconditional date.

Could you guys give me any advice on how should I construct this fomula? I reckon it's something with index, match and/or if, but I can't really get it working.

07/12/199910/26/1999DoubleClick IncDCLK
06/14/199911/26/1999DoubleClick IncDCLK
02/01/199905/21/1999America Online IncAOL
11/24/199803/17/1999America Online IncAOL
01/19/199905/28/1999At Home CorpATHM
01/27/199905/28/1999Yahoo! IncYHOO
04/01/199907/20/1999Yahoo! IncYHOO
07/14/200310/07/2003Yahoo! IncYHOO
12/23/200203/19/2003Yahoo! IncYHOO
12/12/200102/13/2002Yahoo! IncYHOO

<tbody>
</tbody>

So the first two Yahoo mergers should show a 0, the other ones should show a 1.

Basically I've came up with this, but it does not work

=IF(AND($C4=$C$4:$C$1943,OR($A5>$B$4:$B$1943,$B5<$A$4:$A$1943)),"1","0")
 
Upvote 0
this one sort of worked except the first cell because it doesn't work upwards, so you'll need to adjust the first cell manually somehow.

just try to follow the logic within the formula, seems simple enough but works for the most part...you'll just need to plug the ticker in the AND function which shouldn't be that big of a deal, I just focused mostly on dates.

=IF(AND(A8>=$A$8:A8,A9<=$B$8:B8),1,0)

here is a snapshot of what I got, like I said the first one will need to be adjusted manually.

1/27/19995/28/19991
4/1/19997/20/19990
7/14/200310/7/20031
12/23/20023/19/20031
12/12/20012/13/20021

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Last edited:
Upvote 0
this one sort of worked except the first cell because it doesn't work upwards, so you'll need to adjust the first cell manually somehow.

just try to follow the logic within the formula, seems simple enough but works for the most part...you'll just need to plug the ticker in the AND function which shouldn't be that big of a deal, I just focused mostly on dates.

=IF(AND(A8>=$A$8:A8,A9<=$B$8:B8),1,0)

here is a snapshot of what I got, like I said the first one will need to be adjusted manually.

1/27/19995/28/19991
4/1/19997/20/19990
7/14/200310/7/20031
12/23/20023/19/20031
12/12/20012/13/20021

<tbody>
</tbody>

Hi rayk,

Thank you for your reply.

I've now worked with =IF(AND($A5>$B$4:$B$1943,$B5<$A$4:$A$1943),1,0)

Basically this shows whether a merger's

- announcement days lies past all the completion dates in the list
- completion days lies before all the announcement dates in the list
In this case, there is no overlap for this deal (which I want to find out).
With a list of 2000+ mergers this obviously results in only zero's.

However

ONLY the overlap with the same acquirer is relevant.

I do not succeed to form a formula that uses these conditions for only the same tickers.
Do you know how I should construct this?
 
Last edited:
Upvote 0
give this a shot...the third AND argument for the ticker, i want to say it should work but test it out in the bigger file you have

=IF(AND(A8>=$A$8:A8,A9<=$B$8:B8,C8=$C$8:C8),1,0)
 
Upvote 0
give this a shot...the third AND argument for the ticker, i want to say it should work but test it out in the bigger file you have

=IF(AND(A8>=$A$8:A8,A9<=$B$8:B8,C8=$C$8:C8),1,0)

Hi Rayk, it's not working unfortunately.


=IF(SUMPRODUCT(($A4<=$B$4:$B$1943)*($B4>=$A$4:$A$1943)*($C4=$C$4:$C$1943))>1,0,1)

Seems to work, but I can't really see why.

Could someone explain this to me. Have I covered all overlap with this formula?
 
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,641
Members
449,461
Latest member
kokoanutt

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