ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do i get a set of pieces from a given # with standard lengths (https://www.excelbanter.com/excel-worksheet-functions/60942-how-do-i-get-set-pieces-given-standard-lengths.html)

sseguine

how do i get a set of pieces from a given # with standard lengths
 
want to find the number of standard length pieces (47" or 59") from a given
nember in a cell ( example 149 1/2 = 2 @59" and 1 @ 31 1/2") and the length
of the non-standard length piece.

Ron Coderre

how do i get a set of pieces from a given # with standard lengths
 
Try this:

B1: 59
C1: 47
D1: NonStandard

A2: 149.5
B2: =INT(A2/59)
C2: =INT(MOD(A2,59)/47)
D2: =MOD(MOD(A2,59),47)

Those formulas return:
B2: 2
C2: 0
D2: 31.5

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"sseguine" wrote:

want to find the number of standard length pieces (47" or 59") from a given
nember in a cell ( example 149 1/2 = 2 @59" and 1 @ 31 1/2") and the length
of the non-standard length piece.



All times are GMT +1. The time now is 09:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com