hi all,
been building out a stock screening spreadsheet. I want to rank companies with upcoming ex-dividend dates in the next week or so. I am half way there ( I think, but if someone has a better way or has done this before, please let me know!!)
<P>
so you have a list of companies and ex-dividend dates. Column C is an if statement that if date is equal to today's date + 1 day but not greater than + 10 days
<P>
=IF(AND(b1>now()+1,B34<now()+10),"DIV","")
<table>
A B C
GE 6/19/2008 DIV
APPLE 7/12/2008
GM 6/21/2008
Chase 6/15/2008
J&J 6/23/2008 DIV
Pepsico 9/24/2008
Verizon 10/1/2008
ATT 12/5/2008
Google 6/27/2008 DIV
Etc 12/28/2008 DIV
Etc 6/29/2008 DIV
Etc 5/30/2008
Etc 7/1/2008
</table>
so now you need to set up a ranking of these companies and their respective ex-dividend dates. You should ONLY rank cells in Column B if Column C has a value of "DIV"
=small(SmartRange,1)
I realize an array formula is probably best here, just been blanking out!
Any ideas guys and gals? thanks!
been building out a stock screening spreadsheet. I want to rank companies with upcoming ex-dividend dates in the next week or so. I am half way there ( I think, but if someone has a better way or has done this before, please let me know!!)
<P>
so you have a list of companies and ex-dividend dates. Column C is an if statement that if date is equal to today's date + 1 day but not greater than + 10 days
<P>
=IF(AND(b1>now()+1,B34<now()+10),"DIV","")
<table>
A B C
GE 6/19/2008 DIV
APPLE 7/12/2008
GM 6/21/2008
Chase 6/15/2008
J&J 6/23/2008 DIV
Pepsico 9/24/2008
Verizon 10/1/2008
ATT 12/5/2008
Google 6/27/2008 DIV
Etc 12/28/2008 DIV
Etc 6/29/2008 DIV
Etc 5/30/2008
Etc 7/1/2008
</table>
so now you need to set up a ranking of these companies and their respective ex-dividend dates. You should ONLY rank cells in Column B if Column C has a value of "DIV"
=small(SmartRange,1)
I realize an array formula is probably best here, just been blanking out!
Any ideas guys and gals? thanks!
Last edited: