Sorting Ranges

Jun 3, 2008

I have a table setup in sheet1 and I want the user to be able to choose how this data is sorted. Ie based on a number of column headings.

I have a validation list that lets the user pick on of the following options:

Club
Seasons
Pld
W
D
L
GF
GA
GD
Pts
Titles Won
Runners-up

The answer is given in sheet2 cell C3

What I want is some code that will sort the range B10:N51 by the column heading result given above.

View 9 Replies


ADVERTISEMENT

Sorting Non Contiguous Ranges

Mar 23, 2009

I have a spreadsheet that I have developed at work to track sales related data. As part of the reporting for this data, it is sorted by date. I have been asked to capture some additional related data and due to the structure of the spreadsheet(that has been in use several months with no issues) I can not put the additional data in adjacent columns without doing a complete redesign of the format.

I can place the data several columns away.... The data "in the middle" is static and is used for other calculations and should not be sorted. Is there a way to sort both ranges of data WITHOUT disturbing the columns separating them and keep the proper relationship with the data?

See attached for a very simple example. In this data set the "original" data was in range A2:E11 the "New" data is in Range I2:M11. It would make life simple if I could do something like this (but it sorts everything in between)

View 2 Replies View Related

Sorting Data In Dynamic Ranges

Feb 6, 2014

In the attached workbook I have hard-pasted data in columns A:M that's designated as an Excel Table to make it dynamic.

In the adjacent columns O:AA I have formulae to extract data from A:M based on the "Frequency" stipulated in cell AD1,

I would like to be able easily to sort the data in the variable sized range in columns O to AA in descending order of the calculated values in column Z.

Best way to do this so that the formula don't get jumbled up or the blank cells in column Z end up at the top of the sorted data?

View 2 Replies View Related

Sorting Two Ranges In Different Order And Combining Result

Oct 9, 2009

I am wanting to display cricket bowling figures - the best figures for each player as the season progresses.

I track runs and wickets each week like this:

Runs 23 25 18 35
Wickets 1 3 2 3

Sorry can't post attachments. Top row is A1:E1. Bottom row is A2:B2.
This shows the bowling figures for 4 weeks.

I need to sort the Wickets range and find the highest number. When there are two or more cells returned with the same value (as there are here (3)), we then need to find the lowest value in the runs range for these two matches.

The result needs to be displayed as follows:

(number of wickets hyphen number of runs)

In this example 3 wickets was found twice. 25 runs were conceded one week and 35 runs another. So the result needs to be: 3-25

When there is only one cell with the highest number of wickets, the number of runs for that week is chosen without any need to check anything else.

e.g.

Runs 23 34 20
Wickets 1 3 2

would return: 3-34

View 9 Replies View Related

Move Ranges To Corresponding Ranges Based On Column Having Data

Oct 25, 2007

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 Related

Static Ranges And Dynamic Ranges

Feb 26, 2010

definitions for static ranges and dynamic ranges?

View 9 Replies View Related

2 Input Vertical Ranges Need Formulas To Output 2 Vertical Summary Ranges

Mar 7, 2013

I have two vertical ranges that I need summarized into 2 adjacent vertical ranges.

"
A B C D
| SUMMARY
model qty| modelqty
1 4.12922.0000| 4.12952.2000
2 2.000012.1250| 2.000025.1250
3 4.12929.0000| 318.0000
4 318.0000|
5 4.1291.2000|
6 213.0000|
"

A1:A6 is my SKU's model number B1:B6 is my inventory C1:C6 should contain formulas that result in a summary of the models D1:D6 should contain formulas that result in a sum of the inventory count for each model

View 1 Replies View Related

Copy Ranges & Add Them To Other Ranges

Nov 1, 2006

In the attached file, I have variable range in column A:B, column C:D and in column E:F

I want a macro to do the following:

Start with sheet "A", select the available range in column A
then copy and paste in the sheet "B" but with all the cell values added with the value in H1.

Then in sheet A, simply copy the available range in column B and paste it in sheet B

Do the same until column F in sheet A. Pastespecial if it is odd column. simple past it is even column.

I know the macro code for the simple paste. But I am struggling with the paste special code.

View 9 Replies View Related

Define Only 2 Named Ranges From List Of Named Ranges

Apr 28, 2014

I have written this macro to convert into a csv file to run for all defined named ranges in the activesheet. It run jst perfect when I hit SAVE button and it creates that many different CSV files for each named range.

However I am trying to use same macro in the another file and the problem I am facing is there a lot more named ranges and I want to run the macro for only selected NAMED RANGE. In this case 2 Named Range / 24 Named range.

What part of code do I need to change and to what to make it work for just 2 named ranges ?

View 6 Replies View Related

Sorting Hi To Low

Mar 6, 2009

how to create the database and the resulting Pivot Table. My Sales Database includes the Sales $ and GP$ for each line. In the Pivot Table I've managed to create a calculated field for GP %, no problem.

i have also managed to figure out how to express each Row as a % of the Pivot Total, also very easy.

What I need to know is how can I sort my Pivot Table High to Low using these calculated fields?

View 9 Replies View Related

Sorting MP3 With VBA

Oct 4, 2003

I don't understand all of it, but I observed that it works only with mp3 with tag id v1, not v2, anyway I also see another code for tag id v2 given by NateO.

But before entering in detail of what I want, is it possible to edit tag id v1 or even v2, with VBA? Because I want to complete my mp3 informations that are missing, or modify the wrong one, in excel, and then with a macro update my mp3 files...

I've found this code on the forum to get my mp3 informations :

Option Explicit

Public Type mp3Info
Header As String * 3
Title As String * 30
Artist As String * 30
Album As String * 30
Year As String * 4
Comment As String * 30
Genre As Byte
End Type

Sub Getmp3Info()
Dim mp3ID As mp3Info
Dim lngRow As Long, lngFile As Long
Dim lngFileCnt As Long

With Application.FileSearch
.NewSearch
.Filename = "*.MP3"
.LookIn = "H:Daniel" 'Change this to the folder you wish to search
.SearchSubFolders = True........................

View 9 Replies View Related

Sorting

Jun 21, 2007

I have a sheet with fixed number of rows but variable number of columns. I have to sort this sheet on the basis of column A starting A2. i am using the following code

Range("A1", Range("A1").End(xlToRight).End(xlDown)).Select

Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, Header:=xlYes

But it does not sort properly. To illustrate, i have 10 rows, some 4 columns wide and some 5 columns wide. Since the first row is 5 columns wide , all the rows with 5 columns populated get sorted but the rest get left out.

View 2 Replies View Related

Chronological Sorting

Feb 18, 2007

This is an example of what is being worked on:

(There are 500+ more lines like the ones below, in groups of approximately 17 lines per page of information.)


* C.B.A. Bank - 2nd reference to branch near Mike's store. (21/03/1956)
* Berwick exams results. (06/06/1877)
* Berwick exams (09/05/1877)
* Steps taken for erection of Berwick. (11/07/1874)
* Berwick tenders for work at home. (11/07/1877)
* W. was a storekeeper at Berwick. (25/07/1881)
* Berwick Brass. (27/06/1877)
* Commercial erected for son. (27/06/1878)

I need to do the folowing to it:
(not necessarily in the following order)

- Insert into Excel
- Remove brackets
- Sort chronologically
- Copy back into program I am using again, in same chronological order.

The desired outcome is to be able to throw into Excel all the lines and press a button, (possibly the Sort Ascending one) and have a chronological list of all entries.

View 10 Replies View Related

Automatic Sorting

May 11, 2007

I have a table which holds scores as well as other data for players. Is it possible to automatically sort a table based on their points score to see who is top of the league?

View 9 Replies View Related

Sorting 4 Columns Together

Nov 6, 2007

Is there a code or some way for me to sort 4 columns together? I want to sort a list of employees and for each employee theres a column with their Lost Business, customer satisfaction, and two more columns. I want to sort all the columns at the same time so that the best employees overall will go to the top of the list and the worst ones will be at the bottom. Whenever I use the sorting feature it does each column independant of the others so everytime I sort a new column it just moves around the last one I sorted.

View 14 Replies View Related

Sorting Data Out

Jan 12, 2008

I have five columns of data A to E. In each row there can be data in either 2 3,4 or 5 of the columns. What I want to do is essentially condense the data. So in columns, say, G,H,I J,K if there is data in column A then It goes into column g, if not it asks if there is any data in column b and so on. Then for H it does the same but one on. I have attached an example to show what I would like to happen.

View 9 Replies View Related

Sorting Hyperlinks

Jun 20, 2008

I created a data base that had a hyperlink to a plan of the store so we can find parts easy. With a lot of help for people here on this web site, it works very well.

My only problem now is that I sorted my Database by the hyperlink column. It made it easy to do one hyperlink and pull the fill handle down for the rest of the same hyperlink reference.

When I went to resort the database so that the parts were in alphabetical order. The sort worked well except that the hyperlink for lets say cell F87 was not sorted. Example : - F87 hyper link presort had the reference to Rack 10 self B. Post sort it had the reference to Rack 16 shelf C. But when clicked on it still took you to Rack 10 self B.

View 11 Replies View Related

Spreadsheet Sorting..

Nov 14, 2008

I'm trying to sort this spread sheet so that each email address will have its own column assigned to it. Ie jaz@hello.com will alway be column C and harry@hello.com will always be in D. The problem is I've around 1200 rows of infor and the email addresses are all over the place..

View 5 Replies View Related

Sorting By Frequency

Dec 20, 2008

how can data sorted be more frequency as most frequent on top and as the following:
1
1
1
2
2
3
3
3
3
to
3
3
3....................
i attach file

View 3 Replies View Related

Sorting DD/MM/YYYY Into DD/MM

Aug 9, 2009

I have around 1900 dates that I need to sort into order but I need the data to be displayed as DD/MM in chronological order eg 01/01, 02/01 etc.

At the moment the dates are DD/MM/YYYY in one column. Have tried sorting them into date order but have found that they're sorted by YYYY. Is there a way of sorting them DD/MM instead?????

View 5 Replies View Related

Sorting Numbers Like 1.2.2.3, 12.4.2.3 Etc

Aug 26, 2009

I should sort numbers in ascending order from left to right, but the numbers sort only from right to left.

This is what I want:

1.3.2.2
1.4.1
2.1.1.1.1
3.2.3.12
3.3.1

And this is how it goes:

2.1.1.1.1
3.3.1
1.4.1
1.3.2.2
3.2.3.12

There are also numbers that have letter at the end (1.2.3a), and the cell format is text.

View 10 Replies View Related

Sorting Problems

Sep 8, 2009

I have an array of data that I need sorted. I did a Custom Sort. However, the data did not all sort properly (some of it did). Any ideas as to why this happened and how I can get it to sort correctly?

View 5 Replies View Related

Sorting When Using Columns Beyond AA

Oct 6, 2009

Im not entirely sure about this but it seems like if I have data in columns A - Z and sort in one of them, the data in Columns AA - AZ does not move accordingly rather it stays fixed.

View 4 Replies View Related

Sorting By Date...?

Oct 7, 2009

I have a column showing date DD/MM/YYYY. I want to be able to get a new column stripping out the days so that I can chart changes over a month rather than each day of the last 2 years. I have tried altering the cell format to MM-YYY although this shows the format I want when i run a pivot chart it will still create records for individual days. I then tried copying and pasting the above as text only. This results in the pivot chart sorting A-Z rather than by date.

View 2 Replies View Related

Automatically Sorting

Nov 23, 2009

I have information in columns A (First name),B (Last name), C (Misc), D (misc). Is there a way that someone can enter in new information at the bottom of the list and it will automatically sort by the last name once saved or closed ect.. ? I have people not very familiar with Excel and the keep messing up inserting rows and I don't want them to sort. If they could just enter information at the bottom and save it, then when someone opens it to just view it, it will be in order.

View 6 Replies View Related

Sorting Alphabetic

Jan 31, 2010

The problem is sorting alphabetic.

View 12 Replies View Related

15 Different Currencies- Sorting

Sep 18, 2007

I am mapping this file on the basis of a lot of fields. But the end product has 15 currencies. My requirement is to separate the accounts on the basis of the currencies and then consolidate it on the basis of GL account. For example, first I have to find all the accounts that are in USD and then if there are 2-3 similar GL accounts, then I will consolidate on the basis of the GL accounts. Please find attached file.

View 9 Replies View Related

Sorting The Cells

Jun 15, 2008

in the the attached image of excel
i want to see what is the bigger number in the row 49
then sorting these numbers descending and write it in C52
then make a quick equation on in each number ,and this equation is to deduct this figure from each other nine numbers and see what is the zero or above zero result and put it the cell next to this number (column E) starting from E52
example
527.7 is the maximum number so i put it in the c52
and then deduct 527.7from each number ,like the following
41.0-527.7 = negative value (doesnot count)
21.8-527.7= negative value (doesnot count)
....
.... so on
and we will see that the only greater than zero or equal to zero result is only 1 result so we put the figure 1 in the cell E52

and so on on each number

View 11 Replies View Related

Sorting The Numbers

Feb 25, 2009

I have three columns that are added together. Depending on where I need them to go, I need three options. For example, E6,E7,&E8 are added up, on E9, I need to be able to direct it to "A @ E10", "B @ E11", or "C @ E12"

View 3 Replies View Related

Sorting Data In VBA

Mar 14, 2009

I am encountering numerous problems compiling a macro to sort some pretty messy data. Hoping some of you could take a look and offer some suggestions....

The Data I need sorting is shown in the 'DATARAW' worksheet, this comes in every day and shows positions for each traded period. Usually 48 periods which I have highlighted although the data download could somtimes consist of 46 or 50 periods.

Sheet 1 (DATA RAW) contains data which I download daily.

Sheet 2 (Data Sort) is how I need it to look after sorted (I only need the data in DATARAW replacing, not another worksheet creating).

So for example:

Where column A = SP8 and the adjacent column B = 1 I would need:

All values which = ECN to concatenate the value in B to the reference in column B directly adjacent to the value next to it, until the folowing rows are presented:

So for instance the first value reported would be 131964, second 131979 etc... until the following text is shown in the rows below

IDD
CAT
ACE
ACT
ACE
ACT


When these appear I need the entire rows to be deleted.

Then basically the same for the next period where SP8 appears in column A and 2 appears in Column B.

also, the final result should contain no formulas so it can be referenced by lookups etc... also, all numeric colums should be stored as number so excel doesn't get confused.

This will basically repeat itself until the end of the file showing the same split as aove but with ZZZ as a footer. Which I also need to delete. :-S

IDD
CAT
ACE
ACT
ACE
ACT
ZZZ

Rows containing the values below also need deleting.

AAA
NOH
DSI
AED

I've used colours in the attachment but the actual file doesn't have any.

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved