+ Reply to Thread
Results 1 to 8 of 8

doing math on the number before a decimal

  1. #1
    Registered User
    Join Date
    02-24-2016
    Location
    LA
    MS-Off Ver
    2011
    Posts
    7

    doing math on the number before a decimal

    How do I take the 1.15 and multiply the 1. x 16 and then add the .15 (should equal 31)?

    and separately, then take the 31 outcome and divide by 24 (fps) to equal: 00:01:07 (H:M:S)

    Cell A: 1.15
    Cell B: 31 (output of 1.x16 +15)
    Cell C: 31x24 in H:M:S

    Thanks!
    -Sam

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: doing math on the number before a decimal

    The INT function will give you the integer part of A1, so you can multiply this by 16 and you can also use it to give you the fractional part of A1 (by subtraction), which can then be multiplied by 100 before adding it to the result of the first part.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-24-2016
    Location
    LA
    MS-Off Ver
    2011
    Posts
    7

    Re: doing math on the number before a decimal

    Thanks, how do I set formulate it to read the .15 and then add that to the =INT(A1*16)?
    Because the .15 will be different in other cells, do I have to first separate the 1.15 into two cells A1: 1.15 , (A2: 1 , B2: 15) and then add them up? (C2=A2+B2)?

    Example:
    A1: 4.06 (this should equal out to: 4x16+6 = 50)
    A2: 1.13 (1x16+13 = 29)
    A3: 2.00 (2x16+0= 32)
    A4: 3.14 (3x16+14= 62)

    Thanks for the help!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: doing math on the number before a decimal

    If the value is in cell A1, then you can use this formula in B1:

    =INT(A1)*16 +(A1-INT(A1))*100

    which is what I said in Post #2.

    Hope this helps.

    Pete

  5. #5
    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,196

    Re: doing math on the number before a decimal

    Try

    =INT(A1)*16+MOD(A1,1)*100

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: doing math on the number before a decimal

    Row\Col
    A
    B
    C
    1
    4.06
    70
    B1: =ROUND(16*DOLLARDE(A1, 16), 0)
    2
    1.13
    29
    3
    2.00
    32
    4
    3.14
    62
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    02-24-2016
    Location
    LA
    MS-Off Ver
    2011
    Posts
    7

    Re: doing math on the number before a decimal

    Thank you shg, Peter_UK, JohnTopley !!!

    And sorry Peter_UK that i misunderstood your first post, thank you for the clarification!

    shg you rock!

    - Sam

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: doing math on the number before a decimal

    You're welcome.

+ 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. Want to separate number and decimal. After need to sum of number & decimal.
    By kumarp11 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-03-2014, 02:11 PM
  2. [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
  3. number to number ratio / math question
    By Bishonen in forum Excel General
    Replies: 4
    Last Post: 12-20-2012, 03:23 AM
  4. Replies: 2
    Last Post: 06-29-2012, 07:52 PM
  5. 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
  6. Replies: 3
    Last Post: 03-18-2006, 02:25 PM
  7. Replies: 3
    Last Post: 02-16-2006, 07:00 AM
  8. How to convert a decimal number to a non-decimal number?
    By snickers22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2005, 07:06 PM

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