Tech

Guides
 

Prevent Excel from turning fractions into dates

By Mary Ann Richardson, Special to ZDNet Asia
Thursday, March 13, 2008 02:12 PM

If the user wants Excel to recognize cell entries as fractions, it is necessary to apply the appropriate fraction format to the cell before entering the data.

Microsoft Excel


Prevent Excel from turning fractions into dates

If you do not apply a fraction format to a cell before you enter a fraction into it, Excel will convert the fraction into a date. For example, if you enter 1/50 into a cell, Excel immediately converts it to Jan-50. If you then try to reformat the same cell to a fraction, Excel converts it to 18264, the internal number that represents Jan-50.

So, if you want Excel to recognize your cell entries as fractions, you must apply the appropriate fraction format to the cell before you enter the data.

For example, say you are importing a column of data from an Access database table that contains fractions such as 1/50, 2/70, and 30/65. You will need to format the column of cells containing the data to an appropriate fraction format before importing. Follow these steps:

  1. Select the column that will contain the fractional data.
  2. Right-click the selection.
  3. Select Format Cells.
  4. In the Number tab, under Category, select Fraction.
  5. Under Type, select Up To Two Digits (21/25), then click OK.

Now, when you import the data to that column, Excel will format each entry as a fraction. Keep in mind that if the data contained fractions such as 30/750, you would select Up To Three Digits (312/943) in Step 5.

If you wanted to display your data as fractions over 100 (for example, 30/65 displayed as 46/100), you would select As Hundreds (30/100) in Step 5.

Alternately, if you won't be using the fractions in calculations, you can prevent Excel from changing your entries to dates by applying the Text format to the cell before you enter the data. In that case, in Step 4 select Text under the Category list, and then click OK.


Microsoft Access


Have Access easily select data for overtyping

Your Access forms will be easier to use if users can simply type over existing data without having to select it first. By adding a short procedure to each text box control's OnClick event to select the data automatically, users will not have to take time to click and drag over the existing data.

For example, to change the OnClick event for the First Name text box control in your Customer Data form, follow these steps:

  1. Open the form in design view.
  2. Right-click the First Name text box control and then select Properties.
  3. In the Event tab, click the Build button in the OnClick property box.
  4. Click Code and then OK.
  5. Enter the following code at the prompt:
    SendKeys "{Home}"
    SendKeys "+{End}"
  6. Press [Alt]Q.

Now, to update data in the First Name field, simply click inside the text box. Access highlights the entire entry so you can easily type over the existing text.


Microsoft Word


Let Word 2003/2002 AutoText speed up your e-mail responses

If you find yourself copying the same paragraphs into your e-mail responses--for example, the same words to send out responses to confirm a customer's appointment--you don't have to compose each e-mail reply individually or copy and paste text from a previous e-mail. Here's how to create an AutoText button in Word that will insert the text you need into your e-mail message automatically--all you need do is customize it and send.

Follow these steps:

  1. Open the last e-mail you sent confirming a customer appointment.
  2. Select and copy the text that you would like to use in subsequent e-mail messages.
  3. Open a blank document in Word.
  4. Paste the text you copied to the Word document.
  5. Select the text you copied.
  6. Go to Insert | AutoText, then click New.
  7. Click in the Please Name Your Autotext Entry text box and enter Appointment Confirmation. Click OK.
  8. Go to Tools | Customize.
  9. Click the Toolbars tab and then click the New button.
  10. In the Toolbar Name text box, type Client E-mails and then click OK.
  11. In the Customize dialog box, click the Commands tab.
  12. Scroll through the Categories list, then click New Menu.
  13. Scroll through the Commands list and click and drag New Menu onto the Client E-mails toolbar.
  14. Right-click New Menu in the Client E-mails toolbar.
  15. Click in the Name area and type E-mail AutoText.
  16. In the Customize dialog box, in the Categories list, click AutoText.
  17. Click in the Commands list and click and drag the Appointment Confirmation entry onto the E-mail AutoText menu.
  18. Close the dialog box.

To include the text in your message, rather than send it as an attachment, change Word Options as follows:

  1. Go to Tools | Options.
  2. On the General tab, clear the Mail As Attachment check box.

Now, to create your confirmation e-mail, follow these steps:

  1. Open a new Word document.
  2. Click the Appointment Confirmation menu in the Client E-mails toolbar.
  3. Make any other changes to the document.
  4. Go to File | Send To: Mail Recipient.
  5. A new e-mail window will open with the text of your document in the message. Fill out the rest of the e-mail, then click Send.



WORTHWHILE?

0

0 votes
Blog

Talkback 0 comments

There are currently no comments for this post.

Guest user

Guest user

Level: 
Joined: —
Already a member? Log in »



 

Loading...

Whitepapers / Case Studies

Downloads

Microsoft Office Suite News


Tech Jobs Now!

Tags

  1. access
  2. active
  3. analysis
  4. availability
  5. data
  6. directory
  7. do
  8. double-take
  9. excel
  10. field
  11. high
  12. java
  13. management
  14. microsoft
  15. page
  16. ports
  17. project
  18. secure
  19. server
  20. service
  21. services
  22. should
  23. simply
  24. sql
  25. time
  26. tips
  27. use
  28. using
  29. windows
  30. word