Extract data from table based on symbol and return the value from column.

nredman

New Member
Joined
Jan 30, 2016
Messages
6
Hi Experts,

We are trying to extract data based on the "symbol" for example find all "CNU" and return the "C" value. i.e. for CNU 3.44 into separate columns (figure 2) for all the symbols.

Is this possible?

Thank you

Figure 1

[TABLE="width: 970"]
<colgroup><col span="10"></colgroup><tbody>[TR]
[TD]Symbol[/TD]
[TD]N[/TD]
[TD]D[/TD]
[TD]T[/TD]
[TD]O[/TD]
[TD]H[/TD]
[TD]L[/TD]
[TD]C[/TD]
[TD]V[/TD]
[TD]OI[/TD]
[/TR]
[TR]
[TD]CNU[/TD]
[TD] [/TD]
[TD]29-Jan-16[/TD]
[TD]0[/TD]
[TD]3.41[/TD]
[TD]3.45[/TD]
[TD]3.4[/TD]
[TD]3.44[/TD]
[TD]112474[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]MTU[/TD]
[TD] [/TD]
[TD]29-Jan-16[/TD]
[TD]0[/TD]
[TD]12.45[/TD]
[TD]12.8[/TD]
[TD]12.41[/TD]
[TD]12.58[/TD]
[TD]3879420[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]SPK[/TD]
[TD] [/TD]
[TD]29-Jan-16[/TD]
[TD]0[/TD]
[TD]3.08[/TD]
[TD]3.1[/TD]
[TD]2.99[/TD]
[TD]3.1[/TD]
[TD]2373568[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]TPM[/TD]
[TD] [/TD]
[TD]29-Jan-16[/TD]
[TD]0[/TD]
[TD]9.9[/TD]
[TD]10.13[/TD]
[TD]9.895[/TD]
[TD]10.05[/TD]
[TD]1309932[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]TLS[/TD]
[TD] [/TD]
[TD]29-Jan-16[/TD]
[TD]0[/TD]
[TD]5.57[/TD]
[TD]5.63[/TD]
[TD]5.57[/TD]
[TD]5.63[/TD]
[TD]27231040[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]VOC[/TD]
[TD] [/TD]
[TD]29-Jan-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44[/TD]
[TD]171871[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]SPK[/TD]
[TD] [/TD]
[TD]27-Jan-16[/TD]
[TD]0[/TD]
[TD]3.05[/TD]
[TD]3.08[/TD]
[TD]3[/TD]
[TD]3.01[/TD]
[TD]819206[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]MTU[/TD]
[TD] [/TD]
[TD]27-Jan-16[/TD]
[TD]0[/TD]
[TD]11.55[/TD]
[TD]11.8[/TD]
[TD]11.47[/TD]
[TD]11.78[/TD]
[TD]1394994[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]TLS[/TD]
[TD] [/TD]
[TD]27-Jan-16[/TD]
[TD]0[/TD]
[TD]5.53[/TD]
[TD]5.54[/TD]
[TD]5.5[/TD]
[TD]5.53[/TD]
[TD]19720440[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]VOC[/TD]
[TD] [/TD]
[TD]27-Jan-16[/TD]
[TD]0[/TD]
[TD]7.2[/TD]
[TD]7.38[/TD]
[TD]7.19[/TD]
[TD]7.33[/TD]
[TD]1421436[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]TPM[/TD]
[TD] [/TD]
[TD]27-Jan-16[/TD]
[TD]0[/TD]
[TD]9.99[/TD]
[TD]10.025[/TD]
[TD]9.75[/TD]
[TD]9.78[/TD]
[TD]1462942[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]MTU[/TD]
[TD] [/TD]
[TD]25-Jan-16[/TD]
[TD]0[/TD]
[TD]11.43[/TD]
[TD]11.61[/TD]
[TD]11.43[/TD]
[TD]11.59[/TD]
[TD]858948[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]CNU[/TD]
[TD] [/TD]
[TD]25-Jan-16[/TD]
[TD]0[/TD]
[TD]3.43[/TD]
[TD]3.43[/TD]
[TD]3.39[/TD]
[TD]3.39[/TD]
[TD]85512[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]


Figure 2
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]cnu[/TD]
[TD="class: xl65, width: 64"]mtu[/TD]
[/TR]
[TR]
[TD="class: xl66"]3.44[/TD]
[TD="class: xl68"]12.58[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"]3.41[/TD]
[TD="class: xl68"]12.1[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"]3.44[/TD]
[TD="class: xl68"]11.78[/TD]
[/TR]
</tbody>[/TABLE]
3.39
 
Welcome to the MrExcel board!

Try this formula. It is an array formula so should be entered without the {} but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert the {}. The formula can then be copied across & down.

Excel Workbook
AHKLMNOPQR
1SymbolCCNUMTUSPKTPMTLSVOC
2CNU3.443.4412.583.110.055.637.86
3MTU12.583.4112.13.069.885.597.5
4SPK3.13.4411.783.019.785.537.33
5TPM10.053.3911.59
6TLS5.63
7VOC7.86
8SPK3.06
9CNU3.41
10MTU12.1
11TPM9.88
12TLS5.59
13VOC7.5
14CNU3.44
15SPK3.01
16MTU11.78
17TLS5.53
18VOC7.33
19TPM9.78
20MTU11.59
21CNU3.39
List Values
 
Last edited:
Upvote 0

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