Author Topic: Autocad Tables Rounding  (Read 6638 times)

0 Members and 1 Guest are viewing this topic.

jnieman

  • Guest
Autocad Tables Rounding
« on: September 15, 2008, 02:26:24 PM »
Ok, I've attached a drawing containing the table I'm working with here.

We have this old archaic table that was before last night, simple lines and text, that we've used on many jobs... well "we" but not "me" because I want better tools.  Now.  I am making this into a table with some decent intelligence so I don't have to calculate simple things over and over as revisions occur.

Here's my problem.  I want to have numbers in my "total no. 9 bars" row (and for each bar size) rounded to the nearest whole number.. but when I have another cell do a =SUM(X,Y,Z) I want the number to reflect the total of the DISPLAYED numbers AFTER rounding, not BEFORE rounding.

 I can't find a way to round the number of the cell except by using "data format" and ROUND() doesn't seem to work in Autocad cells.

To put it simply, here's an example:  Say I have 4 cells all at 12.5, then I have a cell adding them all together

12.5 (displays 13)
12.5 (displays 13)
12.5 (displays 13)
12.5 (displays 13)
-----------------
SUM = 50 because it adds 12.5 four times, whereas I WANT it to add 13 four times, to result in 52.

Am I clear as mud?

jnieman

  • Guest
Re: Autocad Tables Rounding
« Reply #1 on: September 15, 2008, 02:30:54 PM »
clarification:  see image.

The numbers it's adding up have been rounded to whole numbers via 'data format' and apparently the SUM of those cells adds it up BEFORE rounding, and THEN rounds it.

I want the total of 898 to display, not 895.
http://www.theswamp.org/lilly_pond/JoshNieman/tableoops.PNG (link to original file if the display in the post isn't readable)

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Autocad Tables Rounding
« Reply #2 on: September 15, 2008, 02:46:07 PM »
I'm not into Tables but seems like they should allow unrounded SUMs.

Worst case use the source to sum & not the cells.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

jnieman

  • Guest
Re: Autocad Tables Rounding
« Reply #3 on: September 15, 2008, 02:47:31 PM »
I've seen MULTIPLE people in forums using the =ROUND() but... it doesn't work for me... it doesn't error out, it just acts like it's not THERE...

HELP isn't very... helpful.

jnieman

  • Guest
Re: Autocad Tables Rounding
« Reply #4 on: September 15, 2008, 02:57:57 PM »
*slams head on desk*

If you hit 'data type' and set the "Data Type" to "decimal number" and the "format" to "(none)" it'll work.

If you set it to a decimal number but any other format, it fails.

So in the end, =ROUND() works only when data type is set as I said.... apparently... I'm sure there's a reason... I don't see it yet, but I'm done worrying about it now that my table works, and is cleanly assembled, as I see it.
« Last Edit: September 15, 2008, 03:17:52 PM by jnieman »

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Autocad Tables Rounding
« Reply #5 on: September 15, 2008, 03:04:32 PM »
Not sure this will help but see the link here.
Like I say, I'm not into tables.

Table Stuff


<edit: spell check>   :?
« Last Edit: September 15, 2008, 06:06:49 PM by CAB »
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

jnieman

  • Guest
Re: Autocad Tables Rounding
« Reply #6 on: September 15, 2008, 03:19:23 PM »
Not sure this will hekp but see the link here.
Like I say, I'm not into tables.

Table Stuff


Thanks for the help, though- despite you not being a table person :) that link is exactly how I did it in the end, but gave me a couple more tips!  Thanks!

jnieman

  • Guest
Re: Autocad Tables Rounding
« Reply #7 on: September 15, 2008, 03:24:31 PM »
ACTUALLY, for anyone who sees this afterwards... I noticed it changed the data format to "whole number" after I input a forumla like: =ROUND((D14*0.668)/12)

So maybe that's where I should have been in the first place o.0