Hello all,
I've been using Excel for years for basic stuff, but only with formulas for the last year. I feel my problem is certainly solvable, based on all I've learned with formulas such as Index, Match, VLookup, etc. However, I just can't seem to nail this one.
The main set of data that I'm looking to reference using another table is contained in 4 columns, as such:
One note on this table, it's not completely symetrical in that the account number from column-1 alos appears in the first row of column-2, before the column-2 (NAME) data starts. This table represents a list of accounts, their stock holdings, ticker symbols, and weighting of stocks in each account. Each account can hold a slightly different number of holdings.
What I've done is I've created another table where the first column uses a formula to extract a unique list of these account numbers. Across the top of the table, I have the complete list of all stocks across all portfolios.
I've been using Excel for years for basic stuff, but only with formulas for the last year. I feel my problem is certainly solvable, based on all I've learned with formulas such as Index, Match, VLookup, etc. However, I just can't seem to nail this one.
The main set of data that I'm looking to reference using another table is contained in 4 columns, as such:
[TABLE="class: outer_border, width: 300, align: left"]
<TBODY>[TR]
[TD]ACCOUNT
[/TD]
[TD]NAME
[/TD]
[TD]TICKER
[/TD]
[TD]WEIGHT
[/TD]
[/TR]
[TR]
[TD]1-ABC
[/TD]
[TD]1-ABC
[/TD]
[TD="align: center"](empty)[/TD]
[TD](empty)[/TD]
[/TR]
[TR]
[TD]1-ABC
[/TD]
[TD]Microsoft
[/TD]
[TD]MSFT
[/TD]
[TD]50
[/TD]
[/TR]
[TR]
[TD]1-ABC
[/TD]
[TD]IBM
[/TD]
[TD]IBM
[/TD]
[TD]50
[/TD]
[/TR]
[TR]
[TD]2-BCD
[/TD]
[TD]2-BCD
[/TD]
[TD](empty)[/TD]
[TD](empty)[/TD]
[/TR]
[TR]
[TD]2-BCD
[/TD]
[TD]Proctor & Gamble
[/TD]
[TD]PG
[/TD]
[TD]60
[/TD]
[/TR]
[TR]
[TD]2-BCD
[/TD]
[TD]Microsoft
[/TD]
[TD]MSFT
[/TD]
[TD]20
[/TD]
[/TR]
[TR]
[TD]2-BCD
[/TD]
[TD]IBM
[/TD]
[TD]IBM
[/TD]
[TD]20
[/TD]
[/TR]
[TR]
[TD]3-CDE
[/TD]
[TD]3-C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TD]
[/TR]
[TR]
[TD]3-CDE
[/TD]
[TD]Facebook
[/TD]
[TD]FB
[/TD]
[TD]25
[/TD]
[/TR]
[TR]
[TD]3-CDE
[/TD]
[TD]IBM
[/TD]
[TD]IBM
[/TD]
[TD]25
[/TD]
[/TR]
[TR]
[TD]3-CDE
[/TD]
[TD]Northeast Utilities
[/TD]
[TD]NU
[/TD]
[TD]25
[/TD]
[/TR]
[TR]
[TD]3-CDE
[/TD]
[TD]Apple
[/TD]
[TD]AAPL
[/TD]
[TD]15
[/TD]
[/TR]
[TR]
[TD]3-CDE
[/TD]
[TD]Google
[/TD]
[TD]GOOG
[/TD]
[TD]10
[/TD]
[/TR]
</TBODY>[/TABLE]
One note on this table, it's not completely symetrical in that the account number from column-1 alos appears in the first row of column-2, before the column-2 (NAME) data starts. This table represents a list of accounts, their stock holdings, ticker symbols, and weighting of stocks in each account. Each account can hold a slightly different number of holdings.
What I've done is I've created another table where the first column uses a formula to extract a unique list of these account numbers. Across the top of the table, I have the complete list of all stocks across all portfolios.
[TABLE="class: outer_border, width: 350, align: left"]
<TBODY>[TR]
[TD]ACCOUNT[/TD]
[TD]AAPL[/TD]
[TD]FB[/TD]
[TD]GOOG[/TD]
[TD]IBM[/TD]
[TD]MSFT[/TD]
[TD]NU[/TD]
[TD]PG[/TD]
[/TR]
[TR]
[TD]1-ABC[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[/TR]
[TR]
[TD]2-BCD[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[/TR]
[TR]
[TD]3-CDE
[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[/TR]
</TBODY>[/TABLE]
My question is, how do I set up a formula in this second table that will look for the Weight of each holding, in each account from the first table. I'm struggling with looking up the data using account number, because the account numbers repeat along the first column of the first table. Any input would be much appreciated. Thank you, -Rich
<TBODY>[TR]
[TD]ACCOUNT[/TD]
[TD]AAPL[/TD]
[TD]FB[/TD]
[TD]GOOG[/TD]
[TD]IBM[/TD]
[TD]MSFT[/TD]
[TD]NU[/TD]
[TD]PG[/TD]
[/TR]
[TR]
[TD]1-ABC[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[/TR]
[TR]
[TD]2-BCD[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[/TR]
[TR]
[TD]3-CDE
[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[TD]Weight?[/TD]
[/TR]
</TBODY>[/TABLE]
My question is, how do I set up a formula in this second table that will look for the Weight of each holding, in each account from the first table. I'm struggling with looking up the data using account number, because the account numbers repeat along the first column of the first table. Any input would be much appreciated. Thank you, -Rich