The right sort

BY J. CARLTON COLLINS

Q: I receive large amounts of data that need to be sorted both vertically and horizontally in Excel. I typically accomplish this task by transposing the data onto a separate worksheet (using the Paste Special, Transpose command), where I sort the data vertically (which is actually a horizontal sort because the data has been transposed). I then transpose the sorted data back to the original worksheet and sort the data vertically to complete the double sort task. The data we receive is never the same size and, often, extra columns are included—ruling out an easy macro solution. Is there a way to make this task easier?

A: Excel 2010, 2007 and 2003 all provide the ability to sort top to bottom and left to right, with Sort top to bottom as the default setting. To use the Sort left to right option, select the data to be sorted, then select Sort from the Data tab (or menu). In the Sort dialog box, click the Options button, click the Sort left to right radio button, and then click OK.

Define the sort criteria as you normally would, then click OK to complete the left-to-right sort. Once you have completed this task, sort the data again, this time changing the option back to Sort top to bottom. Using this approach, you will avoid the extra tasks of copying, pasting and transposing data twice between two worksheets.

More from the JofA:

 Find us on Facebook  |   Follow us on Twitter  |   View JofA videos

SPONSORED REPORT

How to make the most of a negotiation

Negotiators are made, not born. In this sponsored report, we cover strategies and tactics to help you head into 2017 ready to take on business deals, salary discussions and more.

VIDEO

Will the Affordable Care Act be repealed?

The results of the 2016 presidential election are likely to have a big impact on federal tax policy in the coming years. Eddie Adkins, CPA, a partner in the Washington National Tax Office at Grant Thornton, discusses what parts of the ACA might survive the repeal of most of the law.

COLUMN

Deflecting clients’ requests for defense and indemnity

Client requests for defense and indemnity by the CPA firm are on the rise. Requests for such clauses are unnecessary and unfair, and, in some cases, are unenforceable.