If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Help with a Mystery

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-18-10, 17:48
JerryDal JerryDal is offline
Registered User
 
Join Date: Jan 2002
Location: Bay Area
Posts: 473
Help with a Mystery

In Cell A1 type three periods
In Cell B1 type =MID(A1,1,1)
In Cell C1 type =LEN(B1)

What I expect to get is one period displayed in Cell B1.
If you get the results I do, Cell B1 will display 3 periods when you have 3 or more periods in Cell A1, and the length formula always displays 1. This odd behavior showed up in Access VBA. Is there an Excel expert that knows why this happens?

Thanks.
Jerry
Reply With Quote
  #2 (permalink)  
Old 05-19-10, 04:21
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hi Jerry,

Excel's autocorrect feature is changing the ... to ASCII 133.

You can stop this by:

Tools > Autocorrect Options
Untick "Replace text as you type" (or delete that particular rule in the listbox)

Then type in ... in a cell and repeat the process you described.

Hopefully mystery solved!
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #3 (permalink)  
Old 05-19-10, 11:44
JerryDal JerryDal is offline
Registered User
 
Join Date: Jan 2002
Location: Bay Area
Posts: 473
Deleting the autocorrect rule for ... worked as you said it would. Thanks.
Jerry
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On