Hello,
I have a file with two important tabs. "compiler" and "annual summary".
In compiler there is a bunch of data entered into columns. Three of these columns are "Year", "Location" and "Crude Type". The data is collected on a monthly basis.
I wish to write a program that, among other things, will first (after naming the ranges) as "year", "Location" and "Crude", respectively, all unique combinations across the three columns in the compiler sheet into the annual summary sheet with the elements still organized into separate columns.
For example,
In the "year" column, there are elements "2012" & "2013", in the "location column" the elements "regina" and "Prince Rupert", among others exist, and in "crude" there are entries of "WCB" and "OCC" among others. Lets say they appear like this:
2012 Prince Rupert WCB
2012 Prince Rupert WCB
2013 Regina OCC
2013 Prince Rupert WCB
In the annual summary tab I want the output to be:
2012 Prince Rupert WCB
2013 Regina OCC
2013 Prince Rupert WCB
In my actual sheet there are many other values that exist in these columns, and I have attached a sample excel sheet as a more clear demonstration. Any help in creating a code that will accomplish this task is greatly appreciated. I have put 0s as placeholders where other data would be in the original file.
Thanks in advance.
Bookmarks