BigMoe
New Member
- Joined
- Nov 1, 2014
- Messages
- 18
***I'm using Excel 2003***
I'm working on a spreadsheet to track my stock trading activities for one year. I used the following formula to give me a list of all the stocks traded without duplicates:
=INDEX(D$5:D$4244,MATCH(0,COUNTIF(J$4:J4,D$5:D$4244),-1))
However, I'm having difficulty doing the same for a list of stocks traded by month without any duplicates. Basically, I need help in adding some sort of month component to the above formula, or a completely new formula that will do the trick. Below is a miniature mock-up of that portion of the spreadsheet.
Many thanks in advance.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]Date Traded[/TD]
[TD="align: center"]Stock Symbols[/TD]
[TD="align: center"]Symbols - Jan[/TD]
[TD="align: center"]Symbols - Feb[/TD]
[/TR]
[TR]
[TD="align: center"]1/1/15[/TD]
[TD="align: center"]AAPL[/TD]
[TD="align: center"]AAPL[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/1/15[/TD]
[TD="align: center"]RIG[/TD]
[TD="align: center"]RIG[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/1/15[/TD]
[TD="align: center"]XOM[/TD]
[TD="align: center"]XOM[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/1/15[/TD]
[TD="align: center"][/TD]
[TD="align: center"]FB[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/1/15[/TD]
[TD="align: center"][/TD]
[TD="align: center"]UNH[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/2/15[/TD]
[TD="align: center"]FB[/TD]
[TD="align: center"]TWTR[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/2/15[/TD]
[TD="align: center"]AAPL[/TD]
[TD="align: center"]VLO[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/2/15[/TD]
[TD="align: center"]RIG[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/2/15[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/2/15[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/3/15[/TD]
[TD="align: center"]UNH[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/3/15[/TD]
[TD="align: center"]AAPL[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/3/15[/TD]
[TD="align: center"]TWTR[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/3/15[/TD]
[TD="align: center"]VLO[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/3/15[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
I'm working on a spreadsheet to track my stock trading activities for one year. I used the following formula to give me a list of all the stocks traded without duplicates:
=INDEX(D$5:D$4244,MATCH(0,COUNTIF(J$4:J4,D$5:D$4244),-1))
However, I'm having difficulty doing the same for a list of stocks traded by month without any duplicates. Basically, I need help in adding some sort of month component to the above formula, or a completely new formula that will do the trick. Below is a miniature mock-up of that portion of the spreadsheet.
Many thanks in advance.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]Date Traded[/TD]
[TD="align: center"]Stock Symbols[/TD]
[TD="align: center"]Symbols - Jan[/TD]
[TD="align: center"]Symbols - Feb[/TD]
[/TR]
[TR]
[TD="align: center"]1/1/15[/TD]
[TD="align: center"]AAPL[/TD]
[TD="align: center"]AAPL[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/1/15[/TD]
[TD="align: center"]RIG[/TD]
[TD="align: center"]RIG[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/1/15[/TD]
[TD="align: center"]XOM[/TD]
[TD="align: center"]XOM[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/1/15[/TD]
[TD="align: center"][/TD]
[TD="align: center"]FB[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/1/15[/TD]
[TD="align: center"][/TD]
[TD="align: center"]UNH[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/2/15[/TD]
[TD="align: center"]FB[/TD]
[TD="align: center"]TWTR[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/2/15[/TD]
[TD="align: center"]AAPL[/TD]
[TD="align: center"]VLO[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/2/15[/TD]
[TD="align: center"]RIG[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/2/15[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/2/15[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/3/15[/TD]
[TD="align: center"]UNH[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/3/15[/TD]
[TD="align: center"]AAPL[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/3/15[/TD]
[TD="align: center"]TWTR[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/3/15[/TD]
[TD="align: center"]VLO[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1/3/15[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]