Copy data from Input Worksheet to correct worksheet based on a criteria

cneill

New Member
Joined
Sep 18, 2014
Messages
1
Hi Everyone,

I need some guidance on how to get started.

I think I need to write some code to achive the following, but not sure what the best solution is.

I have created an Excel Calulator for the work I do, this calulator involes adding carbon values to various worksheet, then these worksheets do various calulations, then the results of these calulations are shown on a summary sheet.

So I would like to
a.) add an imput worksheet
b.) Run some code from a button on the worksheet or something which will copy the values from the input sheet to the correct worksheets, so that I don't have to mannually enter them.
The input sheet will contain the following values
UPRN (Unique Property Reference Number)
Description - e.g. CWI (Cavity Wall Insulation)
Value of the Carbon - e.g. 15.115
Funding for the Carbon - e.g. £30
Type of Property - e.g. Flat
Area - e.g. CSCO

What the code needs to do
Look at the Description and Find the correct Worksheet in this case CWI
Within the Worksheet find the Type of Property in this case Flat
Within the Worksheet find the Area in this case CSCO
once this criteria is meet, enter the Value of the Carbon in this case 15.115 in the first specific cell of the correct column and enter the UPRN in the Specific cell in the same row.
Then loop through the Imput worksheet and find the next record meeting the same criteria and then put the values in the next row in the worksheet and so on until all the matches are found.
Next we would move on to the next criteria which could be the same but a diferent "Area" and so on until all the criteria's have been meet.

To finish, I would like to highlight a row of data in the "input worksheet" where the data does not meet any of the agreed set criteria's.
This will enable me to create additional criteria in the code.

I hope this makes sense, I hope someone can help me with this.

Many Thanks

CNEILL
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,215,006
Messages
6,122,665
Members
449,091
Latest member
peppernaut

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