EXCEL 2007: Data Manipulation

A. Colin Cameron, Dept. of Economics, Univ. of Calif. - Davis

This September 1999 help sheet gives information on


CREATE NEW DATA BY TRANSFORMING EXISTING DATA

Suppose you have open a data set with the following information (cars.xls).

Card data 

Now  additionally create data on cars per person in household.
This data will be included in cells C2:C6 under the heading CARS PER PERSON.
To do this

The spreadsheet cells A1:C6 should look like:

Cars data extra 

The ability to manipulate data like this is a great attraction of spreadsheets. 


CELL REFERENCES

Cell reference examples are

Relative cell references can change after copying the cell references to a new location.
Absolute cell references do not change after copying the cell references to a new location.
Cell references can be part relative and part absolute
Cell references can be to a different worksheet in the current workbook
Cell references can be to a different workbook

SELECTING OR HIGHLIGHTING DATA

Many Excel commands involve selecting or highlighting data. Do this by

For long arrays this can require a lot of scrolling.
CTRL-down arrow moves automatically to the bottom of an array.
CTRL-up arrow moves to the top,. CTRL-right arrow to the right end of the arrow and so on.

Thus to select or highlight all the data


SORT DATA

Suppose we wish to order the newly created data in descending order by cars per person.

Sort

 
DELETE ROWS OR COLUMNS OF DATA

In most cases we wish to delete an entire row or column.
If you just highlight the row or column and hit the delete key then the contents disappear but the row or column (now blank) remains.
Instead click on the shaded row number or column letter and then right-click and choose delete.
Alternatively highlight the row(s) and column(s) to delete and then choose Edit | Delete and select delete all row or delete all column. 

For further information on how to use Excel go to
   http://cameron.econ.ucdavis.edu/excel/excel.html