Extract data between match pattern, process in other sheets

123raajesh

New member
Joined
May 1, 2014
Messages
7
Reaction score
0
Points
0
This is the edit of my previous post attached a workbook with example.

I have this workbook which contains 3 sheets as per image. Googled at lot...

1) User uses drop downs in Sheet 1, and enters the Variables or some data.

2) In Sheet 2, the headers are captured. As per down down selection in Sheet 1 by the user.

3) In Sheet 3, the user enters details for the corresponding drop down value of Sheet 1. The details entered in Sheet 3 are not the same in Sheet 1 Variables. Those are different as mentioned in image. And the details entered in Sheet 3 varies for respective header values, there is no definite length. May observe the same in image. Yes, only one column is used in Sheet 3.

4) Now in Sheet 2, need to get the values entered in Sheet 3.
For example: 1 to 5 values of JAVA_1 i.e code to code4, just above JAVA_2 must be captured or extracted from Sheet 3 to Sheet 2 if header value is entered. If not should be blank as in image. To make it understandable just mentioned count to the left values, marked in blue block. Otherwise its blank, when find ###, after code10 of JAVA_3 will have 3 ###.

5) The header values JAVA_1 to JAVA_5 and the details entered in Sheet 3 for respective header also varies as per user requirement.

Could I know how to achieve this in simplest way. Possibly without VB. Anyways is fine.

I was thought this can be achieved by extracting values between 2 match patterns. Like between JAVA_1 to JAVA_2. But not sure how to achieve this.

I tried this macro but its lengthy and not dynamic.
 

Attachments

  • Book2.zip
    69.6 KB · Views: 15
Back
Top