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!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,990
Messages
5,856,679
Members
431,828
Latest member
kARTIK12345

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