<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Development in a Blink &#187; Excel</title>
	<atom:link href="http://www.dougfinke.com/blog/index.php/category/excel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dougfinke.com/blog</link>
	<description>Researching the optimal; implementing the practical</description>
	<lastBuildDate>Fri, 03 May 2013 19:47:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Calling Excel Math Functions From PowerShell</title>
		<link>http://www.dougfinke.com/blog/index.php/2011/04/05/calling-excel-math-functions-from-powershell/</link>
		<comments>http://www.dougfinke.com/blog/index.php/2011/04/05/calling-excel-math-functions-from-powershell/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 01:19:04 +0000</pubDate>
		<dc:creator>Doug Finke</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[F#]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.dougfinke.com/blog/index.php/2011/04/05/calling-excel-math-functions-from-powershell/</guid>
		<description><![CDATA[I came across this post Calling Excel Math Functions From F# FSI and figured it would be very useful to do from PowerShell. This can also be done a line at a time in the PowerShell command line REPL (Read Eval Print Loop). Meaning, you can create different arrays and multidimensional arrays at the command [...]]]></description>
				<content:encoded><![CDATA[<p>I came across this post <a href="http://blogs.msdn.com/b/jackhu/archive/2011/04/05/using-excel-math-functions-from-f-fsi.aspx">Calling Excel Math Functions From F# FSI</a> and figured it would be very useful to do from PowerShell.</p>
<p>This can also be done a line at a time in the PowerShell command line REPL (Read Eval Print Loop). Meaning, you can create different arrays and multidimensional arrays at the command line and then type and call the Excel functions.</p>
<p>Plus, these are only 4 of the many Excel functions available.</p>
<p>If you want to find out the other Excel math functions available, type this line at the command line (run the first three lines of code up to the WorksheetFunction first):</p>
<p><em>$wf | Get-Member -MemberType method | Out-GridView</em></p>
<pre class="PowerShellColorizedScript" style="width: 454px; height: 430px;"><span style="color: #006400;"># Calling Excel Math Functions From PowerShell</span>            

<span style="color: #ff4500;">$xl</span>        <span style="color: #a9a9a9;">=</span> <span style="color: #0000ff;">New-Object</span> <span style="color: #000080;">-ComObject</span> <span style="color: #8a2be2;">Excel.Application</span>
<span style="color: #ff4500;">$xlprocess</span> <span style="color: #a9a9a9;">=</span> <span style="color: #0000ff;">Get-Process</span> <span style="color: #8a2be2;">excel</span>            

<span style="color: #ff4500;">$wf</span>   <span style="color: #a9a9a9;">=</span> <span style="color: #ff4500;">$xl</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">WorksheetFunction</span>
<span style="color: #ff4500;">$data</span> <span style="color: #a9a9a9;">=</span> <span style="color: #800080;">1</span><span style="color: #a9a9a9;">,</span><span style="color: #800080;">2</span><span style="color: #a9a9a9;">,</span><span style="color: #800080;">3</span><span style="color: #a9a9a9;">,</span><span style="color: #800080;">4</span>
<span style="color: #ff4500;">$m</span>    <span style="color: #a9a9a9;">=</span> <span style="color: #000000;">(</span><span style="color: #000000;">(</span><span style="color: #800080;">1</span><span style="color: #a9a9a9;">,</span><span style="color: #800080;">2</span><span style="color: #a9a9a9;">,</span><span style="color: #800080;">3</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">,</span><span style="color: #000000;">(</span><span style="color: #800080;">4</span><span style="color: #a9a9a9;">,</span><span style="color: #800080;">5</span><span style="color: #a9a9a9;">,</span><span style="color: #800080;">6</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">,</span><span style="color: #000000;">(</span><span style="color: #800080;">7</span><span style="color: #a9a9a9;">,</span><span style="color: #800080;">8</span><span style="color: #a9a9a9;">,</span><span style="color: #800080;">9</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>            

<span style="color: #0000ff;">Write-Host</span> <span style="color: #000080;">-ForegroundColor</span> <span style="color: #8a2be2;">green</span> <span style="color: #8a2be2;">Median</span>
<span style="color: #ff4500;">$wf</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Median</span><span style="color: #000000;">(</span><span style="color: #ff4500;">$data</span><span style="color: #000000;">)</span>            

<span style="color: #0000ff;">Write-Host</span> <span style="color: #000080;">-ForegroundColor</span> <span style="color: #8a2be2;">green</span> <span style="color: #8a2be2;">StDev</span>
<span style="color: #ff4500;">$wf</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">StDev</span><span style="color: #000000;">(</span><span style="color: #ff4500;">$data</span><span style="color: #000000;">)</span>            

<span style="color: #0000ff;">Write-Host</span> <span style="color: #000080;">-ForegroundColor</span> <span style="color: #8a2be2;">green</span> <span style="color: #8a2be2;">Var</span>
<span style="color: #ff4500;">$wf</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Var</span><span style="color: #000000;">(</span><span style="color: #ff4500;">$data</span><span style="color: #000000;">)</span>            

<span style="color: #0000ff;">Write-Host</span> <span style="color: #000080;">-ForegroundColor</span> <span style="color: #8a2be2;">green</span> <span style="color: #8a2be2;">MInverse</span>
<span style="color: #ff4500;">$wf</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">MInverse</span><span style="color: #000000;">(</span><span style="color: #ff4500;">$m</span><span style="color: #000000;">)</span>            

<span style="color: #ff4500;">$xl</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">quit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>
<span style="color: #ff4500;">$xlprocess</span> <span style="color: #a9a9a9;">|</span> <span style="color: #0000ff;">kill</span></pre>
<pre class="PowerShellColorizedScript" style="width: 237px; height: 327px;"><span style="color: #006400;"># Results</span>
<span style="color: #8b0000;"><span style="color: #80ff00;"><span style="color: #008000;">Median</span>
</span>2.5
<span style="color: #008000;">StDev</span>
1.29099444873581
<span style="color: #008000;">Var</span>
1.66666666666667
<span style="color: #008000;">MInverse</span>
-4.5035996273705E+15
9.00719925474099E+15
-4.5035996273705E+15
9.007199254741E+15
-1.8014398509482E+16
9.00719925474099E+15
-4.5035996273705E+15
9.00719925474099E+15
-4.5035996273705E+15</span></pre>
<h3>Grab the Code</h3>
<p>I put the code up on my <a href="https://github.com/dfinke/powershell/blob/master/Calling%20Excel%20Functions%20From%20PowerShell/Invoke-ExcelFunction.ps1">GitHub PowerShell Repository</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougfinke.com/blog/index.php/2011/04/05/calling-excel-math-functions-from-powershell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NYC Code Camp PowerShell Talk</title>
		<link>http://www.dougfinke.com/blog/index.php/2011/02/21/nyc-code-camp-powershell-talk/</link>
		<comments>http://www.dougfinke.com/blog/index.php/2011/02/21/nyc-code-camp-powershell-talk/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 23:37:25 +0000</pubDate>
		<dc:creator>Doug Finke</dc:creator>
				<category><![CDATA[Code Camp]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[geekSpeak]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[NYC Code Camp]]></category>
		<category><![CDATA[OData]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell Pearls]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[WPK]]></category>

		<guid isPermaLink="false">http://www.dougfinke.com/blog/index.php/2011/02/21/nyc-code-camp-powershell-talk/</guid>
		<description><![CDATA[I presented at the NYC Code Camp 2011 along with my Lab49 colleagues David Padbury, Jimmy Schementi and Scott Weinstein. My talk was on PowerShell for .NET Developers. Here is a recording I did on that topic for Microsoft Channel 9 geekSpeak. The attendees were great. Of the 50+, all heard about PowerShell and a [...]]]></description>
				<content:encoded><![CDATA[<p>I presented at the <a href="http://channel9.msdn.com/shows/geekSpeak/geekSpeak-Recording-PowerShell-for-NET-Developers-with-Doug-Finke/">NYC Code Camp 2011</a> along with my <a href="http://www.lab49.com/">Lab49</a> colleagues <a href="http://blog.davidpadbury.com/">David Padbury</a>, <a href="http://blog.jimmy.schementi.com/">Jimmy Schementi</a> and <a href="http://weblogs.asp.net/SWeinstein/">Scott Weinstein</a>.</p>
<p>My talk was on PowerShell for .NET Developers. Here is a recording I did on that topic for <a href="http://channel9.msdn.com/shows/geekSpeak/geekSpeak-Recording-PowerShell-for-NET-Developers-with-Doug-Finke/">Microsoft Channel 9 geekSpeak</a>.</p>
<p>The attendees were great. Of the 50+, all heard about PowerShell and a few were using it in Production.</p>
<h3>The questions went deep too:</h3>
<ul>
<li><em><strong>Can you embed PowerShell in a C# app?</strong></em> </li>
<ul>
<li><a href="http://www.dougfinke.com/blog/index.php/2009/09/02/how-to-host-powershell-in-a-wpf-application/">How to Host PowerShell in a WPF Application</a></li>
</ul>
<li><strong><em>Does it work with OData</em>?</strong> </li>
<ul>
<li><a href="http://www.dougfinke.com/blog/index.php/2010/03/28/powershell-wpk-netflix-viewer-using-microsofts-odata/">PowerShell WPK NetFlix Viewer Using Microsoft’s OData</a></li>
<li><a href="http://www.dougfinke.com/blog/index.php/2010/08/18/doug-finke-on-the-odata-powershell-explorer/">OData PowerShell Explorer</a></li>
</ul>
<li><em><strong>Can you automate Excel with PowerShell?</strong></em></li>
<ul>
<li><a href="http://www.dougfinke.com/blog/index.php/2009/06/24/powershell-out-excelpivottable-quickly-create-pivot-tables-in-microsoft-excel/">PowerShell Out-ExcelPivotTable – Quickly Create Pivot Tables in Microsoft Excel</a></li>
</ul>
<li><a href="http://www.dougfinke.com/blog/index.php/category/powershell-pearls/">and more…</a></li>
</ul>
<p>Thanks to NYC Code Camp organizers, sponsors and volunteers who put in an amazing effort to make these events happen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougfinke.com/blog/index.php/2011/02/21/nyc-code-camp-powershell-talk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PowerShell Hacker #4</title>
		<link>http://www.dougfinke.com/blog/index.php/2010/06/05/powershell-hacker-4/</link>
		<comments>http://www.dougfinke.com/blog/index.php/2010/06/05/powershell-hacker-4/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 14:56:52 +0000</pubDate>
		<dc:creator>Doug Finke</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell Hacker]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Sql Server]]></category>
		<category><![CDATA[Sql Server 2008]]></category>

		<guid isPermaLink="false">http://dougfinke.com/blog/index.php/2010/06/05/powershell-hacker-4/</guid>
		<description><![CDATA[Seems the tweet traffic on PowerShell is picking up. &#160;TechEd2010 starts this week down in New Orleans. There are over 30 sessions on using PowerShell. PowerShell Sessions &#8211; Grouped By Track Links Chad Miller talks about PowerShell Custom Shells relating to SQL Server in The Truth about SQLPS and PowerShell V2. It is a good [...]]]></description>
				<content:encoded><![CDATA[<p>Seems the tweet traffic on PowerShell is picking up.</p>
<p>&#160;<a href="http://www.microsoft.com/events/techednorthamerica/">TechEd2010</a> starts this week down in New Orleans. There are over 30 sessions on using PowerShell.</p>
<h3>PowerShell Sessions &ndash; Grouped By Track</h3>
<p><a href="http://dougfinke.com/uploadPictures/PowerShellHacker4_85B5/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://dougfinke.com/uploadPictures/PowerShellHacker4_85B5/image_thumb.png" width="290" height="232" /></a> </p>
<h3>Links</h3>
<ul>
<li>Chad Miller talks about PowerShell Custom Shells relating to SQL Server in <a href="http://sev17.com/2010/05/the-truth-about-sqlps-and-powershell-v2/">The Truth about SQLPS and PowerShell V2</a>. It is a good walk through on shells and explanation of <strong><em>sqlps</em></strong> </li>
<li>James Truher was a Program Manager on the PowerShell team in the early days. He has some nice chewy techniques in this post <a href="http://jtruher.spaces.live.com/Blog/cns!7143DA6E51A2628D!967.entry?sa=75359615">More and more with management packs</a>. </li>
<li><a href="http://www.avp-blogs.com/2010/05/open-many-files-at-once-in-windows-7.html">Here is a neat PowerShell trick</a> using <em><strong>Invoke-Item</strong></em> to open multiple files with the corresponding applications </li>
<li><a href="http://blogs.technet.com/b/heyscriptingguy/archive/2010/05/30/hey-scripting-guy-weekend-scripter-using-the-windows-search-index-to-find-specific-files.aspx">Using the Windows Search Index to Find Specific Files</a> is both useful and shows another usage of the <em><strong>ComObject</strong></em> parameter with the <strong><em>New-Object</em></strong> cmdlet </li>
<li>In <a href="http://www.lucd.info/2010/05/29/beyond-export-csv-export-xls/">Beyond Export-Csv: Export-Xls</a> LucD exports data directly to Excel </li>
<li>Here is another Excel PowerShell integration script <a href="http://dougfinke.com/blog/index.php/2009/06/24/powershell-out-excelpivottable-quickly-create-pivot-tables-in-microsoft-excel/">PowerShell Out-ExcelPivotTable &#8211; Quickly Create Pivot Tables in Microsoft Excel</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.dougfinke.com/blog/index.php/2010/06/05/powershell-hacker-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>10 PowerShell Posts I Did in 2009</title>
		<link>http://www.dougfinke.com/blog/index.php/2010/01/01/10-powershell-posts-i-did-in-2009/</link>
		<comments>http://www.dougfinke.com/blog/index.php/2010/01/01/10-powershell-posts-i-did-in-2009/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 20:05:15 +0000</pubDate>
		<dc:creator>Doug Finke</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Integrated Scripting Environment]]></category>
		<category><![CDATA[Intellipad]]></category>
		<category><![CDATA[ISE]]></category>
		<category><![CDATA[MGrammar]]></category>
		<category><![CDATA[Oslo]]></category>
		<category><![CDATA[Pivot Tables]]></category>
		<category><![CDATA[PowerBoots]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SQL Server Modeling]]></category>
		<category><![CDATA[trigrams]]></category>
		<category><![CDATA[Try Python]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[yUML]]></category>

		<guid isPermaLink="false">http://dougfinke.com/blog/index.php/2010/01/01/10-powershell-posts-i-did-in-2009/</guid>
		<description><![CDATA[I had fun doing these PowerShell posts. &#160; Try PowerShell &#8211; An Interactive Tutorial Michael Foord inspired this with his Try Python Silverlight application How to Host PowerShell in a WPF Application A How To video PowerShell Out-ExcelPivotTable &#8211; Quickly Create Pivot Tables in Microsoft Excel Automating Excel Pivot tables with PowerShell PowerShell, An Exercise [...]]]></description>
				<content:encoded><![CDATA[<p>I had fun doing these PowerShell posts.</p>
<p><a href="http://dougfinke.com/blog/index.php/2009/01/10/11th-grade-activities-for-career-success-powershell/"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://dougfinke.com/uploadPictures/MyTop5PowerShellPosts_85B8/image.png" width="454" height="284" /></a>&#160;</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="276">
<p><a href="http://dougfinke.com/blog/index.php/2009/09/28/try-powershell-an-interactive-tutorial/">Try PowerShell &ndash; An Interactive Tutorial</a></p>
</td>
<td valign="top" width="278">
<p><a href="http://www.voidspace.org.uk/python/weblog/index.shtml">Michael Foord</a> inspired this with his <a href="http://www.trypython.org/">Try Python</a> Silverlight application</p>
</td>
</tr>
<tr>
<td valign="top" width="276">
<p><a href="http://dougfinke.com/blog/index.php/2009/09/02/how-to-host-powershell-in-a-wpf-application/">How to Host PowerShell in a WPF Application</a></p>
</td>
<td valign="top" width="278">
<p>A How To video</p>
</td>
</tr>
<tr>
<td valign="top" width="276">
<p><a href="http://dougfinke.com/blog/index.php/2009/06/24/powershell-out-excelpivottable-quickly-create-pivot-tables-in-microsoft-excel/">PowerShell Out-ExcelPivotTable &ndash; Quickly Create Pivot Tables in Microsoft Excel</a></p>
</td>
<td valign="top" width="278">
<p>Automating Excel Pivot tables with PowerShell</p>
</td>
</tr>
<tr>
<td valign="top" width="276">
<p><a href="http://dougfinke.com/blog/index.php/2009/02/17/powershell-an-exercise-in-species-barcoding/">PowerShell, An Exercise in Species Barcoding</a></p>
</td>
<td valign="top" width="278">
<p>Inspired by Peter Norvig&rsquo;s (Director of research at Google) python version</p>
</td>
</tr>
<tr>
<td valign="top" width="276">
<p><a href="http://dougfinke.com/blog/index.php/2009/02/07/powershell-find-the-k-most-common-words-in-a-file/">PowerShell &ndash; Find the K most common words in a file</a></p>
</td>
<td valign="top" width="278">
<p>Based on Jon Bentley&rsquo;s approach in &ldquo;Little Languages&rdquo;</p>
</td>
</tr>
<tr>
<td valign="top" width="276">
<p><a href="http://dougfinke.com/blog/index.php/2009/02/06/powershell-ise-cream-alias-expansion/">PowerShell ISE-Cream &ndash; Alias Expansion</a></p>
</td>
<td valign="top" width="278">
<p>Uses PowerShell&rsquo;s tokenizer to expand aliases like %, ? etc. into ForEach and Where</p>
</td>
</tr>
<tr>
<td valign="top" width="276">
<p><a href="http://dougfinke.com/blog/index.php/2009/08/29/update-dynamic-guis-and-the-powershell-pipeline/">Update: Dynamic GUIs and the PowerShell Pipeline</a></p>
</td>
<td valign="top" width="278">
<p>How to inject GUIs into a PowerShell Pipeline</p>
</td>
</tr>
<tr>
<td valign="top" width="276">
<p><a href="http://dougfinke.com/blog/index.php/2009/08/20/powershell-yuml-workbench/">PowerShell yUML Workbench</a></p>
</td>
<td valign="top" width="278">
<p>yUML is a web service.&#160; A How To using PowerShell to generate UML diagrams</p>
</td>
</tr>
<tr>
<td valign="top" width="276">
<p><a href="http://dougfinke.com/blog/index.php/2009/07/01/powershell-powerboots-and-an-oslo-dsl-grammar/">PowerShell, PowerBoots and an Oslo DSL Grammar</a></p>
</td>
<td valign="top" width="278">
<p>Blending MGrammar and PowerShell</p>
</td>
</tr>
<tr>
<td valign="top" width="276">
<p><a href="http://dougfinke.com/blog/index.php/2009/05/20/creating-and-displaying-trigrams-with-powershell/">Creating and Displaying Trigrams with PowerShell</a></p>
</td>
<td valign="top" width="278">
<p>Based on Wolfram|Alphas Trigram visuals. Combines PowerShell and yUML</p>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.dougfinke.com/blog/index.php/2010/01/01/10-powershell-posts-i-did-in-2009/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Super Easy &#8211; Tufte Sparklines in Excel 2010</title>
		<link>http://www.dougfinke.com/blog/index.php/2009/11/23/super-easy-tufte-sparklines-in-excel-2010/</link>
		<comments>http://www.dougfinke.com/blog/index.php/2009/11/23/super-easy-tufte-sparklines-in-excel-2010/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 01:50:54 +0000</pubDate>
		<dc:creator>Doug Finke</dc:creator>
				<category><![CDATA[Edward Tufte]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Sparklines]]></category>
		<category><![CDATA[Sparklines Excel]]></category>

		<guid isPermaLink="false">http://dougfinke.com/blog/index.php/2009/11/23/super-easy-tufte-sparklines-in-excel-2010/</guid>
		<description><![CDATA[&#160; Excel 2010 makes is simple to create sparklines. From the insert tab on the ribbon select the type of sparkline you want. The Create Sparklines window is where you specify the data to display and the location where you want. &#160; Sparklines Sparklines have few options that allow customization. &#160; Here are three types [...]]]></description>
				<content:encoded><![CDATA[<p>&#160;</p>
<p><a href="http://dougfinke.com/uploadPictures/TufteSparklinesinExcel2010_11FEF/image.png"><img style="border-right-width: 0px; margin: 0px 25px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" align="left" src="http://dougfinke.com/uploadPictures/TufteSparklinesinExcel2010_11FEF/image_thumb.png" width="87" height="91" /></a>Excel 2010 makes is simple to create sparklines. <a href="http://dougfinke.com/uploadPictures/TufteSparklinesinExcel2010_11FEF/image_3.png"><img style="border-right-width: 0px; margin: 10px 0px 0px 30px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" align="right" src="http://dougfinke.com/uploadPictures/TufteSparklinesinExcel2010_11FEF/image_thumb_3.png" width="313" height="196" /></a>From the <em>insert tab</em> on the ribbon select the type of sparkline you want.</p>
<p>The <em>Create Sparklines</em> window is where you specify the data to display and the location where you want.</p>
<p>&#160;</p>
<h3>Sparklines</h3>
<p><a href="http://dougfinke.com/uploadPictures/TufteSparklinesinExcel2010_11FEF/image_4.png"><img style="border-right-width: 0px; margin: 0px 10px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" align="left" src="http://dougfinke.com/uploadPictures/TufteSparklinesinExcel2010_11FEF/image_thumb_4.png" width="196" height="72" /></a> </p>
<p>Sparklines have few options that allow customization.</p>
<p>&#160;</p>
<p> Here are three types of sparklines based on the same data.</p>
<p><a href="http://dougfinke.com/uploadPictures/TufteSparklinesinExcel2010_11FEF/image_5.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://dougfinke.com/uploadPictures/TufteSparklinesinExcel2010_11FEF/image_thumb_5.png" width="299" height="270" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougfinke.com/blog/index.php/2009/11/23/super-easy-tufte-sparklines-in-excel-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sparklines in Excel</title>
		<link>http://www.dougfinke.com/blog/index.php/2009/07/21/sparklines-in-excel/</link>
		<comments>http://www.dougfinke.com/blog/index.php/2009/07/21/sparklines-in-excel/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 02:54:41 +0000</pubDate>
		<dc:creator>Doug Finke</dc:creator>
				<category><![CDATA[Edward Tufte]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Markup Compatibility and Extensibility]]></category>
		<category><![CDATA[MCE]]></category>
		<category><![CDATA[Sparklines]]></category>

		<guid isPermaLink="false">http://dougfinke.com/blog/index.php/2009/07/21/sparklines-in-excel/</guid>
		<description><![CDATA[Excel 2010 implements sparklines, &#8220;intense, simple, word-sized graphics&#8221;, as their inventor Edward Tufte describes them in his book Beautiful Evidence. &#160; This innovation is accomplished using MCE (Markup Compatibility and Extensibility).]]></description>
				<content:encoded><![CDATA[<p><a href="http://blogs.msdn.com/excel/archive/2009/07/17/sparklines-in-excel.aspx">Excel 2010 implements</a> sparklines, <i>&ldquo;intense, simple, word-sized graphics&rdquo;</i>, as their inventor Edward Tufte describes them in his book <i><a href="http://www.edwardtufte.com/tufte/books_be">Beautiful Evidence</a></i>. </p>
<p><a href="http://dougfinke.com/uploadPictures/SparklinesinExcel_1412D/image.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://dougfinke.com/uploadPictures/SparklinesinExcel_1412D/image_thumb.png" width="506" height="337" /></a>&#160;</p>
<p>This innovation is accomplished using <a href="http://blogs.msdn.com/dmahugh/archive/2009/07/21/dii-workshop-mce-deep-dive-redmond.aspx">MCE (Markup Compatibility and Extensibility)</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougfinke.com/blog/index.php/2009/07/21/sparklines-in-excel/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Graphical environments are designed to help novices -PowerShell Automates</title>
		<link>http://www.dougfinke.com/blog/index.php/2009/06/28/graphical-environments-are-designed-to-help-novices-powershell-automates/</link>
		<comments>http://www.dougfinke.com/blog/index.php/2009/06/28/graphical-environments-are-designed-to-help-novices-powershell-automates/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 21:28:37 +0000</pubDate>
		<dc:creator>Doug Finke</dc:creator>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Neal Ford]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Productive Programmer]]></category>

		<guid isPermaLink="false">http://dougfinke.com/blog/index.php/2009/06/28/graphical-environments-are-designed-to-help-novices-powershell-automates/</guid>
		<description><![CDATA[Neal Ford, in his book &#8220;The Productive Programmer&#8221;, says The very things that make casual users more productive can hamper power users He adds You can get more done at the command line for most development chores than you can through a graphical interface He was on a project that required opening and updating several [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://memeagora.blogspot.com/">Neal Ford</a>, in his book <a href="http://www.amazon.com/Productive-Programmer-Theory-Practice-OReilly/dp/0596519788">&ldquo;The Productive Programmer&rdquo;</a>, says</p>
<blockquote><p>The very things that make casual users more productive can hamper power users</p>
</blockquote>
<p>He adds</p>
<blockquote><p>You can get more done at the command line for most development chores than you can through a graphical interface</p>
</blockquote>
<p>He was on a project that required opening and updating several spreadsheets on a regular basis. He took a few minutes and wrote a Ruby script to do it. </p>
<blockquote><p>Even though it didn&rsquo;t take long to open the files by hand, the little time it took was still a waste of time, so I automated it</p>
</blockquote>
<h3>The PowerShell Version</h3>
<h4>Open-XLWB</h4>
<div id="codeSnippetWrapper">&#160;</div>
<div id="codeSnippetWrapper"><a href="http://dougfinke.com/uploadPictures/Graphicalenvironmentsaredesignedtohelpno_E48E/image_4.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://dougfinke.com/uploadPictures/Graphicalenvironmentsaredesignedtohelpno_E48E/image_thumb_4.png" width="330" height="262" /></a>     </div>
<h4>DailyLogs</h4>
<div id="codeSnippetWrapper">&#160;</div>
<div id="codeSnippetWrapper"><a href="http://dougfinke.com/uploadPictures/Graphicalenvironmentsaredesignedtohelpno_E48E/image_5.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://dougfinke.com/uploadPictures/Graphicalenvironmentsaredesignedtohelpno_E48E/image_thumb_5.png" width="448" height="58" /></a> </div>
<h3>Result</h3>
<p><a href="http://dougfinke.com/uploadPictures/Graphicalenvironmentsaredesignedtohelpno_E48E/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://dougfinke.com/uploadPictures/Graphicalenvironmentsaredesignedtohelpno_E48E/image_thumb.png" width="342" height="128" /></a> </p>
<p><a href="http://dougfinke.com/uploadPictures/Graphicalenvironmentsaredesignedtohelpno_E48E/image_3.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://dougfinke.com/uploadPictures/Graphicalenvironmentsaredesignedtohelpno_E48E/image_thumb_3.png" width="563" height="309" /></a> </p>
<h3>For ISE</h3>
<p>In the PowerShell Integrated Scripting environment you can launch DailyLogs from the command pane.</p>
<h3>Note</h3>
<blockquote><p>Software development has lots of obvious automation targets: builds, continuous integration and documentation. There are less obvious but no less valuable ways to automate development chores</p>
</blockquote>
<p>PowerShell is an automation platform, automation platform, automation platform (quote from Jeffrey Snover). Let the automating begin.</p>
<h3>Downloads</h3>
<p>Place the two scripts in a folder that is in your path.</p>
<p> <iframe style="border-bottom: #dde5e9 1px solid; border-left: #dde5e9 1px solid; padding-bottom: 0px; background-color: #ffffff; margin: 3px; padding-left: 0px; width: 240px; padding-right: 0px; height: 26px; border-top: #dde5e9 1px solid; border-right: #dde5e9 1px solid; padding-top: 0px" marginheight="0" src="http://cid-5dec3b62d9308943.skydrive.live.com/embedrow.aspx/Project%20ShortCuts/Excel%20Shortcuts" frameborder="0" marginwidth="0" scrolling="no"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougfinke.com/blog/index.php/2009/06/28/graphical-environments-are-designed-to-help-novices-powershell-automates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell Out-ExcelPivotTable &#8211; Quickly Create Pivot Tables in Microsoft Excel</title>
		<link>http://www.dougfinke.com/blog/index.php/2009/06/24/powershell-out-excelpivottable-quickly-create-pivot-tables-in-microsoft-excel/</link>
		<comments>http://www.dougfinke.com/blog/index.php/2009/06/24/powershell-out-excelpivottable-quickly-create-pivot-tables-in-microsoft-excel/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 02:56:01 +0000</pubDate>
		<dc:creator>Doug Finke</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Pivot Tables]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://dougfinke.com/blog/index.php/2009/06/24/powershell-out-excelpivottable-quickly-create-pivot-tables-in-microsoft-excel/</guid>
		<description><![CDATA[** Updated Code 06/03/2010 ** Bradley requested two features. How to save the pivot table to a file and close excel. Download the new scripts below and here is how to use it. $data &#124; .\Out-ExcelPivotTable -saveAs &#34;$pwd\data.xls&#34; -autoCloseXl Thanks for the feature request Bradley. The Data &#8211; People.csv Use Import-Csv and type the data [...]]]></description>
				<content:encoded><![CDATA[<h3><font color="#ff0000">** Updated Code 06/03/2010 **</font></h3>
<p>Bradley requested two features. How to save the pivot table to a file and close excel.</p>
<p>Download the new scripts below and here is how to use it.</p>
<pre class="PowerShellColorizedScript"><span style="color: #ff4500">$data</span> <span style="color: #a9a9a9">|</span> <span style="color: #0000ff">.\Out-ExcelPivotTable</span> <span style="color: #000080">-saveAs</span> <span style="color: #8b0000">&quot;$pwd\data.xls&quot;</span> <span style="color: #000080">-autoCloseXl</span></pre>
<p>Thanks for the feature request Bradley.</p>
<h3>The Data &#8211; People.csv</h3>
<p><a href="http://dougfinke.com/uploadPictures/e0b8970fc45e_136AC/image.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://dougfinke.com/uploadPictures/e0b8970fc45e_136AC/image_thumb.png" width="336" height="142" /></a></p>
<h3>Use Import-Csv and <em>type</em> the data with Select</h3>
<p><a href="http://dougfinke.com/uploadPictures/e0b8970fc45e_136AC/image_3.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://dougfinke.com/uploadPictures/e0b8970fc45e_136AC/image_thumb_3.png" width="336" height="138" /></a>&#160;</p>
<h3>Create the Excel Pivot Table</h3>
<h3>$people | .\Out-ExcelPivotTable</h3>
<p>&#160;</p>
<p><a href="http://dougfinke.com/uploadPictures/e0b8970fc45e_136AC/image_4.png"><img style="border-right-width: 0px; margin: 0px 0px 0px 50px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" align="right" src="http://dougfinke.com/uploadPictures/e0b8970fc45e_136AC/image_thumb_4.png" width="333" height="253" /></a></p>
<p>The easiest way to get a Pivot Table.</p>
<p>Out-ExcelPivotTable inspects the piped data, sets up the numeric properties as data fields and string properties as row fields (nested).</p>
<p>&#160;</p>
<h3>&#160;</h3>
<h3>$people | .\Out-ExcelPivotTable name dept salary</h3>
<p>&#160;</p>
<p><a href="http://dougfinke.com/uploadPictures/e0b8970fc45e_136AC/image_5.png"><img style="border-right-width: 0px; margin: 0px 45px 0px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" align="left" src="http://dougfinke.com/uploadPictures/e0b8970fc45e_136AC/image_thumb_5.png" width="334" height="234" /></a></p>
<p>Same data.</p>
<p>You control what goes in the different pivot fields. Row (name), Column (dept) and Data (salary).</p>
<p>&#160;</p>
<h3>&#160;</h3>
<h3>&#160;</h3>
<h3>$people | .\Out-ExcelPivotTable -values YearsEmployeed</h3>
<p>&#160;</p>
<p><a href="http://dougfinke.com/uploadPictures/e0b8970fc45e_136AC/image_6.png"><img style="border-right-width: 0px; margin: 0px 0px 0px 50px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" align="right" src="http://dougfinke.com/uploadPictures/e0b8970fc45e_136AC/image_thumb_6.png" width="295" height="278" /></a></p>
<p>You control the pivot data field with the <em><strong>&ndash;values</strong></em> parameter letting&#160; Out-ExcelPivotTable do the rest.</p>
<p>Name is nested in Department.</p>
<p>&#160;</p>
<p>&#160;</p>
<h3>&#160;</h3>
<h3>&#160;</h3>
<h3>ToDo</h3>
<ul>
<li>Set up Out-ExcelPivotTable parameters to take arrays </li>
<li>Formatting of value fields </li>
<li>Naming of Row and Column Labels </li>
<li>Enable Types of aggregates for Value field </li>
<li>Improve data layout performance </li>
</ul>
<p>I have only tried this on the latest version of Excel.</p>
<h3>Download It</h3>
<p><iframe style="padding-bottom: 0px; background-color: #fcfcfc; padding-left: 0px; width: 98px; padding-right: 0px; height: 115px; padding-top: 0px" title="Preview" marginheight="0" src="http://cid-5dec3b62d9308943.skydrive.live.com/embedicon.aspx/Out-ExcelPivotTable/Do-Test.ps1" frameborder="0" marginwidth="0" scrolling="no"></iframe><iframe style="padding-bottom: 0px; background-color: #fcfcfc; padding-left: 0px; width: 98px; padding-right: 0px; height: 115px; padding-top: 0px" title="Preview" marginheight="0" src="http://cid-5dec3b62d9308943.skydrive.live.com/embedicon.aspx/Out-ExcelPivotTable/Out-ExcelPivotTable.ps1" frameborder="0" marginwidth="0" scrolling="no"></iframe><iframe style="padding-bottom: 0px; background-color: #fcfcfc; padding-left: 0px; width: 98px; padding-right: 0px; height: 115px; padding-top: 0px" title="Preview" marginheight="0" src="http://cid-5dec3b62d9308943.skydrive.live.com/embedicon.aspx/Out-ExcelPivotTable/people.csv" frameborder="0" marginwidth="0" scrolling="no"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougfinke.com/blog/index.php/2009/06/24/powershell-out-excelpivottable-quickly-create-pivot-tables-in-microsoft-excel/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Excel functions for .NET written in F#</title>
		<link>http://www.dougfinke.com/blog/index.php/2008/12/04/excel-functions-for-net-written-in-f/</link>
		<comments>http://www.dougfinke.com/blog/index.php/2008/12/04/excel-functions-for-net-written-in-f/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 23:48:18 +0000</pubDate>
		<dc:creator>Doug Finke</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[F#]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://dougfinke.com/blog/?p=508</guid>
		<description><![CDATA[Luca Bolognese of Microsoft posted the code and did a write up here. Plus he has 201,349 test cases for the library. You can use them in PowerShell too! You need to have the F# September CTP installed here.]]></description>
				<content:encoded><![CDATA[<p>Luca Bolognese of Microsoft <a href="http://code.msdn.microsoft.com/FinancialFunctions">posted the code</a> and did a <a href="http://blogs.msdn.com/lucabol/archive/2008/12/04/financial-functions-for-net-released.aspx">write up here</a>. Plus he has 201,349 test cases for the library.</p>
<p>You can use them in PowerShell too!</p>
<p>You need to have the F# September CTP installed <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=61ad6924-93ad-48dc-8c67-60f7e7803d3c">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougfinke.com/blog/index.php/2008/12/04/excel-functions-for-net-written-in-f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell works with Excel spreadsheets</title>
		<link>http://www.dougfinke.com/blog/index.php/2007/08/19/powershell-works-with-excel-spreadsheets/</link>
		<comments>http://www.dougfinke.com/blog/index.php/2007/08/19/powershell-works-with-excel-spreadsheets/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 17:55:52 +0000</pubDate>
		<dc:creator>Doug Finke</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://dougfinke.com/blog/?p=221</guid>
		<description><![CDATA[Get-ExcelData Script This script reads Excel spreadsheets. It takes two parameters The Excel file name and an &#8216;sql command&#8217;. The provider used in the connection treats the worksheet like a database. Example WorkSheet This sheet is named Sheet1. You access the data with an sql command. &#160; Using Excel data in calculations The previous example [...]]]></description>
				<content:encoded><![CDATA[<h3>Get-ExcelData Script </h3>
<p><a href="http://dougfinke.com/blog/wp-content/uploads/2007/08/Get-ExcelData.jpg" atomicselection="true"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="200" alt="Get-ExcelData" src="http://dougfinke.com/blog/wp-content/uploads/2007/08/Get-ExcelData_thumb.jpg" width="485" border="0"></a>
<p>This script reads Excel spreadsheets.
<p>It takes two parameters
<p>The Excel file name and an &lsquo;sql command&rsquo;.
<p>The <i>provider</i> used in the connection treats the worksheet like a database.<br />
<h5>Example WorkSheet</h5>
<p><a href="http://dougfinke.com/blog/wp-content/uploads/2007/08/ExcelSheet.jpg" atomicselection="true"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="158" alt="ExcelSheet" src="http://dougfinke.com/blog/wp-content/uploads/2007/08/ExcelSheet_thumb.jpg" width="341" border="0"></a>
<p>This sheet is named Sheet1. You access the data with an sql command.
<p>&nbsp; <a href="http://dougfinke.com/blog/wp-content/uploads/2007/08/Excel%20Sql.jpg" atomicselection="true"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="127" alt="Excel Sql" src="http://dougfinke.com/blog/wp-content/uploads/2007/08/Excel%20Sql_thumb.jpg" width="451" border="0"></a><br />
<h5>Using Excel data in calculations</h5>
<p>The previous example printed the contents of the Excel sheet. Here is how you can programmatically work with the data.
<p>&nbsp; <a href="http://dougfinke.com/blog/wp-content/uploads/2007/08/ExcelCalc.jpg" atomicselection="true"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="102" alt="ExcelCalc" src="http://dougfinke.com/blog/wp-content/uploads/2007/08/ExcelCalc_thumb.jpg" width="446" border="0"></a>
<p>Using the script, the columns StandardHours and Wage were extracted from the spreadsheet. Then, using the PowerShell ForEach, looped through and the Pay calculated.<br />
<h5>Wrapping up</h5>
<p>This post outlines how easy it is to access Excel spreadsheets with PowerShell.
<p>Upcoming posts will use the Get-ExcelData script to
<ul>
<li>Do code generation
<li>Simulate <a href="http://fit.c2.com/">FIT</a> (Framework for Integrated Test)
<li>Write data to a spreadsheet
<li>Create a spreadsheet on the fly
<li>Access Excel Named Ranges </li>
</ul>
<h5>Downloads</h5>
<p>Download the script and test spreadsheet <a title="PowerShell Script" href="http://www.box.net/shared/61yktnmsgm">here</a>.</p>
<p></embed><br />
<h5>Links</h5>
<p>The Get-ExcelData script is a pared down version of Lee Holmes Invoke-SqlCommand.
<p>You can find it in his upcoming book <a href="http://www.oreilly.com/catalog/9780596528492/">Windows PowerShell: The Definitive Guide</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougfinke.com/blog/index.php/2007/08/19/powershell-works-with-excel-spreadsheets/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
