Extract Information from data sets

ysycho

New Member
Joined
Mar 2, 2016
Messages
2
Hello,

I'm trying to extract information from data sets that looks like this: Imgur: The most awesome images on the Internet

the data set always starts with "Element: xxx", and xxx could either be linear or circular. If the data set is circular, it contains 17 lines of data, and if it is linear it contains 4 lines of data.

Is it possible to based on this predictive pattern to write a macro that recognizes the kind of data set it is (linear or circular), and extract multiple cells information from it? My goal is to have the data that i wanted to be extracted into separate column.

My thoughts are to do a counter between the occurrence of the strings that contains the phrase "Element", and if the counter returns 17, extract cells (x,y) and have it placed at column z based on the counter. Is this feasible? And how do I start with this?

Any help is appreciated. Thanks in advance!
 

Some videos you may like

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Watch MrExcel Video

Forum statistics

Threads
1,123,385
Messages
5,601,328
Members
414,444
Latest member
lionking15

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
Top