+ Reply to Thread
Results 1 to 5 of 5

Add decimal points to a number within a formula

  1. #1
    Registered User
    Join Date
    08-11-2017
    Location
    Toronto, ON
    MS-Off Ver
    2007
    Posts
    7

    Add decimal points to a number within a formula

    I'm trying to use CONCATENATE within an IF statement to display a number in a cell (ex. 00044 as 0.44) if the condition is fulfilled.

    From the contents under Type and Mileage, I want the formula to produce the Title as shown below.

    Type: Mileage: Title:
    Geometry 00044 Geometry - Mi 0.44


    So far I only have the following formula in the Title column...

    =IF(A1="Geometry", CONCATENATE(A2," - Mi ",B2)"")

    which would give me the title "Geometry - Mi 00044"

    What do I add to get B2 to be displayed as 0.44 instead of 00044?

    Thanks,

    Cecilia

    P.S. I can attach an example file if necessary
    Last edited by cecilia_is_the_best; 08-11-2017 at 04:12 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Add decimal points to a number within a formula

    Try

    =IF(A1="Geometry", CONCATENATE(A2," - Mi ",B2/100)"")

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,731

    Re: Add decimal points to a number within a formula

    b2 is text 00044
    if so
    b2*1 will convert to a number
    so now you have 44
    so you can now divide by 100
    But do you always want the number divided by 100
    what if b2 had

    00444
    what would you want then
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    08-11-2017
    Location
    Toronto, ON
    MS-Off Ver
    2007
    Posts
    7

    Re: Add decimal points to a number within a formula

    See attachment for example.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-11-2017
    Location
    Toronto, ON
    MS-Off Ver
    2007
    Posts
    7

    Re: Add decimal points to a number within a formula

    So simple - can't believe I didn't think about that.

    Thank you!!

+ 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. SOLVED Countif formula with 4 decimal points
    By toclare84 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-24-2015, 11:57 AM
  2. [SOLVED] Combining a simple formula with text concatenation produces to many decimal points.
    By twelvepointelk in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-18-2014, 11:13 PM
  3. Formating the formula to display two decimal points
    By chrism_production in forum Excel General
    Replies: 5
    Last Post: 02-14-2014, 01:09 AM
  4. Number won't display with decimal points
    By mbderby in forum Excel General
    Replies: 2
    Last Post: 07-03-2013, 10:49 AM
  5. [SOLVED] How to place decimal points in specific places to a large number.
    By LionelSpratt in forum Excel General
    Replies: 7
    Last Post: 03-30-2013, 06:53 PM
  6. [SOLVED] number has bogus decimal points
    By Librarian in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-01-2005, 08:55 PM
  7. [SOLVED] number formats default to 2 decimal points when entered so 24 bec.
    By kiddo7us in forum Excel General
    Replies: 1
    Last Post: 03-30-2005, 05:06 AM

Tags for this Thread

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