Macro for Extracting values from one sheet to another sheet based on multiple criteria

Limzzz

New Member
Joined
Feb 13, 2014
Messages
2
Hey Pros,

i am not sure if title explains all my problem anyways ..... i will try to explain my problem in Detailed manner. Here is a sample table we are dealing with right now.

Source Roadmap

<tbody>
</tbody>
Line Item as Reported

<tbody>
</tbody>
Code As Reported

<tbody>
</tbody>
Units

<tbody>
</tbody>
Data Type

<tbody>
</tbody>
1999
2000200220032004
GDP by expenditure>Nominal series>USD>Total

<tbody>
</tbody>
P per capita (current US$)
AGAJ

<tbody>
</tbody>
LCU

<tbody>
</tbody>
actual
453455544454555447777
GDP by expenditure>Nominal series>% of total>General government final consumption expenditure

<tbody>
</tbody>
Gross capital formation (current LCU)

<tbody>
</tbody>
AFJK

<tbody>
</tbody>
LCU

<tbody>
</tbody>
actual45345345545564838
Female>% of total

<tbody>
</tbody>
Imports of goods and services (current LCU)

<tbody>
</tbody>
AFJT

<tbody>
</tbody>
LCU

<tbody>
</tbody>
actual45645645456464545654533

<tbody>
</tbody>


Now from this worksheet i have to create another table with figures from 2002 to 2004 or on wards. I want to use codes under Code As Reported to identify the column because they are unique. My resulting sheet should look like this

Code as reported 2003200420052006
AGAJ

<tbody>
</tbody>
4555447777777756354
AFJK

<tbody>
</tbody>
65474546928691193197

<tbody>
</tbody>


I have used quite number of codes however i am unable to get the required result. I am new to this so i am having some of problems in coding. some of the hurdles i am facing are as follows;
1. Extracting string of number from year to year.(2002-2018) from data (1990-2018)
2. Writing flexible code which could shuffle between the number of data i want to extract
3. Shuffling between year on year.

Any pros out there kindly help or get back to me if you need any further clarifications
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,216,060
Messages
6,128,545
Members
449,457
Latest member
ncguzzo

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