filter data

bala06

New Member
Joined
May 31, 2011
Messages
39
Dear Excel Users

<table id="post2757829" class="tborder" align="center" border="0" cellpadding="6" cellspacing="0" width="100%"><tbody><tr valign="top"><tr valign="top"><td class="alt1" id="td_post_2757829" style="border-right: 1px solid #FFFFFF">
icon1.gif
FIlter Data
<hr style="color:#FFFFFF; background-color:#FFFFFF" size="1"> Dear Excel Users

I would like to filter the filter the data according to certain numbers.

For example my data looks like this

1049 1049-hydrogen-bond-frame.dat.c.d.lw 1049-hydrogen-bond-frame.dat.c.d.pw [(34652 'SPC' 'X2591G' 4758 'UNK' 'Z1203B' 34653 'SPC' 'X2591G' 3895 'LYS' 'A 347B') (57086 'SPC' 'X2755G' 4733 'UNK' 'Z1203B' 57087 'SPC' 'X2755G' 3895 'LYS' 'A 347B')]
1054 1054-hydrogen-bond-frame.dat.c.d.lw 1054-hydrogen-bond-frame.dat.c.d.pw [(34652 'SPC' 'X2591G' 4758 'UNK' 'Z1203B' 34653 'SPC' 'X2591G' 3895 'LYS' 'A 347B')]
1055 1055-hydrogen-bond-frame.dat.c.d.lw 1055-hydrogen-bond-frame.dat.c.d.pw [(34652 'SPC' 'X2591G' 4758 'UNK' 'Z1203B' 34653 'SPC' 'X2591G' 3895 'LYS' 'A 347B') (4715 'UNK' 'Z1203B' 34653 'SPC' 'X2591G' 34653 'SPC' 'X2591G' 3895 'LYS' 'A 347B') (57086 'SPC' 'X2755G' 4733 'UNK' 'Z1203B' 57087 'SPC' 'X2755G' 3895 'LYS' 'A 347B') (57086 'SPC' 'X2755G' 4733 'UNK' 'Z1203B' 57087 'SPC' 'X2755G' 3947 'HIS' 'A 350B')]

I have to filter the data based on two numbers "4758 and 3895" and my final output should like this

1049 - 4758 3895
1054 - 4758 3895
1055 - 4758 3895

But the in my data, this numbers varies at different position according to length of the data. The numbers may present at any bracket and the number of brackets varies on the length of the text.

Kindly advice. I am struggling in this exercise since yesterday.

Any help is greatly appreciated.

Many Thanks
Balaji
</td></tr></tr></tbody></table>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,224,605
Messages
6,179,860
Members
452,948
Latest member
UsmanAli786

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