<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automatic Format Table Size with Excel Data Links - With IF formula output &amp;amp; in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/automatic-format-table-size-with-excel-data-links-with-if/m-p/8291656#M166566</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just found your post and thought I would inquire whether you had proceeded to test the two table method. If not, and you can provide some sample data I am happy to explore this issue.I tested this scenario on my AutoCAD 2019 by creating a spreadsheet with two sheets in it. I linked a cell from the first sheet to the second and then gave it a named range.&amp;nbsp; When I create a datalink in AutoCAD using the named range, a table works properly.&amp;nbsp; I would like to see if it works with more complicated formulas in the mix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;Please select the &lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt; button if my post solves your issue or answers your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2018 17:12:49 GMT</pubDate>
    <dc:creator>john.vellek</dc:creator>
    <dc:date>2018-09-25T17:12:49Z</dc:date>
    <item>
      <title>Automatic Format Table Size with Excel Data Links - With IF formula output ""</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automatic-format-table-size-with-excel-data-links-with-if/m-p/8262740#M166565</link>
      <description>&lt;P&gt;I am having trouble getting an AutoCAD table to size to the DISPLAYED data in Excel.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have named my Excel Range "AutoCADExport" for 9 rows.&amp;nbsp; If only 3 rows are filled then only 3 rows export, which is perfect.&amp;nbsp; The problem arises when I try to make the excel cells with equations that could provide blank values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The application for this is a "Bill of Materials" that can change size and parts.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex) Cell A1 contains -&amp;gt;&amp;nbsp;=if(B1="","",3)&amp;nbsp;&lt;/P&gt;&lt;P&gt;------ (This populates the schedule number, 3, if the cell next to it has contents, otherwise it has no value.)--------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently AutoCAD reads the cell as having information in it, but I want to Data Link a table that doesn't need to be cleared by a VBA button.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can this be accomplished with 2 tables?&amp;nbsp; One table that does all the work collecting data with formulas, and an export to AutoCAD table that just reads the formulas from table 1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dylan&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 12:34:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automatic-format-table-size-with-excel-data-links-with-if/m-p/8262740#M166565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T12:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Format Table Size with Excel Data Links - With IF formula output &amp;</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automatic-format-table-size-with-excel-data-links-with-if/m-p/8291656#M166566</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just found your post and thought I would inquire whether you had proceeded to test the two table method. If not, and you can provide some sample data I am happy to explore this issue.I tested this scenario on my AutoCAD 2019 by creating a spreadsheet with two sheets in it. I linked a cell from the first sheet to the second and then gave it a named range.&amp;nbsp; When I create a datalink in AutoCAD using the named range, a table works properly.&amp;nbsp; I would like to see if it works with more complicated formulas in the mix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;Please select the &lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt; button if my post solves your issue or answers your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 17:12:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automatic-format-table-size-with-excel-data-links-with-if/m-p/8291656#M166566</guid>
      <dc:creator>john.vellek</dc:creator>
      <dc:date>2018-09-25T17:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Format Table Size with Excel Data Links - With IF formula output &amp;</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automatic-format-table-size-with-excel-data-links-with-if/m-p/8291712#M166567</link>
      <description>&lt;P&gt;Using dynamic named ranges in Excel, one can create a logic based table and a linked output table.&amp;nbsp; The second table is exclusively for export&amp;nbsp;to AutoCAD and is populated with the first table by way of an "IF" excel statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex)&amp;nbsp;=IF(ISBLANK(B11)," ",B11)&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This reads cell B11 unless B11 is blank.&amp;nbsp; If B11 has nothing in it, the export table cell will display nothing but it will have a space in the cell. " "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next I created the variable to define the height of the export table.&amp;nbsp; By using this function in the name manager.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MyHeightVar=COUNTIF(Sheet4!$F$3:$F$35,"&amp;lt;&amp;gt; ")+2&lt;/P&gt;&lt;P&gt;It counts the number of non spaces in the export table, then adds 2 rows for the start of the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may be a little sloppy but I wanted to see the bounds of my table.&amp;nbsp; So in I5 and J5 I put the first cell of the table $F$2 as text in the cell.&amp;nbsp; And the last cell is bounded vertically by the named range "MyHeightVar" and I know my last column is H or 8. So in cell J5 I have&amp;nbsp;=ADDRESS(MyHeightVar,8)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The final step is to define the exported table with this equation.&lt;/P&gt;&lt;P&gt;ExportTable=INDIRECT(Sheet4!$I$5):INDIRECT(Sheet4!$J$5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That defines the export table to be exactly what has data in it and not spaces.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in AutoCAD create a DATALINK to ExportTable and your table will grow and shrink as data is added to the table.&amp;nbsp; You must be careful to only edit the first table which is read by the IF statements in the export table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 17:36:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automatic-format-table-size-with-excel-data-links-with-if/m-p/8291712#M166567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-25T17:36:58Z</dc:date>
    </item>
  </channel>
</rss>

