+ Reply to Thread
Results 1 to 3 of 3

missing decimal places

  1. #1
    Registered User
    Join Date
    10-17-2014
    Location
    Ireland
    MS-Off Ver
    2007
    Posts
    8

    missing decimal places

    Hi
    I hope somebody can help me. i have cell (B1) that has a number in it. I have this cell formatted to a number with 2 decimal places (5.00). In another cell I
    want to put text that includes the value of cell B1. Cell formatting is set to general. So I am putting in the cell ="G90G0X"&B1 . This comes out as G90G0X5 without the decimal place. This is code for a CNC machine where thw X5 tell the machine a position to go to but the machine will read X5 as X.005 where no decimal is present. So in short I need the decimal. Cell B1 is a calculation, so this could be a number with decimal places or a whole number. Is there anyway to make a decimal appear in the answer.
    Thanks

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: missing decimal places

    Try

    ="G90G0X"&TEXT(B1, "0.00")

  3. #3
    Registered User
    Join Date
    10-17-2014
    Location
    Ireland
    MS-Off Ver
    2007
    Posts
    8

    Re: missing decimal places

    Worked perfect. Thanks alot.

+ 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. Adusting decimal places based on greatest number of places in a series
    By anelson87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2022, 01:05 PM
  2. Replies: 2
    Last Post: 12-29-2013, 08:37 PM
  3. [SOLVED] copy number with 3 or more decimal places and paste the actual value as 2 decimal number
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-29-2013, 12:57 AM
  4. [SOLVED] Calculating decimal places in a non decimal format (ie sixes not tens)
    By Mike Brewer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-07-2013, 08:58 AM
  5. Replies: 4
    Last Post: 12-26-2012, 05:37 AM
  6. Paste two decimal number in excel without extra decimal places appearing
    By jeffery_frick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 07:49 PM
  7. Replies: 4
    Last Post: 06-10-2009, 12:50 PM
  8. [SOLVED] FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT.
    By SUKYKITTY in forum Excel General
    Replies: 3
    Last Post: 07-06-2005, 09:05 AM

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