+ Reply to Thread
Results 1 to 9 of 9

Is there a way to change the max value of the number behind comma?

  1. #1
    Registered User
    Join Date
    02-23-2020
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    5

    Red face Is there a way to change the max value of the number behind comma?

    Hey.

    I am not very skilled in excel and also English is my second language so describing math related problems is a little difficult but i will try.

    What I am trying to do is to have one cell where I can fill inn an number and then one cell that divides that number by lets say 64. But i also want the number behind the comma to be maximum 64 as well not 100. so that whenever there 0.64 it becomes 1.

    I also need this to be different in all the cells so that one is 64 and another is for example 56.

    Example:

    ______A__________B_____
    1|__200___|__=a1/64__|
    2|__200___|__=a2/56__|

    Then the results would be:

    ______A__________B_____
    1|__200___|____3,8____|
    2|__200___|____3,32___|

    Is this possible?


    I tried asking this on reddit as well and so far none of the solutions seems to work
    Last edited by Jesh1337; 02-27-2020 at 10:25 PM. Reason: Removed Solved because a problem occured.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Is there a way to change the max value of the number behind comma?

    Administrative note

    Welcome to the forum

    in your haste to solve your problem, you probably missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    Thanks you for helping us help you

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Is there a way to change the max value of the number behind comma?

    Edited Simpler formulas.

    A workbook upload is still preferable. In the meantime try these with the understanding you will need to change the "." to ","
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 02-23-2020 at 01:16 PM.
    Dave

  4. #4
    Registered User
    Join Date
    02-23-2020
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Is there a way to change the max value of the number behind comma?

    Thank you so much!

    it worked the way i needed it too without changing , to .

    again thanks.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Is there a way to change the max value of the number behind comma?

    You are welcome. Thank you for the feedback, added rep and marking your thread Solved.

  6. #6
    Registered User
    Join Date
    02-23-2020
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Is there a way to change the max value of the number behind comma?

    Sorry for reviving an old thread but I ran into an issue.
    I think maybe my approach to the problem initially was wrong.

    The formula worked like i wanted it to but the results aren't optimal.

    Lets say my company sells boxes with 64 units of something inside, so there is an order of 330 units then we would ship out 5 boxes and 10 individual units.
    Or if the order is 321 units then we would ship out 5 boxes and 1 individual unit.

    The problem I ran into is that with the formula is that both 321 and 330 gives the answer 5.10, but ideally 321 would be 5.01

    Does anyone know if there is a way to solve the problem described above? as I would like to make an excel sheet with several orders that I can change the numbers of the orders in excel to get the amount of boxes and units quickly instead of having to manually calculate each order




    (Im trying to upload a sheet but the attachment button doesnt seem to work on my browser, I will try from a different device :S )

  7. #7
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,416

    Re: Is there a way to change the max value of the number behind comma?

    Try it this way...

    =--(QUOTIENT(A2,64)&"."&TEXT(MOD(A2,64),"00"))

    Change the two 64's to 56's for the second row's value.

  8. #8
    Registered User
    Join Date
    02-23-2020
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    5
    example sheet in attachment
    Attached Files Attached Files
    Last edited by Jesh1337; 02-27-2020 at 10:21 PM.

  9. #9
    Registered User
    Join Date
    02-23-2020
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Is there a way to change the max value of the number behind comma?

    Quote Originally Posted by Rick Rothstein View Post
    Try it this way...

    =--(QUOTIENT(A2,64)&"."&TEXT(MOD(A2,64),"00"))

    Change the two 64's to 56's for the second row's value.
    Yes, Thank you that seems to work

+ 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. Change cell values from tt:mm to comma number, depending of a cell value
    By gnaske in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-12-2018, 08:29 AM
  2. Replies: 9
    Last Post: 04-09-2018, 09:46 PM
  3. number-comma-number formatting problem. Thousands, and string
    By JimmyWilliams in forum Excel General
    Replies: 1
    Last Post: 11-28-2017, 06:35 PM
  4. change comma with point
    By bogd1n in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-16-2016, 02:03 PM
  5. why comma(,) change to (;) inside the another pc
    By bertanya in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-28-2015, 11:43 PM
  6. [SOLVED] force dot instead of comma via vba or change it
    By Alina Loredana in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-29-2015, 10:19 AM
  7. Unable to change comma to . using formatting
    By Allgermanparts in forum Excel General
    Replies: 2
    Last Post: 10-24-2013, 08:46 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