iggyowner82
New Member
- Joined
- Feb 19, 2010
- Messages
- 16
Column A
[TABLE="width: 131"]
<TBODY>[TR]
[TD]
Quarterly Dividend</SPAN>[/TD]
[/TR]
[TR]
[TD]Bonus Dividend</SPAN>[/TD]
[/TR]
[TR]
[TD]Annual Dividend</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
Column B (list is longer but for example)
[TABLE="width: 556"]
<TBODY>[TR]
[TD]CLIFFS NATURAL RESOURCES - Quarterly Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
[TR]
[TD]CONAGRA FOODS INC - Quarterly Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
[TR]
[TD]PINNACLE WEST CAPITAL CORP - Quarterly Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
[TR]
[TD]DIAMOND OFFSHORE DRILLING INC - Quarterly Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
[TR]
[TD]DIAMOND OFFSHORE DRILLING INC - Bonus Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
[TR]
[TD]MEADWESTVACO CORP - Quarterly Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
[TR]
[TD]SEAGATE TECHNOLOGY PLC - Interim Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
Basically, I am trying to use a VLOOKUP to lookup column B against column A. If the word in column B has within the string "Quarterly Dividend" (As per the lookup in column A), I want the the lookup formula in columns C to say Quarterly Dividend. I am using the below formula but I cannot get the result I am looking for. Any tips would be appreciated: -
=VLOOKUP("*"&B2&"*",$A$2:$A$4,1,TRUE)
[TABLE="width: 131"]
<TBODY>[TR]
[TD]
Quarterly Dividend</SPAN>[/TD]
[/TR]
[TR]
[TD]Bonus Dividend</SPAN>[/TD]
[/TR]
[TR]
[TD]Annual Dividend</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
Column B (list is longer but for example)
[TABLE="width: 556"]
<TBODY>[TR]
[TD]CLIFFS NATURAL RESOURCES - Quarterly Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
[TR]
[TD]CONAGRA FOODS INC - Quarterly Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
[TR]
[TD]PINNACLE WEST CAPITAL CORP - Quarterly Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
[TR]
[TD]DIAMOND OFFSHORE DRILLING INC - Quarterly Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
[TR]
[TD]DIAMOND OFFSHORE DRILLING INC - Bonus Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
[TR]
[TD]MEADWESTVACO CORP - Quarterly Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
[TR]
[TD]SEAGATE TECHNOLOGY PLC - Interim Dividend 2011 - Ex Date</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL></COLGROUP>[/TABLE]
Basically, I am trying to use a VLOOKUP to lookup column B against column A. If the word in column B has within the string "Quarterly Dividend" (As per the lookup in column A), I want the the lookup formula in columns C to say Quarterly Dividend. I am using the below formula but I cannot get the result I am looking for. Any tips would be appreciated: -
=VLOOKUP("*"&B2&"*",$A$2:$A$4,1,TRUE)