Author Topic: Mathmatical Formula's in Tables - Help  (Read 3156 times)

0 Members and 1 Guest are viewing this topic.

AVCAD

  • Guest
Mathmatical Formula's in Tables - Help
« on: October 27, 2015, 02:50:10 PM »
So I have a table I am trying to use to do some calculations. I Have the correct formula but autocad wont do it. It works in excel but I need it in cad

Quote
=(2*(B12-B13)*TAN(B11/2)/12)

I think the problem is the TANGENT ... does autocad not allow this?

Thanks in advance

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Mathmatical Formula's in Tables - Help
« Reply #1 on: October 27, 2015, 02:59:32 PM »
does this offer any hint?

You can add formulas to a table, so that it automatically calculates the following:

Sum
Average
Count (counts the cells in a column or row)
Cell (displays the value of another cell)
Equation (lets you manually insert a formula)
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Mathmatical Formula's in Tables - Help
« Reply #2 on: October 27, 2015, 03:10:26 PM »
Try the following:

Code: [Select]
=(2*(B12-B13)*tang(B11/2)/12)

AVCAD

  • Guest
Re: Mathmatical Formula's in Tables - Help
« Reply #3 on: October 27, 2015, 04:56:57 PM »
Thanks Lee. That worked.

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Mathmatical Formula's in Tables - Help
« Reply #4 on: October 27, 2015, 05:46:45 PM »
Good stuff - you're welcome.

( Here is a complete reference )

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
TheSwamp.org  (serving the CAD community since 2003)

AVCAD

  • Guest
Re: Mathmatical Formula's in Tables - Help
« Reply #6 on: October 28, 2015, 11:13:53 AM »
Awesome! I didn't find that before Thanks.

Can you do IF statements? Cant seem to get that work either

Quote
=IF(B11=2,0,ROUND(E11/(B15*C13)))

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Mathmatical Formula's in Tables - Help
« Reply #7 on: October 28, 2015, 01:32:21 PM »
Can you do IF statements? Cant seem to get that work either

Unfortunately not as far as I know.

ChrisCarlson

  • Guest
Re: Mathmatical Formula's in Tables - Help
« Reply #8 on: October 28, 2015, 02:39:33 PM »
Tables in CAD are terrible, if you need more advanced functions you will need to look at using Excel in the background.

Stefan

  • Bull Frog
  • Posts: 319
  • The most I miss IRL is the Undo button
Re: Mathmatical Formula's in Tables - Help
« Reply #9 on: October 29, 2015, 07:05:57 AM »
Awesome! I didn't find that before Thanks.

Can you do IF statements? Cant seem to get that work either

=IF(B11=2,0,ROUND(E11/(B15*C13)))

You can try this trick
Code: [Select]
=(1-abs(2-B11)^0)*ROUND(E11/(B15*C13))

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Mathmatical Formula's in Tables - Help
« Reply #10 on: October 29, 2015, 08:55:41 AM »
I'm quite surprised 0^0 doesn't error  :-o

Nice trick Stefan - though, shouldn't it be:
Code: [Select]
=(abs(2-B11)^0)*ROUND(E11/(B15*C13))

Stefan

  • Bull Frog
  • Posts: 319
  • The most I miss IRL is the Undo button
Re: Mathmatical Formula's in Tables - Help
« Reply #11 on: October 29, 2015, 09:15:22 AM »
I'm quite surprised 0^0 doesn't error  :-o
Yes, it was a surprise for me too. Any other program will give you an error.

Quote
Nice trick Stefan - though, shouldn't it be:
Code: [Select]
=(abs(2-B11)^0)*ROUND(E11/(B15*C13))

Looking again at the request, yes, your formula is the correct one... :-)

AVCAD

  • Guest
Re: Mathmatical Formula's in Tables - Help
« Reply #12 on: October 29, 2015, 10:28:01 AM »
You guys are way smarter than me.

Thanks it worked perfectly!