SOLVED

How to calculate nearest value without decimals

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3135860%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3EHow%20to%20calculate%20nearest%20value%20without%20decimals%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3135860%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%3EI%20want%20to%20have%20a%20formula%20which%20enables%20me%20to%20get%20an%20optimal%20M2%20calculation.%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EExample%3A%20a%20product%20has%20the%20following%20dimensions%3A%20396mm%20x%20579mm.%20How%20many%20pieces%20result%20in%20.000%20decimals%3F%20In%20this%20case%201%2C243%20pieces%20%3D%20285.000%20M2.%20How%20to%20put%20this%20in%20a%20formula%20which%20results%20in%201%2C243%20pieces%3F%20Your%20help%20is%20greatly%20appreciated.%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EGrt%20Arno%2C%20The%20Netherlands.%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-LABS%20id%3D%22%5C%26quot%3Blingo-labs-3135860%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CLINGO-LABEL%3EExcel%26lt%3B%5C%2Flingo-label%26gt%3B%3CLINGO-LABEL%3EFormulas%20and%20Functions%26lt%3B%5C%2Flingo-label%26gt%3B%26lt%3B%5C%2Flingo-labs%26gt%3B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E
New Contributor

I want to have a formula which enables me to get an optimal M2 calculation.

Example: a product has the following dimensions: 396mm x 579mm. How many pieces result in .000 decimals? In this case 1,243 pieces = 285.000 M2. How to put this in a formula which results in 1,243 pieces? Your help is greatly appreciated.

 

Grt Arno, The Netherlands.

6 Replies
Hi,
To take only the nearest value without decimals use rounddown() function
=ROUNDDOWN(A1,0)
0 --> mean no decimals,

Thank you for your reply, but this is not what I mean. I need the lowest number of pieces which result in the first three digits being 000.

@AKlomp The two measurements in mm result in just over 229 square meters. What the logic of wanting 285.000 m2? Why not 230.000 m2?

It's in the "just over" part. 1,000 pieces is 229.284 M2 which is simply too inaccurate. This will lead to differences to what we charge the customer for, and what het receives. When ordering 100,000 pieces, that would result in a loss of 28.4 M2 for the customer. With a extremely expensive product, you wouldn't want that.
best response confirmed by AKlomp (New Contributor)
Solution

@AKlompOoops! I was wrong here. One product measures just under 23 m2. Not just over 229 m2. Correct? Now you want to find a factor that multiplies the exact size of the product so that the last three digits of the integer are all zeroes. Correct?

 

If the 229284 is in A1, try this formula is you are on MS365 or 2021.

 

=1+(MATCH(0,MOD(INT(A1*SEQUENCE(1000,,1,0.001)),1000),0)-1)/1000

 

 This will return 1.243

Hi Riny, that's more like it! I need to experiment a little to make it more universal for my needs, but I think this is what I'm looking for. Many thanks!