VBA Macro, Sort column alphabetically with rows following, how? - excel

Multiple columns and rows. I want to sort one column alphabetically so that also the corresponding data in the rows will be sorted with it and not just the column. I am having trouble finding the right VBA code for that, could anyone please help with the code to do that task? thanks.

Related

Excel automatically sort column of numbers

I am looking to automatically sort a column of numbers in descending order without touching the sort button, or VBA.
Unfortunately I am trying to achieve this in a work environment where I have no access to VBA and excel is not one of the latest versions that contains the new SORT function in 365.
It is quite literally a column of numbers, and the numbers are automatically updated as they are totals of rows of smaller numbers elsewhere, and these change based on something else - so this specific column will always change numbers, but I need the column to automatically keep on top of sorting numbers by descending order.
I tried using rank.eq and some other bits with adding a 1 to each row to avoid duplicates, but this buggered it up if more than two duplicates was found. Is there anything I can do at all? Even if it involves going a very long way round it and building extra tables and things etc.
Grateful for any help.
It'd be easier to see your data and without being able to use a spill range, it's impossible to know how many rows. I also think you're intending to use LARGE function rather than RANK.
If you had your numbers in column A, you could drag the following formula down the appropriate number of rows to get the numbers sorted... (starting in cell B1)
=LARGE(A$1:INDEX(A:A,COUNTA(A:A),1),ROW())
If you can get your numbers in a table, you could use a similar formula but the table would ensure the appropriate rows exist (assume table name is Table1 and note the column names of RawNumbers and Sorted). Put this in Sorted Column:
=LARGE([RawNumbers],ROW()-ROW(Table1[[#Headers],[Sorted]]))
I presume using a pivot table is not a viable option... but these are how you could accomplish your objective of sorting by formula.

Formula or VBA to find and remove row-wise duplicates but keep column-wise duplicates

I have an excel sheet with duplicate entries in rows and columns (See sample below).
I need to eliminate values that appear more than once in each row so that each row is left with only unique values, while keeping the column-wise duplicate values. I have scoured the internet for days but there doesn't seem to be a solution to this anywhere. All I can find are the basic duplicate data elimination techniques which wouldn't work in my case. Any solution will be very much appreciated!
You can use UNIQUE() function with TRANSPOSE().
=TRANSPOSE(UNIQUE(TRANSPOSE(A1:E1)))

Excel secondary sorting doesn't work. Any work around manually or with VBA?

I have data in four columns and i need data first to be sorted by column "A and then by Column "C". When i use sorting at multi level still the column "C" didn't get sorted (Column C has dates). Any help to do it manually or with macro is much appreciated.
I tried all ways, formatting is good, no extra spaces, no formulas...etc

Microsoft Excel get Count of Distinct Values

I am trying to use excel to get a count of distinct values, the following screenshot will illustrate what I am trying to do. Data Screenshot
Given data in the form on the left column I would like a way to display the occurrences of each distinct value on the right.
I have used the Outline Subtotal grouping to do this but it does not present the data in a form I can work with. I am by all means an Excel novice, any help would be appreciated
Thanks!
Use a pivot Table. Put the column in both the Rows and Values:

Find all duplicate values in one column and combine all its values

So I got this excel file with a lot of data which is why I want to avoid doing all this manually. Basically what I want to do is find all values that is the same in one column and then combine all it's values to one row.
If I have this data in a worksheet.
I would like the output to be like this
I appreciate all the help I can get.
EDIT:
This is what I get from a Pivot Table
When I actually would want it to look like this.
You must use Pivot Table function from (i recommend it) MS Excel.
It lets you to set wich columns becomes rows, what type of values they will contain and much more.
Pivot Tables are what you want.
It saved my career at my previous job :)
Here you got some screenshot of example for making sums for all duplicates in first column:
original table:

Resources