Jump to content

If clauses in autocad table


wrha

Recommended Posts

As far as I know, a Table formula cannot support an IF clause as available in Excel; however, you can alternatively use a DIESEL Field Expression which can use the IF function available in DIESEL.

 

EDIT: Alan beat me to it.

Link to comment
Share on other sites

i use following formula it not working could you check

 

=$(if,D12*E12/1000000,1[,0]C12*D12*E12/1000000)

Link to comment
Share on other sites

As far as I know, a Table formula cannot support an IF clause as available in Excel; however, you can alternatively use a DIESEL Field Expression which can use the IF function available in DIESEL.

 

EDIT: Alan beat me to it.

Yeah, but you had nice links.
Link to comment
Share on other sites

i use following formula it not working could you check

 

=$(if,D12*E12/1000000,1[,0]C12*D12*E12/1000000)

 

I believe the 'then' & 'else' expressions of the DIESEL if function can only contain DIESEL expressions or fixed strings; I don't know if it is possible to reference table cells from within DIESEL expressions.

 

Yeah, but you had nice links.

 

:)

Link to comment
Share on other sites

I believe the 'then' & 'else' expressions of the DIESEL if function can only contain DIESEL expressions or fixed strings; I don't know if it is possible to reference table cells from within DIESEL expressions.
Nope, you can't. Diesel fields don't allow nested fields, so referencing a cell address will also not be allowed.

 

@wrha: What is the "if" condition you're looking for? Perhaps it could be translated to become 1 if true and 0 if false - then you could simply multiply it to the rest of the formula.

Link to comment
Share on other sites

Its formula could you check my xls sheet above
You mean the Consider / Don't Consider? If you have to use such piece of text, then unfortunately no.

 

Perhaps you could try something else: In your table you could have a cell where you type a 0 or a 1 to turn on consider / Don't Consider instead of having it written out as text?

 

Remember acad's tables aren't perfect. They're a far cry from a true spreadsheet.

 

Perhaps you could use the xlsx file and copy-link-as-acad-entities instead. Then your xlsx file is doing all the formula calcs, and the link displays the spreadsheet portions as tables in acad.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...