+ Reply to Thread
Results 1 to 7 of 7

Automatically insert a decimal point on specific cells only

  1. #1
    Registered User
    Join Date
    03-22-2014
    Location
    Manila
    MS-Off Ver
    Excel 2003
    Posts
    25

    Automatically insert a decimal point on specific cells only

    Hi,

    Is there a way to allow the automatic insertion of decimal points to specific cells only?

    On my worksheet I have 3 columns S, T and U

    S = Are for names
    T = Are for numbers that are not currency amounts.
    U = Are for Dollar amounts wherein decimal point insertion should be applied in a way that if you need to type $15.34, it's simply typing 1534 and the decimal should auto insert after 2 places.

    The main problem is that Excel's advanced option - "Automatically insert decimal points" affects the whole sheet regardless and any number entered in Column T becomes dollar amounts too.

    Warm regards,
    PCat

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Automatically insert a decimal point on specific cells only

    press ALT-F11 to get to the VBE, in the left pane dbl-click on THISWORKBOOK,
    In the right pane, paste this code :

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-22-2014
    Location
    Manila
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Automatically insert a decimal point on specific cells only

    ranman256

    It works awesome! However why is it still defaulting to my country's currency instead of US Dollars?

  4. #4
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Automatically insert a decimal point on specific cells only

    I guess thats your EXCEL setting for money.

  5. #5
    Registered User
    Join Date
    08-30-2017
    Location
    USA
    MS-Off Ver
    2007,2016
    Posts
    1

    Re: Automatically insert a decimal point on specific cells only

    thanx this works

  6. #6
    Registered User
    Join Date
    06-14-2019
    Location
    Swaffham, UK
    MS-Off Ver
    10
    Posts
    1

    Re: Automatically insert a decimal point on specific cells only

    How can I modify this to cover more than one column?

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Automatically insert a decimal point on specific cells only

    Quote Originally Posted by JonathanJackson View Post
    How can I modify this to cover more than one column?
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original. Please start a new thread - See Forum rule #4

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. insert decimal point after first digit
    By henrikgb in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 11-07-2014, 07:57 AM
  2. Replies: 0
    Last Post: 06-17-2014, 12:21 PM
  3. Replies: 3
    Last Post: 04-24-2012, 09:16 AM
  4. Insert a decimal point
    By alleyb in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 11-23-2011, 05:22 PM
  5. Insert a decimal point 2 characters to the left
    By ClikClak in forum Excel General
    Replies: 2
    Last Post: 09-01-2010, 11:54 AM
  6. Replies: 2
    Last Post: 08-13-2009, 04:26 PM
  7. Automatically entered decimal point.
    By J.G.Martin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-17-2006, 09:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1