Auto Sorting

isuryd

New Member
Joined
Aug 25, 2016
Messages
4
Hello,

I have a spreadsheet that has a main tab that pulls data from two different tabs. The main sheet has VLOOKUP formulas to pull data from the other tabs to give me a sole tab in which all the data is visible.

I would like to auto sort the C column in descending order, but have not found a macro or formula that works for what I'm looking for.


My main tab looks like this:

[TABLE="width: 332"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]Employee ID[/TD]
[TD]Employee[/TD]
[TD="align: center"]CPH[/TD]
[/TR]
[TR]
[TD]10101[/TD]
[TD]John Doe[/TD]
[TD="align: center"]275[/TD]
[/TR]
[TR]
[TD]10102[/TD]
[TD]Jane Doe[/TD]
[TD="align: center"]180[/TD]
[/TR]
[TR]
[TD]10103[/TD]
[TD]Bobby Doe[/TD]
[TD="align: center"]176[/TD]
[/TR]
[TR]
[TD]10104[/TD]
[TD]Craig Doe[/TD]
[TD="align: center"]168[/TD]
[/TR]
[TR]
[TD]10105[/TD]
[TD]Lindsay Doe[/TD]
[TD="align: center"]163[/TD]
[/TR]
</tbody>[/TABLE]


I need to sort the data by the CPH (c) column, which has a VLOOKUP formula in it, in descending order.

Is this possible since column C's data is showing using a formula and it's not a concrete number?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Welcome to Board!

It seems difficult may be expert have solution of this! but my suggestion in this regards is to copy your actual data paste values and then sort according to column c. Its all done by a macro!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,335
Members
452,636
Latest member
laura12345

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