# Two-minute Excel tips

## clock_with_money.jpg

Blogger
Tags
1

Here are four quick Excel tips, each of which you can master in two minutes or less! These tips are courtesy of Excel guru David Carter and our sister site, Accountingweb.co.uk.

### Excel 2min Tip #1: Sort data with the =RIGHT function

When Excel sorts a column of items, it looks at the initial character of each item, that is, the characters to the LEFT. But suppose you want to sort according to characters on the right?

For this you need to use the =RIGHT function.

Example problem:
You have a series of account codes, where the first five digits represent the nominal code, the last three digits the cost center.

They are in cells A1:A6 and in nominal code order like this (51000-52000):

## Trending

• ### 10 Myths vs. Reality: Forms W-2, 1095, and 1099

51000-100
51000-200
51000-300
52000-100
52000-200
52000-300

You want to sort them into cost center code order like this (100, 200, 300):

51000-100
52000-100
51000-200
52000-200
51000-300
52000-300

Solution

• Create a blank column to the right of column A
• In B1 type =RIGHT(A1,3).

• This will return the value 100.

Copy this formula down the rows.

Now sort the data in both columns on column B (Data, Sort, Column B).

Now you can delete Column B.

Note: A more robust formula that would handle the case where the reference before the "-" was of variable length would be:

=right(A1,len(A1)-find("_",A1))

As a by-product, this formula would also handle the case where the reference after the "-" was also of variable length.

### Excel 2min Tip #2: Use & to combine two columns into one. By David Carter

Use the ampersand (&) when you want to combine two fields into one.

Example Problem

You have a column of alphabetic account codes in fields A1:A6, like this:

Income Audit
Income Consultancy
Income Other
Premises
Marketing

How do you get them to sort into this sequence automatically?

Solution: Put a numeric prefix at the front.

Type these numbers into cells B1:B6

10
11
12
13
14
15

In cell C1, type the formula: =B1&”-“&A1

This returns 10-Income Audit.

Copy the formula down column C.

Now change the formulas to values as follows:

Highlight column C. Choose Copy. Then -Paste Special Values, OK (or Paste, Paste Values in Excel 2007).

From now on, use the list of account codes in column C.

### Excel 2min Tip #3. How to print just a part of your worksheet By David Carter

Sometimes you want to print just a part of your worksheet, not all of it.

The slow way is to highlight the area you want to print, then use the Set Print Area option.

The quick way is to highlight the area you want to print, then:

File - Print – at bottom left, change from Active Sheet to Selection –- Print.

### Excel 2min Tip #4. Add up rows and columns quickly with Autosum

Just finished putting together a budget and want to add up the rows and columns?

Suppose your budget fills cells A1 to L10.

Highlight cells A1 to M11 so that that there is a blank row underneath and a blank column to the right.

Then click the Autosum icon once (big Sigma; or use keyboard shortcut Alt+=)

Excel calculates the totals and puts them into the blank row and column.
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "http://www.accountingweb.com/technology/excel/two-minute-excel-tips", "fetch_time": 1448662017000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2015-48/segments/1448398450581.71/warc/CC-MAIN-20151124205410-00032-ip-10-71-132-137.ec2.internal.warc.gz", "warc_record_offset": 259060311, "warc_record_length": 25696, "token_count": 815, "char_count": 3200, "score": 3.515625, "int_score": 4, "crawl": "CC-MAIN-2015-48", "snapshot_type": "longest", "language": "en", "language_score": 0.83203125, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00019-of-00064.parquet"}