|
|
Question : I have two numbers that must be rounded to the next highest EVEN number.
|
|
I'm attempting to replace a Purchase Order application, currently in Excel spreadsheets for the glass company I work for. I have the tables and forms designed in Access, but I can't figure out how to round the dimension numbers to the next highest even number prior to performing the calculation needing to get unit square footage and total square footage.
Current Excel format using Row 19. Width in Column D Height in Column E Unit Square Footage in column F. Column F contains the following formula: =IF(ISBLANK(B19)," ",EVEN(D19)*EVEN(E19)/144)
Test Numbers and Desired Results Width = 42.25 Height = 87.5
Convert to 44 and 88 respectively, then multiply the two rounded numbers, then divide by 144 Answer = 26.88
|
Answer : I have two numbers that must be rounded to the next highest EVEN number.
|
|
Footage: Int( Width / 2 + 0.9999 ) * Int( Height / 2 + 0.9999 ) / 36
Idea for EVEN() is: divide by two, add (almost) one, convert to integer, multiply by two. The only simplification here is that 2*2/144 is 1/36...
Good Luck
|
|
|
|
|