Splitting Data By Sorted Ranges
Oct 24, 2008How do I split a worksheet by sorted ranges and then save each range as a new workbook?
For example:
How would I split the data on the left into the ranges on the right of the image below?
How do I split a worksheet by sorted ranges and then save each range as a new workbook?
For example:
How would I split the data on the left into the ranges on the right of the image below?
I am looking for a way to get a weighted average to work without the need of helper columns, when my weights are stored in one range, and the actual values are stored in another range, but might not be sorted in the same fashion.
For example; range 1 might be:
Weight
Homework 120%
Pre-Exam 30%
Exam 50%
But the range for student's scores might be in a slightly different order:
Scores
Exam 90
Pre-Exam 72
Homework 1 81
(Note that this is a greatly simplified example and that just resorting would be impractical).
I have a data set of about 600 records. I want to be able to extract the Top 10% of the records and get rid of the other 90% - the values can change over time, so I always want to start with the full 600 records.
I am aware of the conditional formatting function that will identify the Top 10%, but I was looking for VBA language (does not have to be VBA - just automated), that calculated the 10% subset and either moved it to a different sheet, OR deleted the bottom 90% - in either instance the result being just the list of the top 10% of the data set.
I have an excel WS1 set up as DB; I want to keep this sheet for data revision. WS2,3, 4, & 5 will be data that is filtered and sorted, using WS1 as source so I want to auto copy the WS1 data. Can I just auto copy WS1 (how do I do that?) then filter and sort in each WS?
View 3 Replies View RelatedIn the attached spreadsheet I track the performance of my team. I enter the AHT for my team in the work sheet named "AHT Summary".I keep updating this data every month. automatically sort the updated data and rank the agents based on their average AHT. The person with the lowest AHT should be ranked 1. Column is highlighed in green for your reference. Based on this ranking the work sheet named "Ranking" should be updated automatically. Since I am taking a weighted average for all agents, the one who gets the lowest AHT should be ranked 1st . In the ranking work sheet the agent with ranking 1 should be given 100, the second highest ranked person should get 98,third 96,fourth 94 etc.
View 6 Replies View RelatedDoes anyone know of an Excel object class that you can put objects into with a key and the process it in key-sorted order? If not, is there a library that I can reference to get such a thing?
View 6 Replies View RelatedExplaination of Data:
I have 2 Columns in the "RawData" sheet in the file attached. One says the Campaign No, and the other says the Site Code. One Campaign, will always never have duplicate Site Code.
I want to organize the data in the following fashion (as seen in the "Format" Sheet). I wish to acquire the trends of grouping of Site Codes, meaning which site (by Site code) is sold together, to understand the hottest combinations.
The idea is to see which Site Code sells more with a particular Campaign.
As you can see in the attached file, I'd like to know how many times a particular Sites (by Site Code) was sold with the other. As you can imagine, I have about 300 Campaigns, but have about 1500 different Sites codes to deal with, this activity will save me hours of time.
The sample file is uploaded on Google Docs. [URL] .........
I have data in a spreadsheet that need to be re sorted. Here is the data:
Name Address Address Address Phone
XYZ 123 Main NA WI, 12345 123-123-1234
ABC 123 South NA AZ, 1111 456-456-4567
is there a way (i.e marco) that can reorder this info to look like this?
XYZ
123 Main
NA
WA, 12345
123-123-1234
ABC
123 South
NA
AZ, 1111
456-45-4567
I have data that I need to be dynamically sorted in the highlighted manner. The values on the selection criteria are dynamic.
View 14 Replies View RelatedI have a matrix of mixed numbers (going across many columns and rows) in Sheet1. They are a mix of positive and negative numbers, In Sheet2 I need 2 lists to be automatically displayed, taken from the data in Sheet1.
The first list (column) is for positive numbers only, the second is for negative numbers.
There is one filter: only numbers over a specified value (for the positive list) must be used from the data, and only numbers under a specified value (for the negative list) must be used from the data. The 2 filters can be stored in any cells in Sheet2 (the worksheet where the lists will be), lets say, for ease of use, A1 and B1.
But here's the tricky part: I need the location reference of each number in the matrix displayed next to the number in the list!!! Eg: in the matrix, I have names running down the left (A2 to A25) and the same names in the same order running across the top (B1 to Y1) - just like any basic matrix! If A6 is called "John" and L1 is called "Pete" and their value (at cell L6) is 10, then I need them to be displayed in the "positive list" amongst the others (sorted automatically into numerical order) with the words "John" in the cell to the right of the score, and "Pete" in the one after that to the right: so it will look like:
A2 B2 C2
10 John Pete
(remember that these 2 lists are on Sheet2, not on the matrix worsheet! A1 and B1 contain the 2 filters for the positive and negative lists).
Of course, this must only happen if the filter in A1 (the positive filter) is 10 or under. If it was anything above 10, then this one would not make the list.
As for duplicates in the matrix coming up twice in the lists, that's not a problem this wont matter! It's ok for the lists to have constant duplicates displayed eg: 10 John Pete will also have next to it 10 Pete John.
I Currently have some VBA sourced through here which adds to the end of the first instance of a value in column A the values in column's B and C and repeats adding values in new cells for B and C until the value in column A changes.
Now I need to transfer this sorted data to another worksheet (destination.xls) and add it by the reference number in column A to the end of the row with the same reference number.
I have experimented with vlookup with limited success and am looking for a more robust solution.
The data from the spreadsheet called source.xls appears starting in column EE. This will be the same starting position for all rows I have coloured the data for ease of recognition purposes only.
I have attached 2 sheets as examples of what I am trying to achieve.
I am trying to compare the frequency of occurrence of multiple unique values within a data set and graph the results as a pareto. I have the formulas working to identify and count the occurrences, and the chart is designed and displaying the data, however I cannot get the graph to display in descending order.
I am unable to sort the data because it is generated from a series of formulas, the returned values of which cannot be sorted. (its hard to describe, see the attached workbook)
I would like to know how I can display the graph so that it shows the bars (primary axis) in descending order (highest value to left, lowest to right) since I cannot sort the data. i.e. For the attached workbook, I want the bars to display in descending number of occurrences: 81,15,5,5,3,3,2,2.
[URL]
I'm hoping to make a dynamic sorted list for each Mfg (H - T) using the garbled data input in columns B & C.
See attached : sorted list.xlsx
My excel sheet contains a set of date-marked expenditures. It's all one running list - no starting a new column for each month or anything like that.
I'd like to include a separate column/sheet showing total expenditure for each month. I've tried multiple formulae, along the lines of "Sum the B cells but only those for which the corresponding A cell is in the right value range". Or in programming terms, "for i from 1 to infinity, if x < A(i) < y, add B(i) to sum." Since other formulae on the sheet are independent of item ordering (don't require the data to be sorted chronologically), a plus would be if the solution can be, as well.
A separate thing I'd like to do (which I'm guessing has a similar solution) is to include grand (running) totals by expenditure type. A separate column of (non-numerical) expenditure codes is next to the data.
I am using the formula below to find the # of hours that staff worked.
=SUMPRODUCT(('Data 1'!$B$2:$B$601=B7)*(LEFT('Data 1'!$A$2:$A$601,2)=LEFT(C7,2))*'Data 1'!$D$2:$D$601)
B7 = Last Name
Left(C7,2) = First 2 Letters of the First Name
$D$2:$D$601 = Hours Worked
My only problem is that some staff show up in the list on "Data 1" twice as they work in 2 separate stores and I am only getting the hours worked at the first store. Is there a way to have excel add the hours for both stores? My data is sorted alphabetically so they will be one above the other.
I am trying to compare the frequency of occurrence of multiple unique values within a data set and graph the results as a pareto. I have the formulas working to identify and count the occurrences, and the chart is designed and displaying the data, however I cannot get the graph to display in descending order.
I am unable to sort the data because it is generated from a series of formulas, the returned values of which cannot be sorted. (its hard to describe, see the attached workbook)
I would like to know how I can display the graph so that it shows the bars (primary axis) in descending order (highest value to left, lowest to right) since I cannot sort the data. i.e. For the attached workbook, I want the bars to display in descending number of occurrences: 81,15,5,5,3,3,2,2.
The line below was originally a merged cell. I need to have the customer ID, Customer name, City, State and zip in seperate lines. I tried using the text to column, but the problem is some companies have a comma after their name to show if it is an llc or inc etc. What happens is the companies that do not have inc etc- it works just fine, however the ones that do have inc etc because there is another comma- it moves everything over one column. In the city column it says inc and in the state it has the city etc. Is there an easy way to make this work?
View 9 Replies View Relatedhow to split data into columns.
I have a set of (imported) data consisting of 1000+ rows. The data set (bank statement) contain six informations (date1, transaction, vendor, date2, sum1, sum2) in one cell which has to be split into six columns.
Using text-to-columns will generate more than six columns since the set dosn't have any delimiters and both the transaction and vendor name-fields contain blank spaces.
Is there a way to either split the data into the correct number of columns or if text-to-columns is used - a way to manipulate the data into the correct columns, for instance with help of filtering ?
small data sample included
How to split the data in my cells
Currently it looks like this.
1 - 2 - 3,4,5
A - B - C
I would like it to look like this.
1 - 2 - 3
1 - 2 - 4
1 - 2 - 5
A - B - C
I have an address list that each address is in one cell. How can I seperate the address, city, state, and zip when they vary so much? I have included a sample from the list below.
320 PLUS PARK BLVD NASHVILLE TN 37217-1001
806 TWIN CITY AVE SPRINGDALE AR 72764-7083
1415 MURFREESBORO RD NASHVILLE TN 37217
300 WILMOT RD DEERFIELD IL 60015-4600
4325 AMNICOLA HWY CHATTANOOGA TN 37406-1014
2505 WEST PARWAY DRIVE RUSSELLVILLE AR 72801
675 PONCE DE LEON AVE NE ATLANTA GA 30308-1829
2035 N COLLEGE AVE FAYETTEVILLE AR 72703-2613
PO BOX 45009 SALT LAKE CTY UT 84145-0009
spliting a cell and moving them to 2 other cells.
Column D contains date and time in the format: 15/09/2011 08:01:01
I need them to be split into Date in column V and Time column W
Need the code to loop until there are no more values in column D.
Forgot to mention that the Column D is a date format and they need to be in there respective date and time format when split!
I need help creating a macro that will search through my excel spreadsheet and for every instance where column A isn't empty it should cut a range of columns from that row and paste them in a different range of columns in the row before it. It should then delete the row that it cut the columns from and keep searching until it has done this for the whole worksheet. I can modify which range of columns are needed, but it has been so long since I've worked with excel macros that I haven't been able to do it.
View 5 Replies View RelatedIt may be easier to view the attachment to see what I am trying to do.
I would like to split frequency data by groups.
So I have 2 different names in column A, with a bunch of their ratings in column C.
I would like to be able to view the frequency of their individual ratings to see who gave the most types of ratings.
Currently, I have an excel sheet of names and addresses. In my address column, many of the addresses have carriage returns separating information. I want to divide this information by carriage returns and parse it into different columns.
I have already tried what I believe is the correct method: I go to Data>Text to Columns. I choose "delimited." Then I enter [Alt 0101] under "other" and make sure that is the only option checked. When I finish, only *some* of my data is parsed into corresponding columns by the delimiter while some isn't.
I have a homework assignment where I have a list of companies with the products they have with one other company. The original company and their products are listed on the same row, with a dollar value assigned to the product. So Cell A1 has company name, cell B1 has product a, and Cell c1 has the amount they pay for that product. Is there a function I can use to split that one row into 3 separate rows, to show the company name 3 times and the product and dollar amount as it's own row, next to the company?
View 1 Replies View RelatedI need to split one row of data into multiple rows. I have one column which consists of a list of companies and Next to it I have a series of attributes for every year. I need to transpose the years into a single column and next to each year I need the values of the attributes.
Have a look at the attached file : Abrasives.xls.xlsx
I have a column that has data with multiple values seperated by commas. I need to seperate out the values and add them to a new column.
Example:
Column A
good, cheap, fast
slow
good
cheap
cheap,good
I would like them to be added to column B as:
good
cheap
fast
slow
good
cheap
cheap
good
Having some problems splitting data within a single column into several using VBA rather than a Formula. (I have been able to get working using a formula). I have found a few similar theads but nothing i seem to be able to convert with my some what limited skills
My data is always in a sheet called "Release Data" in column A, the number of rows varies daily. The data is always extracted with the delimiters in the same position E.G.
NNNNNN_AAA_Variable length txt
I would like to split the data into columns I, J and K.
Each row in my spreadsheet is a record. Unfortunately, for one cell, the data base that the info came from has in more than one piece of data in a cell in the data dump into Excel for that record. Each piece of data in the multi data cell is seperate by a ctrl enter hidden break.
I need a seperate record tied to the original record for each item in the multi data cell so that I end up with a flat file with unique records and data on one row.
Is there a way to do this other than manually? I'd like to have a macro since I run into this quite often depending on the client.
I'm currently using the following code (that I found online) to take a list of data and copy it to specific sheets based on the values in Column C (there are only 4 columns in my data set). The issue I have with it is that it's meant to create the sheets from scratch every time. What I could like, however, is for it to copy the data to preexisting tabs that are already named with the sames values that are found in Column C. This macro will actually perform that but the down side is it wipes out everything that's on those sheets but I cant have it do that. Is there a way to either modify this sheet so it only copies the four columns and only pastes the four columns onto the sheets?
Sub SplitData()
Const NameCol = "C"
Const HeaderRow = 2
[Code]....