Forestry Computing Helpdesk
Helpdesk Home Page COF Homepage Report a Problem to Helpdesk Computer Facilities Information Hardware and Software Tutorials Search Engines





Other Tip Collections


Adding a Chart Type
Decimal Alignment
Default File Location
Displaying Formulas
Editing with the Function Wizard
Entering Dates
Grouping Sheets
Hiding Cell Contents from the Printer
High Resolution Chart Capture
Including the Full Path with Filename
Line Break Within a Cell
Moving Cells
Moving Sheet to Sheet, Window to Window
Pasting Column Widths
Selecting Only Visible Cells
Setting Non-scrolling Rows/Columns
SUM Formula, Quick
Taskbar display of Files/Worksheets
Text Wrap
Transpose -- Rows to Columns, Columns to Rows
Workbook Defaults
Zooming Only Selected Cells


Adding a Chart Type
Do you have a special type of chart, with custom specifications about scale and such, that you use repeatedly in Excel 2000? You can save your chart definition as a Custom Chart Type that you can select from the Chart Wizard when you create new charts. (Unfortunately this saved definition doesn't preserve any resizing you might have applied to a chart embedded within a worksheet.)

Once you've created the chart, right-click on the Chart Area and choose Chart Type. Select the Custom Types tab. Next, select the radio button for User-defined. Use the Add... button to add this currently selected chart as a new type with a name of your choosing and any description you want to include. To change the definition you'll have to Delete the custom chart type and Add it again.

Also note that this Chart Type dialog offers a "Set as default chart" button whether you've selected a Standard or Custom chart type.


Decimal Alignment (With Varying Significant Digits)
A decimal tab in Word will let you align a column of numbers at the decimal point even when there are varying numbers of digits to the right and left of the decimal point. To do the same in Excel, Format | Cells using a Custom format of ????.??? with enough question marks on either side of the decimal to accommodate the most digits you have in any of your numbers.


Default File Location
To specify the default file location, the folder you're taken to by default when you open or save a file -- Tools | Options | General tab; type in the desired path in the "Default file location" field


Displaying Cell Formulas Rather Than Results
There are two ways to change Excel's cell display for formulas to display the actual formula rather than the formula results.
  1. Keyboard shortcut/toggle -- Ctrl-~ (Ctrl-Tilde)

  2. Tools | Options | View tab | Window Options section, check Formulas


Editing with the Function Wizard
There are times when it's best to use the Function Wizard to edit an existing function. All you have to do is click the cell that contains the function and then either press Shift-F3 or click the Function Wizard icon (f of x) in the toolbar. This will open the Function Wizard for the last function used in your formula. To move the Function Wizard to other functions in your formula, click on the desired function within the display of your formula in the formula bar. Work through the Function Wizard(s) as normal and click Finish to close the wizard and apply your changes to the selected cell.


Entering Dates
Is there a way to enter a date so that all four digits appear in the year--so that the year 2000 will appear as '2000' instead of '00'? You can't enter days to display that way, but you can format them to, as follows:
  1. Select the cell(s) containing the dates you want to format.
  2. Right-click the selected cell(s) and choose Format Cells. The Format Cells dialog box appears.
  3. Click the Number tab.
  4. In the Category list, select Custom.
  5. In the Type text box, type mm/dd/yyyy
  6. Click OK to close the Format Cells dialog box.
Excel now formats the cells to display the entire year. And you could format the cells before or after entering the actual data.


Grouping Sheets
Have ever considered grouping the sheets in your workbook together? This function might prove dangerous if inadvertently left on but it can be useful temporarily while you complete some functions. For example, you could check the spelling in all the sheets of a workbook:
  1. Group together: Right-click on a sheet tab, Choose Select All Sheets
  2. Spell Check: Choose Tools, Spelling
  3. Ungroup sheets: Right-click on a sheet tab, Choose Ungroup Sheets
The reason for ungrouping the sheets is when all sheets are selected whatever you do to one sheet affects all the sheets. That is, deleting a cell on the first sheet will delete the same cell on all the sheets!! You can use this feature to your advantage, for example, when developing a new workbook. Suppose you'd like to put some standard text headings on all the sheets in your workbook. All you have to do is group together the sheets, enter the text on the first sheet, and then ungroup the sheets. The text you entered will appear in the same place on all the sheets in the workbook.


Hiding Cell Contents from the Printer
Need to produce a printout where certain cells (not an entire row or column, you could right-click and Hide them) in the print area need to be hidden? One trick is to set the font color in those cells to white.
  1. Select the cell(s)
  2. Format | Cells
  3. In the Format Cells dialog box click the Font tab
  4. Click the arrow at the right side of the Color list box and select white from the list
  5. Click OK to close the dialog box and apply your new font color
  6. Print the worksheet without showing the unwanted cells. After you finish printing, select the cells again and set the color back to black (or automatic).


High Resolution Chart Capture
Normal Copy | Paste techniques from Excel into a variety of programs may not give you the resolution you need to send an Excel chart out for publication. One technique to get around this problem is to use
[Alt][Print Screen] to capture an image of your currently active window (Excel chart window) to the clipboard. Then you just Paste that into a graphics program (IrfanView, PaintShop, Photoshop) and crop.

To get the resolution you need, set your desktop/screen resolution to something obscenely high -- 2048x1536 (when you may usually work at 1024x768). This will allow you to resize your graph to fill the screen and go from there.

To change your screen resolution -- Right-click your Desktop (background) and choose Properties | Settings and click and drag the screen resolution slider to the resolution you want.


Including the Full Path with Filename in a Header/Footer
NOTE: With Office XP/2002 this option is provided in the header/footer dropdown choices.
A Visual Basic for Applications (VBA) macro can make this a quick and automatic task. The subroutine below inserts the full path and file name into the left footer for every sheet in a workbook.
Sub CustomFooter()
'   Inserts the file name and path into the page footer
'   for each sheet in the active workbook

    For Each sht In ActiveWorkbook.Sheets
        sht.PageSetup.LeftFooter = ActiveWorkbook.FullName
    Next sht
End Sub 
For more details see the full FAQ: http://webdata.forestry.oregonstate.edu/helpdesk/faq/answer.php?ID=899


Line Break Within a Cell
With text wrap formatting set in a cell (Format | Cells | Alignment | check Wrap Text), sometimes you want to force a line break at a certain point. Use Alt-Enter.


Moving Cells
To move the contents of a cell or a block of cells to a new location, select the cell(s) and move the mouse over the edge of the selected cells until the cursor turns into a pointer. Now, use the mouse to grab the cell by one of the edges, click and hold down the mouse button while you drag the data or formula to a new location. When you reach the new location, release the mouse button.


Moving Sheet to Sheet, Window to Window
Is there a shortcut key for switching between sheets (and windows) in an Excel spreadsheet/workbook? Yes there is:
  • To move to the next sheet in a workbook, press Ctrl + PgDn.
  • To move to the previous sheet in a workbook, press Ctrl + PgUp.
  • To move to the next window (open workbook), press Ctrl + Tab.


Pasting Column Widths
When you Copy and Paste cells in Excel (Ctrl-C, Ctrl-V) you can't automatically paste in the column widths that accommodate that data. But, you can paste in the column width by using Paste Special. After using a normal Paste to paste in the data and cell formats, right-click the new range of data you just pasted, choose Paste Special, and select the Column Widths radio button.


Selecting Only Visible Cells
When you've filtered data or hidden rows or columns, selecting a block of cells will also, disappointingly, select the cells that are not visible. There is a hidden command that will let you select only the visible cells. It's hidden in that you have to add this command to your toolbar in order to use it.
  1. Right-click in the gray area of the toolbar to the right of Help
  2. Choose Customize
  3. Go to the Commands tab
  4. Choose the Edit category
  5. Scroll all the way to the bottom of the list of Edit Commands
  6. You should find the Select Visible Cells command
  7. Click and drag this command and drop it where you want it to appear on a toolbar.
Now anytime you have cells hidden, you can click the Select Visible Cells icon to select all the currently visible cells WITHOUT selecting those cells you can't see.


Setting Non-scrolling Rows/Columns
How do I get a couple rows (or columns) to always stay visible in my window even when I scroll far down (or to the right)?
Before giving the commands below, position your cell pointer to indicate rows/columns to lock. When you give the command, rows above your cell pointer and columns to the left of your cell pointer will be frozen or set aside as separate scrolling areas.
  • Position your cell pointer to define the rows and columns to freeze.
  • Go to the Window menu and choose Split or Freeze Panes.
  • Return to the Window menu to Remove Split or Unfreeze Panes.
Split gives you areas that you can scroll within.
If you've chosen Freeze Panes your cell pointer will move out of the frozen pane area if you attempt to move beyond it.


SUM Formula, Quick
Hold down the [Alt] while you type the equal sign. Excel will automatically write a SUM formula for the cells above or to the left.


Taskbar display of Files/Worksheets
The option for controlling whether files/worksheets show up as individual items in the Windows Taskbar can be found by going to Tools | Options | View tab and checking "Windows in Taskbar".


Text Wrap
Can I make text wrap to multiple lines in a cell rather than appearing as one long line of text? Sure, to set text wrapping, open a worksheet and click a cell you want to use for text. Now choose Format | Cells and click the Alignment tab. Under Text Control, select the Wrap Text check box, then click OK. Text entered into the selected cell automatically wraps to fit the cell. If you need to force a wrap at any given point, press Alt-Enter.


Transpose -- Rows to Columns, Columns to Rows
Want to transpose your columns to rows or rows to columns? The transpose feature in Office 97/2000 is in the Edit | Paste Special dialog box.
  1. Select the cells to transpose, Edit | Copy
  2. Right-click on the upper-lefthand corner of a range of empty cells that can accommodate the transposed result.
  3. Choose Paste Special and check the transpose checkbox


Workbook Defaults
Can Excel be set up so that every new workbook created in Excel would start with certain formatting characteristics? It can be done. To create a workbook template for new workbooks:
  1. Create a workbook that contains the sheets, default text (such as page headers and column and row labels), formulas, macros, styles, zoom percentage, and other formatting you want in new workbooks that you base on the template.
  2. On the File menu, click Save As.
  3. In the Save as type box, click Template (*.xlt).
  4. In the Save in box, select the folder where you want to store the template.
  5. To create the default workbook template, select the XLStart folder in the Microsoft Excel folder. (You'll probably find the XLStart folder in c:\Program Files\Microsoft Office\office\ )
  6. In the File name box, type BOOK to create a default workbook template.


Zooming Only Selected Cells
You can Zoom only selected cells rather than the whole sheet if you use the Selection option with the Zoom. This option allows you to select the cells you want to zoom in on (this option won't reduce a range) and chooses just the right percentage to see the selection as large as possible.

Simply select the range you want to enlarge and then either choose Selection from the Zoom drop down or choose View | Zoom | Fit Selection.
When you're done, select 100% (or the appropriate percentage) from the Zoom control in the Toolbar or choose Edit, Undo Zoom or press Ctrl-Z.


Select a Frequently Visited Page...
Search the Helpdesk Web pages...
InfoSeek Help.
Helpdesk Home Page COF Homepage Report a Problem to Helpdesk Computer Facilities Information Hardware and Software Tutorials Search Engines


the current number of problems in the database is:
Warning: readfile(http://webdata.forestry.oregonstate.edu/helpdesk/problemcount.php): failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized in /www/template/helpdesk/footer.php on line 69

disclaimer you may direct comments to the Forestry helpdesk