+ Reply to Thread
Results 1 to 17 of 17

Multiplying after the decimal point.

  1. #1
    Registered User
    Join Date
    04-21-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    13

    Multiplying after the decimal point.

    If I have 6.1143 in cell C19 and want to multiply this number by 35... in cell A1 I would just type =+MOD(C19,1)*35 and anything in C19 after the decimal point is multiplied by 35.

    My question is this, How do I get this formula to multiply by what ever number is in C17 versus an asinged number such as 35?
    for an example.

    C17 has 25 in it and
    C19 has 6.1143 in it

    C19 is automatically multiplied after the decimal point by the given number in C17 .1143 x what ever is in C17 in this case its 25 = 2.8575

    Thanks for the help
    Glenn

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,662

    Re: Multiplying after the decimal point.

    =MOD(C19,1)*C17
    Is this what you want?
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    04-16-2014
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Multiplying after the decimal point.

    =mod(c19,1)*c17

  4. #4
    Registered User
    Join Date
    04-21-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Multiplying after the decimal point.

    Faraz.Ahmed and popipipo that is exactly what I was looking for, thank you so much for your time.
    I have one more question if you guys don't mind?

    If I have a number 35.2571 and I multiply only the .2571 by 35 Instead of showing 8.9985 it's rounding it up to 9 how do I get to just show 8.9985 instead of rounding?

    Thanks,
    Glenn

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,662

    Re: Multiplying after the decimal point.

    Change your cellformat

  6. #6
    Registered User
    Join Date
    04-21-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Multiplying after the decimal point.

    Yea I tried that, I changed Format Cells to Number and tried different formatting and it stayed rounded to 9 but added some zeros behind it.

    Thanks,
    GS

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,738

    Re: Multiplying after the decimal point.

    When you change the format to numbers, change the number of decimals to 4. When I did the calculation, and left it as general it came up as 8.9985. Likewise when I change to a number with 4 decimal places
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  8. #8
    Registered User
    Join Date
    04-21-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Multiplying after the decimal point.

    Quote Originally Posted by alansidman View Post
    When you change the format to numbers, change the number of decimals to 4. When I did the calculation, and left it as general it came up as 8.9985. Likewise when I change to a number with 4 decimal places
    alansidman,

    Thank you for your response, I did try your suggestion and it still rounds up adding 4 zeros behind my 9 such as 9.0000 vs 8.9985 I do have one cell on my sheet that is rounding up, wounder if this is causing it somehow.

    here is how my sheet is laid out.

    Batching Sheet






    KTT# 1234567.9 WO# 12345


    Species: Tomato Variety: Plant



    Total weight of material: 1234 Batch Size in lbs: 35


    Batch Total: =D15/G15
    Number of Batches: of =ROUNDUP(C18, 0)

    Batch Remainder Size: =MOD(C18,1)*G15

    Treatment Type:
    Primed Non-Primed


    Date Batched =TODAY() INIT:



    If you copy and paste that into excel it will show you what I got going on... change Total weight of material to 12345 or what ever you want and you will see the problem. How it works is you fill in total weight of material: 1234 and the Batch Size in lbs: 35 it calculates the Batch Total and that number gets rounded up giving you the number of batches. Number of Batches: of 36 the batch size in lbs is then multiplied with the Batch Totals .25714 or what ever number is in it after the math is done in the total weight and batch size. and this gives you the remaining batch total size, except its rounding up.

    I hope this makes since you.

    Thanks
    GS

  9. #9
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,662

    Re: Multiplying after the decimal point.

    Please upload your excel file
    Then we can see what is going wrong.

  10. #10
    Registered User
    Join Date
    04-21-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Multiplying after the decimal point.

    Here is the sheet I'm working on. The values on sheet 2 are carried over from sheet 1.

    Batching Sheet.xlsm

    Thank you for looking this over.

    GS

  11. #11
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,662

    Re: Multiplying after the decimal point.

    You see 35.2571, but it is 35,2571428571429
    0.2571428571429 * 35= 9.000

    First you divide by 35 and the you multiply with 35
    You always get a interger as result.

  12. #12
    Registered User
    Join Date
    04-21-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Multiplying after the decimal point.

    yes I understand what you are saying but if you take 2571 and times it by 35 you get 8.9985 and the sheet rounds it up to 9, is there a way to keep 89985 with out rounding it up?

    Thanks popipipo for all your help.
    GS

  13. #13
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,662

    Re: Multiplying after the decimal point.

    =ROUND(D15/G15;4)
    Use this formula in C18

  14. #14
    Registered User
    Join Date
    04-21-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Multiplying after the decimal point.

    popipipo,

    When trying this formula =ROUND(D15/G15;4 in C18 I get the excel popup saying,

    "it found a problem with this formula. .you type: =1+1, cell shows: 2
    To get around this, type an apostrophe (') first
    *you type '=1+1,cell shows: =1+1"

    Thanks
    GS

  15. #15
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,738

    Re: Multiplying after the decimal point.

    @gshriner

    popipipo has used the European convention for the formula (as he is from Holland). You should use the US convention

    =Round(D15/G14,4)

    Replace the semi-colon with a comma. Note this for the future when using the forum. Different versions of Excel use slightly different conventions.

  16. #16
    Registered User
    Join Date
    04-21-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Multiplying after the decimal point.

    This was exactly what I was needing guys!
    Thank you popipipo and alansidman so much for all the help!

  17. #17
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,738

    Re: Multiplying after the decimal point.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 2
    Last Post: 06-29-2012, 07:52 PM
  2. Replies: 4
    Last Post: 06-10-2009, 12:50 PM
  3. Format display decimal values but no decimal point
    By BecParko in forum Excel General
    Replies: 1
    Last Post: 10-18-2007, 04:42 AM
  4. Replies: 3
    Last Post: 03-18-2006, 02:25 PM
  5. 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