macro?

Toastis

Board Regular
Joined
Apr 20, 2011
Messages
65
<b>Excel 2007</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th><th>I</th><th>J</th><th>K</th><th>L</th><th>M</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">Distance</td><td style=";">Eng Time(min)</td><td style=";">Fuel</td><td style=";"> MPG</td><td style=";">Intrtrp Idle%</td><td style=";">Short Idle%</td><td style=";">OvrSpd%</td><td style=";">OvRev%</td><td style=";">Shift OvrRev%</td><td style=";">TotalOvrRng%</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">986</td><td style="text-align: right;;">3269</td><td style="text-align: right;;">213</td><td style="text-align: right;;">4.63</td><td style="text-align: right;;">38.6</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0.5</td><td style="text-align: right;;">0.5</td><td style="text-align: right;;">39.1</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">434</td><td style="text-align: right;;">804</td><td style="text-align: right;;">81</td><td style="text-align: right;;">5.34</td><td style="text-align: right;;">18.4</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0.4</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0</td><td style="text-align: right;;">18.8</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">2267</td><td style="text-align: right;;">3724</td><td style="text-align: right;;">439</td><td style="text-align: right;;">5.17</td><td style="text-align: right;;">21.5</td><td style="text-align: right;;">0</td><td style="text-align: right;;">5.1</td><td style="text-align: right;;">0.9</td><td style="text-align: right;;">0</td><td style="text-align: right;;">26</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">3931</td><td style="text-align: right;;">5985</td><td style="text-align: right;;">641</td><td style="text-align: right;;">6.13</td><td style="text-align: right;;">6.3</td><td style="text-align: right;;">6.3</td><td style="text-align: right;;">61.7</td><td style="text-align: right;;">0.4</td><td style="text-align: right;;">0</td><td style="text-align: right;;">55.8</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">2140</td><td style="text-align: right;;">2807</td><td style="text-align: right;;">433</td><td style="text-align: right;;">4.94</td><td style="text-align: right;;">4.1</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0.5</td><td style="text-align: right;;">0.4</td><td style="text-align: right;;">0</td><td style="text-align: right;;">5</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">2560</td><td style="text-align: right;;">3810</td><td style="text-align: right;;">435</td><td style="text-align: right;;">5.88</td><td style="text-align: right;;">7.3</td><td style="text-align: right;;">0.4</td><td style="text-align: right;;">0.7</td><td style="text-align: right;;">0.3</td><td style="text-align: right;;">0</td><td style="text-align: right;;">8.2</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">3194</td><td style="text-align: right;;">4488</td><td style="text-align: right;;">580</td><td style="text-align: right;;">5.51</td><td style="text-align: right;;">7.3</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0.6</td><td style="text-align: right;;">0.2</td><td style="text-align: right;;">0</td><td style="text-align: right;;">8.1</td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: right;;">3157</td><td style="text-align: right;;">4522</td><td style="text-align: right;;">620</td><td style="text-align: right;;">5.09</td><td style="text-align: right;;">4.8</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0.3</td><td style="text-align: right;;">0.6</td><td style="text-align: right;;">0.3</td><td style="text-align: right;;">5.6</td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="text-align: right;;">2604</td><td style="text-align: right;;">3691</td><td style="text-align: right;;">470</td><td style="text-align: right;;">5.54</td><td style="text-align: right;;">2.7</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0.4</td><td style="text-align: right;;">0.3</td><td style="text-align: right;;">0</td><td style="text-align: right;;">3.4</td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: right;;">2122</td><td style="text-align: right;;">3430</td><td style="text-align: right;;">365</td><td style="text-align: right;;">5.82</td><td style="text-align: right;;">13.4</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">13.5</td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style="text-align: right;;">3657</td><td style="text-align: right;;">5750</td><td style="text-align: right;;">623</td><td style="text-align: right;;">5.87</td><td style="text-align: right;;">17.2</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0.7</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0</td><td style="text-align: right;;">17.8</td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style="text-align: right;;">3266</td><td style="text-align: right;;">4939</td><td style="text-align: right;;">547</td><td style="text-align: right;;">5.97</td><td style="text-align: right;;">12.5</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0.6</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0</td><td style="text-align: right;;">13.1</td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style="text-align: right;;">3166</td><td style="text-align: right;;">5711</td><td style="text-align: right;;">511</td><td style="text-align: right;;">6.2</td><td style="text-align: right;;">21.9</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">21.9</td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style="text-align: right;;">2270</td><td style="text-align: right;;">4290</td><td style="text-align: right;;">407</td><td style="text-align: right;;">5.58</td><td style="text-align: right;;">19.2</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0.3</td><td style="text-align: right;;">0.3</td><td style="text-align: right;;">19.6</td></tr><tr ><td style="color: #161120;text-align: center;">16</td><td style="text-align: right;;">2701</td><td style="text-align: right;;">4750</td><td style="text-align: right;;">480</td><td style="text-align: right;;">5.63</td><td style="text-align: right;;">19</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0.2</td><td style="text-align: right;;">0.2</td><td style="text-align: right;;">0</td><td style="text-align: right;;">19.3</td></tr><tr ><td style="color: #161120;text-align: center;">17</td><td style="text-align: right;;">2753</td><td style="text-align: right;;">4580</td><td style="text-align: right;;">516</td><td style="text-align: right;;">5.33</td><td style="text-align: right;;">17.1</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0.7</td><td style="text-align: right;;">0.4</td><td style="text-align: right;;">0</td><td style="text-align: right;;">18.1</td></tr><tr ><td style="color: #161120;text-align: center;">18</td><td style="text-align: right;;">1955</td><td style="text-align: right;;">3112</td><td style="text-align: right;;">357</td><td style="text-align: right;;">5.48</td><td style="text-align: right;;">18.6</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0.5</td><td style="text-align: right;;">0.8</td><td style="text-align: right;;">0.4</td><td style="text-align: right;;">19.8</td></tr><tr ><td style="color: #161120;text-align: center;">19</td><td style="text-align: right;;">1928</td><td style="text-align: right;;">3545</td><td style="text-align: right;;">370</td><td style="text-align: right;;">5.21</td><td style="text-align: right;;">22.6</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0.8</td><td style="text-align: right;;">0.7</td><td style="text-align: right;;">23.4</td></tr><tr ><td style="color: #161120;text-align: center;">20</td><td style="text-align: right;;">3218</td><td style="text-align: right;;">4684</td><td style="text-align: right;;">567</td><td style="text-align: right;;">5.68</td><td style="text-align: right;;">11.5</td><td style="text-align: right;;">0</td><td style="text-align: right;;">1.2</td><td style="text-align: right;;">0.2</td><td style="text-align: right;;">0</td><td style="text-align: right;;">12.7</td></tr><tr ><td style="color: #161120;text-align: center;">21</td><td style="text-align: right;;">3109</td><td style="text-align: right;;">5671</td><td style="text-align: right;;">571</td><td style="text-align: right;;">5.44</td><td style="text-align: right;;">17.8</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0.2</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">18.1</td></tr><tr ><td style="color: #161120;text-align: center;">22</td><td style="text-align: right;;">3373</td><td style="text-align: right;;">5405</td><td style="text-align: right;;">662</td><td style="text-align: right;;">5.09</td><td style="text-align: right;;">15.7</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0.3</td><td style="text-align: right;;">1.1</td><td style="text-align: right;;">0.9</td><td style="text-align: right;;">17</td></tr><tr ><td style="color: #161120;text-align: center;">23</td><td style="text-align: right;;">2060</td><td style="text-align: right;;">3716</td><td style="text-align: right;;">401</td><td style="text-align: right;;">5.14</td><td style="text-align: right;;">22.2</td><td style="text-align: right;;">0.1</td><td style="text-align: right;;">0.3</td><td style="text-align: right;;">0.7</td><td style="text-align: right;;">0.5</td><td style="text-align: right;;">23.2</td></tr><tr ><td style="color: #161120;text-align: center;">24</td><td style="text-align: right;;">2169</td><td style="text-align: right;;">3666</td><td style="text-align: right;;">412</td><td style="text-align: right;;">5.26</td><td style="text-align: right;;">17.6</td><td style="text-align: right;;">0.4</td><td style="text-align: right;;">1</td><td style="text-align: right;;">0.6</td><td style="text-align: right;;">0</td><td style="text-align: right;;">19</td></tr><tr ><td style="color: #161120;text-align: center;">25</td><td style="text-align: right;;">0</td><td style="text-align: right;;">4</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: #161120;text-align: center;">26</td><td style="text-align: right;;">0</td><td style="text-align: right;;">19</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">126.3</td><td style="text-align: right;;">73.7</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">126.3</td></tr><tr ><td style="color: #161120;text-align: center;">27</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: #161120;text-align: center;">28</td><td style="text-align: right;;">0</td><td style="text-align: right;;">2</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td><td style="text-align: right;;">0</td></tr></tbody></table><p style="width:18em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Fuel_Economy_Factors_Report(1)</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>
I am going to continually update this database with new entries and I want the fastest way to eliminate zero's from this sheet. Is there a macro or a quick formula that will remove them all and leave them as blanks?
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Works perfectly except that my MPG column changes to rounded numbers instead of extended two decimals. that is the only column affected so I guess I can remove the other zero's from that column.
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,223
Members
452,896
Latest member
IGT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top