ThatNewGuy
Technical User
Hello,
I picked up some great pointers on here about using both the INT and MOD functions in Excel. But now I'm trying to find a work around solution to a problem i'm having in a program that isn't as powerful as Excel when it comes to preset formulas. The program doesn't offer the INT or MOD functions so I'm trying to figure out the inner workings of the functions themselves to see if I can build a formula that would replicate what these two functions can do.
I'm working with an order quantity that changes on a daily basis and with a set number of items that fit into a box. So part number A may fit 90 into a box. So if the customer orders 2500 qty/90 boxes = 27.77 boxes. The program I'm working with only offers the basic +, -, *, /, (), etc. and it's restricting the number from rounding down from 27.77 to 27. Is there a way to manually build the INT function so that this number would be rounded down to the nearest integer? I know this sounds crazy not being able to use the INT function, but I can't help the shortcomings of this program.
I'm also working with the MOD function and I found this as MOD (n,d) = n-d*INT(n/d). As defined from Microsoft, but once again this doesn't help me if I'm not working with MOD or INT. I guess the MOD main function is to return the remainder after the number is divided by a divisor. I use the MOD function for the remaining .77 from the 27.77 boxes which calculates the final box holding 69 items. All in all I would need 27 full boxes with 90 and 1 box with 69 items. Any creative solutions, suggestions, or ideas would be greatly appreciated. Thanks.
I picked up some great pointers on here about using both the INT and MOD functions in Excel. But now I'm trying to find a work around solution to a problem i'm having in a program that isn't as powerful as Excel when it comes to preset formulas. The program doesn't offer the INT or MOD functions so I'm trying to figure out the inner workings of the functions themselves to see if I can build a formula that would replicate what these two functions can do.
I'm working with an order quantity that changes on a daily basis and with a set number of items that fit into a box. So part number A may fit 90 into a box. So if the customer orders 2500 qty/90 boxes = 27.77 boxes. The program I'm working with only offers the basic +, -, *, /, (), etc. and it's restricting the number from rounding down from 27.77 to 27. Is there a way to manually build the INT function so that this number would be rounded down to the nearest integer? I know this sounds crazy not being able to use the INT function, but I can't help the shortcomings of this program.
I'm also working with the MOD function and I found this as MOD (n,d) = n-d*INT(n/d). As defined from Microsoft, but once again this doesn't help me if I'm not working with MOD or INT. I guess the MOD main function is to return the remainder after the number is divided by a divisor. I use the MOD function for the remaining .77 from the 27.77 boxes which calculates the final box holding 69 items. All in all I would need 27 full boxes with 90 and 1 box with 69 items. Any creative solutions, suggestions, or ideas would be greatly appreciated. Thanks.