<?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>Search Engine Land &#187; Annie Cushing</title>
	<atom:link href="http://searchengineland.com/author/annie-cushing/feed" rel="self" type="application/rss+xml" />
	<link>http://searchengineland.com</link>
	<description>Search Engine Land: News On Search Engines, Search Engine Optimization (SEO) &#38; Search Engine Marketing (SEM)</description>
	<lastBuildDate>Thu, 23 May 2013 15:30:37 +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>Deduplicate Your Google Analytics Reports in Excel</title>
		<link>http://searchengineland.com/deduplicate-your-google-analytics-reports-in-excel-156746</link>
		<comments>http://searchengineland.com/deduplicate-your-google-analytics-reports-in-excel-156746#comments</comments>
		<pubDate>Fri, 26 Apr 2013 13:20:39 +0000</pubDate>
		<dc:creator>Annie Cushing</dc:creator>
				<category><![CDATA[Channel: Analytics]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[How To: Analytics]]></category>
		<category><![CDATA[Search & Analytics]]></category>
		<category><![CDATA[deduplicating data]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[excel reports]]></category>
		<category><![CDATA[Google Analytics reports]]></category>
		<category><![CDATA[Google: Analytics]]></category>
		<category><![CDATA[merging data]]></category>
		<category><![CDATA[Microsoft Excel]]></category>

		<guid isPermaLink="false">http://searchengineland.com/?p=156746</guid>
		<description><![CDATA[One of the steps in my last post on finding 404 pages worth saving involved determining if any of your404 pages received traffic in the past year. This can be accomplished by pulling a landing page report and using VLOOKUPs in Excel to see any of your broken pages used to receive traffic. However, Google [...]]]></description>
				<content:encoded><![CDATA[<p>One of the steps in <a href="http://searchengineland.com/a-data-centric-approach-to-identifying-404-pages-worth-saving-152844">my last post on finding 404 pages worth saving</a> involved determining if any of your404 pages received traffic in the past year. This can be accomplished by pulling a landing page report and using VLOOKUPs in Excel to see any of your broken pages used to receive traffic. However, Google Analytics (GA) content reports are case sensitive, so you might have multiple versions of what <em>should</em> be a single line item because of this.</p>
<p>For example, /default.aspx and /Default.aspx are considered two different pages in Google Analytics. If you&#8217;re used to exporting your content or landing page reports without taking this extra step, you&#8217;re probably reporting inaccurate data.</p>
<h2>Deduplicating With Pivot Tables</h2>
<p>A simple solution to this would be to create a pivot table. This will automatically merge your data &#8212; and isn&#8217;t case sensitive.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-156747" alt="pivot table in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/04/pivot-table.jpg" width="600" height="195" /></p>
<p>However, that won’t help you in a situation where you need to do VLOOKUPs to stitch your data together; so I’m going to tell you about a cool tool in Excel that few seem to know about but is very useful. It&#8217;s the Consolidate command, and you can find it under the Data tab.</p>
<h2>Common Use For Consolidate Command</h2>
<p>The most common use of the Consolidate command is to merge datasets from different worksheets or even workbooks (i.e., completely different files). So let’s say you have a reporting dashboard that has a separate worksheet for each month of data. You could use the Consolidate command to combine all of the monthly datasets into one aggregated dataset. You can even create links so that the consolidated dataset is updated whenever its individual elements are.</p>
<p>However, it also very useful in deduplicating datasets without losing any of the data. If you just have a list of, let&#8217;s say, keywords you’re bidding on, and you want to deduplicate that list, you’d use the Remove Duplicates command. This command is also found under the Data tab. But if that list also includes traffic and revenue metrics, you do not want to merely dedupe the list; you want to merge those values. See the difference?</p>
<h2>Consolidate Landing Page Reports</h2>
<p>What I’m going to use in this demonstration is a list of landing pages from Google Analytics that includes visit and revenue data. You can see below that we have two instances of duplicated data. The second landing-page01 was actually the result of removing all query parameters from URLs. (Then I, of course, anonymized the data.) If your data is littered with unnecessary query parameters (the values that follow a question mark in a URL), you can use Text to Columns to remove everything after the &#8220;?&#8221; symbol. (However, you should really be <a href="http://actionablewebanalyticstips.wordpress.com/2012/02/21/excluding-url-query-parameters-from-google-analytics/" target="_blank">filtering out any query parameters you don&#8217;t need to report on in your profile settings</a>.)</p>
<p><a href="http://searchengineland.com/figz/wp-content/seloads/2013/04/duplicates.jpg"><img class="aligncenter size-full wp-image-156750" alt="duplicate data" src="http://searchengineland.com/figz/wp-content/seloads/2013/04/duplicates.jpg" width="370" height="236" /></a></p>
<p><b>Step 1: </b>Copy your column headings over to where your new, deduplicated dataset will ultimately live. Then put your mouse cursor where the dataset will begin.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-156751" alt="Consolidate command in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/04/consolidate01.jpg" width="600" height="196" /></p>
<p><b>Step 2: </b>Choose Data &gt; Data Tools &gt; Consolidate, which will bring up the Consolidate menu.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-156752" alt="Consolidate command in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/04/consolidate02.jpg" width="442" height="306" /></p>
<p><b>Step 3: </b>Since we’re going to want to add the visits and revenues for the duplicate rows, we’ll choose Sum from the Function drop-down menu.</p>
<p><b>Step 4: </b>For the Reference, click-and-drag over your dataset. Or, if you’re working with a formatted table (<a href="http://searchengineland.com/a-marketers-guide-to-table-formatting-in-excel-124944">which you should always be</a>), just select any cell inside your dataset and press Ctrl-A (Mac: Command-A) to select all of the cells. Lastly, you could use a named range and reference that.</p>
<p><b>Step 5: </b>Since we&#8217;re only dealing with one dataset, we won’t need to add more references. But if you were merging multiple datasets, you would select the Add button to add them.</p>
<p><b>Step 6: </b>Since the values we&#8217;re using to deduplicate the list with are in the left column, we’re going to use that option under “Use labels in.” Here’s what the dialog should look like when you’re finished. Press OK to let Excel do its magic.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-156753" alt="Consolidate command in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/04/consolidate03.jpg" width="444" height="307" /></p>
<p><b>Step 7: </b>And voila! Your consolidated data.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-156754" alt="Consolidate command in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/04/consolidate04.jpg" width="599" height="204" /></p>
<p>I use this command most frequently to deduplicate content reports in GA. If your URLs don’t automatically redirect to lowercase, or you don’t have a <a href="http://doteduguru.com/id132-google-analytics-basic-tips.html">filter in place in GA to force URLs to lowercase</a>, it&#8217;s really important that you take this extra step to make sure you&#8217;re presenting accurate data.</p>
]]></content:encoded>
			<wfw:commentRss>http://searchengineland.com/deduplicate-your-google-analytics-reports-in-excel-156746/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A Data-Centric Approach To Identifying 404 Pages Worth Saving</title>
		<link>http://searchengineland.com/a-data-centric-approach-to-identifying-404-pages-worth-saving-152844</link>
		<comments>http://searchengineland.com/a-data-centric-approach-to-identifying-404-pages-worth-saving-152844#comments</comments>
		<pubDate>Tue, 02 Apr 2013 15:50:40 +0000</pubDate>
		<dc:creator>Annie Cushing</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Channel: Analytics]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[How To: Analytics]]></category>
		<category><![CDATA[How To: Links]]></category>
		<category><![CDATA[How To: SEO]]></category>
		<category><![CDATA[Link Week]]></category>
		<category><![CDATA[Ahrefs]]></category>
		<category><![CDATA[Google Webmaster Tools]]></category>
		<category><![CDATA[Google: Analytics]]></category>
		<category><![CDATA[Majestic SEO]]></category>
		<category><![CDATA[Open Site Explorer]]></category>

		<guid isPermaLink="false">http://searchengineland.com/?p=152844</guid>
		<description><![CDATA[A critical part of doing a site or link audit is checking to see how many 404 (page not found) pages there are in a site. I can’t tell you how many times I’ve seen an audit that lists the total number of 404 pages and advises developers to find appropriate pages to redirect these [...]]]></description>
				<content:encoded><![CDATA[<p>A critical part of doing a site or link audit is checking to see how many 404 (page not found) pages there are in a site. I can’t tell you how many times I’ve seen an audit that lists the total number of 404 pages and advises developers to find appropriate pages to redirect these 404 pages to.</p>
<p>That’s no big deal if we’re talking about just 20 to 30 pages. But, when a site has 404 pages in the thousands, and you tell the developers to fix these pages, you’re going to look more than a little ridiculous. So, how can you find out which of those 404 pages are actually important?</p>
<p>Two of the most important metrics to look at are backlinks to make sure you don’t lose the most valuable links and total landing page visits in your analytics software. You may have others, like looking at social metrics. Whatever you decide those metrics to be, you want to export them all from your tools <em>du jour</em> and wed them in Excel.</p>
<h2>Gather 404 Pages</h2>
<p>There are several different sources you can use to find your site’s 404 pages. My two favorites are <a href="http://www.screamingfrog.co.uk/seo-spider/" target="_blank">Screaming Frog</a> and <a title="Microsoft Shows Off Coming Improvements To Bing App’s Voice Search" href="http://google.com/webmasters/tools/" target="_blank">Google Webmaster Tools</a> (GWT).</p>
<p>To find your site’s 404s with Screaming Frog, after running a scan of the site, go to Response Codes &gt; Filter: Client Error (4xx) &gt; Export.</p>
<p><div id="attachment_152851" class="wp-caption aligncenter" style="width: 590px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/03/screaming-frog.jpg"><img class="size-full wp-image-152851" alt="Screaming Frog 404s" src="http://searchengineland.com/figz/wp-content/seloads/2013/03/screaming-frog.jpg" width="580" height="151" /></a><p class="wp-caption-text">Click for larger image</p></div></p>
<p>To flesh out your site’s 404 pages with Google Webmaster Tools, go to Health &gt; Crawl Errors &gt; URL Errors &gt; Web or Mobile: Not found &gt; Download.</p>
<p><div id="attachment_152853" class="wp-caption aligncenter" style="width: 590px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/03/google-webmaster-tools-404s.jpg"><img class="size-full wp-image-152853" alt="google-webmaster-tools-404s" src="http://searchengineland.com/figz/wp-content/seloads/2013/03/google-webmaster-tools-404s.jpg" width="580" height="295" /></a><p class="wp-caption-text">Click for larger image</p></div></p>
<p>Strip your csv download of everything but the list of 404 URLs, and save the file as an xlsx file.</p>
<h2>Pull Landing Page Data</h2>
<p>If you’re only responsible for SEO, you may want to restrict your export to organic traffic. In Google Analytics (GA), you’d navigate to Traffic Sources &gt; Sources &gt; Search &gt; Organic &gt; Primary Dimension: Landing Page.</p>
<p>But, I think that approach is a bit shortsighted. I much prefer looking for all important landing pages, which you get to by navigating to Content &gt; Site Content  &gt; Landing Pages.</p>
<p>To pull all of them, you need to look at the total number of landing pages in the bottom-right corner of the report (e.g., 1 – 10 of 441). If you have more than 5oo landing pages, you’ll need to use <a href="http://www.annielytics.com/how-to-get-more-than-500-rows-from-google-analytics-reports/">this trick</a> to get them all.</p>
<p>To get the full URL of your landing pages, you’ll need to use <a href="http://searchengineland.com/how-to-get-full-referral-content-urls-from-google-analytics-149549">this technique</a> in the third section of the post, especially if your site uses subdomains and you’re <a href="http://www.annielytics.com/how-to-add-a-hostname-filter-in-ga/">not including hostname in your content reports</a>.</p>
<h2>Get Your Backlink Data</h2>
<p>First, pull backlinks from your favorite tool. It’s outside of the scope of this post for how to do that; but, here are links to learn more about how to use each of the tools:</p>
<ul>
<li><a href="http://searchengineland.com/link-building-tool-review-seomoz-pro-91619">Open Site Explorer</a></li>
<li><a href="http://searchengineland.com/link-building-tool-review-majestic-seo-103646">Majestic</a></li>
<li><a href="http://searchengineland.com/link-tool-review-ahrefs-138676">Ahrefs</a></li>
<li>Google Webmaster Tools (Traffic &gt; Links to Your Site &gt; Your Most Linked Content &gt; More)</li>
</ul>
<h2>Pull It All Together</h2>
<p>Once you know that all of your URLs follow the same syntax (by either having them all start with http:// or removing the http:// from all of the URLs), you’re ready to stitch all of these metrics together using VLOOKUPs in Excel. If you’re new to VLOOKUPs, check out <a href="http://office.microsoft.com/en-gb/excel-help/vlookup-what-it-is-and-when-to-use-it-RZ101862716.aspx" target="_blank">this introduction on the Microsoft site</a>.</p>
<p>Make sure you<a href="http://searchengineland.com/a-marketers-guide-to-table-formatting-in-excel-124944"> format your dataset as a table</a> so that you can sort the data by the number of landing page visits, backlinks, or page authority — or whatever else you want to pull into the dataset.</p>
<p>By taking this kind of data-centric approach, you can fairly easily identify the backlinks you actually need to address and fix.</p>
]]></content:encoded>
			<wfw:commentRss>http://searchengineland.com/a-data-centric-approach-to-identifying-404-pages-worth-saving-152844/feed</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>How To Get Full Referral &amp; Content URLs From Google Analytics</title>
		<link>http://searchengineland.com/how-to-get-full-referral-content-urls-from-google-analytics-149549</link>
		<comments>http://searchengineland.com/how-to-get-full-referral-content-urls-from-google-analytics-149549#comments</comments>
		<pubDate>Fri, 01 Mar 2013 18:06:20 +0000</pubDate>
		<dc:creator>Annie Cushing</dc:creator>
				<category><![CDATA[Channel: Analytics]]></category>
		<category><![CDATA[Search & Analytics]]></category>
		<category><![CDATA[content URLs]]></category>
		<category><![CDATA[Google Analytics reports]]></category>
		<category><![CDATA[referral URLs]]></category>

		<guid isPermaLink="false">http://searchengineland.com/?p=149549</guid>
		<description><![CDATA[While cruising through the standard reports in Google Analytics (GA), you may have noticed that you can only get URIs (the part of the URL that follows the domain, AKA hostname). You can’t get the full URLs. That can be pretty unhelpful. So, I’m going to show you some tricks to pull full URLs into [...]]]></description>
				<content:encoded><![CDATA[<p>While cruising through the standard reports in Google Analytics (GA), you may have noticed that you can only get URIs (the part of the URL that follows the domain, AKA hostname). You can’t get the full URLs. That can be pretty unhelpful. So, I’m going to show you some tricks to pull full URLs into your GA reports in an export-friendly format.</p>
<h2>Helpful Export Tip</h2>
<p>Before you even get started creating these reports, you’ll need to know how to get all of the rows from your report into your export. The GA interface caps you out at 500 rows. However, to get more, just look at the bottom-right corner of your report to see how many rows you have.</p>
<p><a href="http://searchengineland.com/figz/wp-content/seloads/2013/02/row-count.png"><img class="aligncenter size-full wp-image-149550" alt="row count in Google Analytics" src="http://searchengineland.com/figz/wp-content/seloads/2013/02/row-count.png" width="353" height="46" /></a></p>
<p>Then, choose 25 from the &#8220;Show rows&#8221; drop-down. At the very end of the report URL, you’ll see this: table.rowCount%3D25. This tells GA that you want 25 rows. Change 25 to however many rows you need in your export — which would be 6001, in my case.</p>
<h2>Get Full Referral URLs</h2>
<p>This isn’t immediately apparent, but if you’re in the Referrals report (Traffic Sources &gt; Sources &gt; Referrals), the standard report is set up so that if you click on one of the referral sources, you’ll see the URI(s) visitors clicked through from.</p>
<p><div id="attachment_149551" class="wp-caption aligncenter" style="width: 609px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/02/referral-drilldown.png"><img class="size-full wp-image-149551" alt="referral drill-down in Google Analytics" src="http://searchengineland.com/figz/wp-content/seloads/2013/02/referral-drilldown.png" width="599" height="232" /></a><p class="wp-caption-text">Click for larger image</p></div></p>
<p>However, if you export the report (by clicking Export from the top navigation bar), you’re only going to get the URIs for the referral source you clicked on, not the sources and not the URIs for any of the other referral sources. Not very useful.</p>
<p>If you want the full URLs, you’ll need to create a custom report. If you’re not comfortable with creating a custom report in GA, I created a <a href="http://www.annielytics.com/how-to-create-custom-reports-in-ga/">video walkthrough</a>. You’ll never want to suffer the confines of standard reports again.</p>
<p>Here’s how I set up my custom report:</p>
<p><div id="attachment_149552" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/02/full-referral-custom-report.png"><img class="size-full wp-image-149552" alt="full referral custom report in Google Analytics" src="http://searchengineland.com/figz/wp-content/seloads/2013/02/full-referral-custom-report.png" width="600" height="351" /></a><p class="wp-caption-text">Click for larger image</p></div></p>
<p>Or, you can apply it to your own GA account by using <a href="https://www.google.com/analytics/web/template?uid=GpIUHrDYTF2qzxrs_UmA-Q">this share link</a>. <em>Important:</em> make sure you’re logged in to GA when you open the link — or copy it into a browser where you’re logged in. Otherwise, you’ll get a 404 error.</p>
<p><strong>Pro Tip</strong>: If you want to create a pivot table with both the referral source and the full URL, use <a href="https://www.google.com/analytics/web/template?uid=V2wfEPD9T46mH4idQjttMA">this custom report</a>. This custom report will give you the ability to create a pivot table that lists the full referral URLs under the source to easily group multiple links from the same site. Your pivot table would look something like this:</p>
<p><div id="attachment_149556" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/02/source-referrals.png"><img class="size-full wp-image-149556" alt="source + referrals in Google Analytics custom reports" src="http://searchengineland.com/figz/wp-content/seloads/2013/02/source-referrals.png" width="600" height="471" /></a><p class="wp-caption-text">Click for larger image</p></div></p>
<p>You can <a href="http://www.annielytics.com/how-to-create-pivot-table-friendly-custom-reports-in-google-analytics">learn more about how to create pivot table-friendly reports in GA</a> using the flat table option.</p>
<h2>Get Full URLs Of Landing Pages</h2>
<p>You may be asking yourself, <i>Why would I need to capture the full URLs of my site’s landing pages? </i>By default, unless you have a <a href="http://www.annielytics.com/how-to-add-a-hostname-filter-in-ga/">filter in place to capture the hostname</a>, GA only captures the URI in its content reports.</p>
<p>If your site has multiple subdomains, and you’re not capturing the hostname in your content reports, this can create two issues:</p>
<ul>
<li>There’s no way of knowing which homepage the landing page report (or any other content report) is referring to because the homepage of each subdomain will show up as a “/” in most cases.</li>
<li>Visits to your different domains are very difficult to segment for analysis purposes. And, visitors to a store subdomain are going to behave very differently than they will on a blog or forum subdomain. For this reason, analyzing data from all subdomains in aggregate is usually pretty ineffective.</li>
</ul>
<p>So, to include the hostname in landing page reports, you need to create a flat table custom report that looks like this:</p>
<p><div id="attachment_149557" class="wp-caption aligncenter" style="width: 611px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/02/organic-landing-page-flat-table.png"><img class="size-full wp-image-149557" alt="organic landing page flat table in Google Analytics" src="http://searchengineland.com/figz/wp-content/seloads/2013/02/organic-landing-page-flat-table.png" width="601" height="411" /></a><p class="wp-caption-text">Click for larger image</p></div></p>
<p>&nbsp;</p>
<p>I threw in a filter that isolated organic traffic, but you could use whatever you need. Or, you could <a href="https://www.google.com/analytics/web/template?uid=1Kg38YgtTDqnaHiKRfXzNw">apply this report to your account</a>. Click the Edit button at the top of the report to modify it to meet your needs.</p>
<p>To create a column with full URLs in Excel, using the hostname and landing page outputs, you will need to concatenate the hostname with the URI in Excel using either <a href="http://www.techonthenet.com/excel/formulas/concat2.php">the ampersand</a> or the <a href="http://office.microsoft.com/en-us/excel-help/concatenate-function-HP010062562.aspx">CONCATENATE function</a>.</p>
<h2>Get Full URLs Of Pages</h2>
<p>To get the full URLs of all pages on the site (not just landing pages), you’ll follow the same steps you did with landing pages, except choose the Page dimension instead of Landing Page, as demonstrated below.</p>
<p><div id="attachment_149559" class="wp-caption aligncenter" style="width: 611px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/02/hostname-page.png"><img class="size-full wp-image-149559" alt="hostname + page report in Google Analytics" src="http://searchengineland.com/figz/wp-content/seloads/2013/02/hostname-page.png" width="601" height="283" /></a><p class="wp-caption-text">Click for larger image</p></div></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://searchengineland.com/how-to-get-full-referral-content-urls-from-google-analytics-149549/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>A Foolproof Approach To Writing Complex Excel Formulas</title>
		<link>http://searchengineland.com/a-foolproof-approach-to-writing-complex-excel-formulas-146641</link>
		<comments>http://searchengineland.com/a-foolproof-approach-to-writing-complex-excel-formulas-146641#comments</comments>
		<pubDate>Fri, 01 Feb 2013 14:15:46 +0000</pubDate>
		<dc:creator>Annie Cushing</dc:creator>
				<category><![CDATA[Channel: Analytics]]></category>
		<category><![CDATA[Search & Analytics]]></category>
		<category><![CDATA[complex Excel formulas]]></category>
		<category><![CDATA[Excel formulas]]></category>
		<category><![CDATA[Microsoft Excel]]></category>

		<guid isPermaLink="false">http://searchengineland.com/?p=146641</guid>
		<description><![CDATA[There comes a time in a marketer’s life when making pretty charts with a predefined dataset just doesn’t cut it. And finding the sum and average of a column of data just doesn’t satisfy you anymore. Eventually — and it&#8217;s really inevitable — you will actually have to dive deep into the data and cull [...]]]></description>
				<content:encoded><![CDATA[<p>There comes a time in a marketer’s life when making pretty charts with a predefined dataset just doesn’t cut it. And finding the sum and average of a column of data just doesn’t satisfy you anymore.</p>
<p>Eventually — and it&#8217;s really inevitable — you will actually have to dive deep into the data and cull out a smaller dataset or manipulate it in some way to make it cough up what you need. And, as freaking intimidating as they can be, formulas become your lifeline in these moments.</p>
<p>Admittedly, the learning curve with formulas can be pretty steep, but the only way they&#8217;ll become intuitive is exposure to them and practice.</p>
<h2>Excel Formulas <em>Still</em> Scare Me Yet I Did This (You Can Too!)</h2>
<p>However, when I was first learning them, I’d see a formula like the one below, which I wrote to find the last directory in a URL (just to see if I could, not for any particular use), and think that I’d never ever be able to do anything like that. Turns out I was dead wrong.</p>
<p><div id="attachment_146658" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/01/excel-directory.png"><img class="size-full wp-image-146658" alt="advanced text extraction formula in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/01/excel-directory.png" width="600" height="58" /></a><p class="wp-caption-text">Click for larger image</p></div></p>
<p>Before you throw in the towel, let me tell you a trick I first saw Bill Jelen (AKA <a href="http://www.mrexcel.com/meetmrexcel.shtml" target="_blank">Mr. Excel</a>) do that makes writing formulas — even advanced formulas like this one — much simpler.</p>
<p>If you put this hideous monstrosity in front of me with no context and asked me to explain step by step what each part of that formula means, I probably wouldn’t be able to do it. Not because I copied it off the Internet. I can honestly say I didn’t get any help with it at all. And I purposely chose something kind of esoteric so I wouldn’t be tempted to look it up and to test myself to see if this approach would work for a really advanced formula. And it did. Like a charm.</p>
<p>So, enough pontificating. Let me show it to you in action. But first let’s cover some terminology. And don’t worry; we’ll start with a much simpler task than that data voodoo.</p>
<h2>Definitions</h2>
<p><i><strong>Formula</strong>: </i>Formulas provide some kind of instructions for Excel to calculate something. They always start with an equal sign. It can be as simple as =2+2 or ridiculously complex like the one above.</p>
<p><i><strong>Function</strong>: </i>In the simplest terms, functions are formulas that come prepackaged in Excel. I mean, you could create your own functions, but most of the time you’ll be using one of the 80 bajillion offered natively in Excel (unless, of course, you want percent difference, which Excel doesn&#8217;t offer … go figure). With the more advanced formulas you’ll write, you will use multiple functions in one formula.</p>
<p><i><strong>Argument</strong>: </i>Each function starts with the function name, followed by a set of parentheses, e.g., =SUM(A3:A67) or =CONCATENATE(B2,C2,D2). The individual elements inside those surrounding parentheses, separated by commas, are arguments.</p>
<p><i><strong>Square brackets</strong>:</i> Sometimes you’ll see arguments listed in square brackets in the tool tip or on the Microsoft site. The brackets indicate that the argument is optional.</p>
<p><i><strong>Boolean</strong>: </i>Returns a TRUE or FALSE value.</p>
<p><i><strong>Helper cells</strong>: </i>Okay, this isn’t an actual term; it’s what I call the cells you use to break down a complicated formula into easy-to-understand steps.</p>
<h2>Download</h2>
<p>If you&#8217;d like to download the Excel workbook I worked from in the following examples, you can <a href="https://www.dropbox.com/s/bsk7qeukcophuv1/sample-formulas-workbook.xlsx" target="_blank">access it here</a>. I even included the crazy formula you see above. You&#8217;ll see on one tab I break the process down into simple steps (which is exactly what I did first thing) and then step by step with all the helper cells.</p>
<p>Then in the last tab I replace all of the helper cells with the formulas they contain and just kept sweeping right until I got to the final formula. But,for whatever reason, I kept coming up with one extra character that I didn&#8217;t need. I checked my formulas several times and tried retracing my steps.</p>
<p>Finally, I just subtracted 1 on the end, and it all worked as planned. At the end of the day that&#8217;s what matters, so I went with it.</p>
<h2>Task 1: Extract Domain From URLs</h2>
<p>Let’s say you have a list of URLs (perhaps backlinks), and you want to extract just the domain. I did this recently so that I could use that column in a pivot table to group all target URLs that were linked to from a particular domain.</p>
<p>For example, let’s say www.linkingsite.com linked to www.mysite.com/landing-page-02 and www.mysite.com/landing-page-45. The two landing pages would show up under the www.linkingsite.com domain in my pivot table, the way I had it organized.</p>
<p><div id="attachment_146643" class="wp-caption aligncenter" style="width: 616px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/01/pivot-table1.png"><img class="size-full wp-image-146643" alt="pivot table in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/01/pivot-table1.png" width="606" height="260" /></a><p class="wp-caption-text">Click for larger image</p></div></p>
<p>So, how’d I extract those? Easy. But first some background.</p>
<h2>Important Stuff You Need To Understand</h2>
<p>When you need to extract a string of text from a longer string in Excel, the three primary functions you want to use are LEFT, RIGHT, and MID. You can get tricky with REPLACE, which works a lot like Find and Replace in Excel or Word, but we won’t get into that here.</p>
<p>So basically what each of these functions does is asks you:</p>
<ol>
<li>What cell you want to extract the text from</li>
<li>How many characters you want to extract</li>
</ol>
<p>With the MID function you also specify the starting place because, well, you’re pulling from the middle of the string.</p>
<p>That&#8217;s all well and good, but with our column of URLs the number of characters we need to extract changes from URL to URL, so we can’t use a static number. That’s where the SEARCH function comes in.</p>
<p><strong><i>Quick aside: </i></strong>If you’ve dabbled in formulas much, you might be asking why I don’t use the FIND function. Well, the SEARCH and FIND functions are very similar, only the FIND function is more limiting in that it’s case sensitive and it doesn’t support wildcard characters. Lame. So the <i>only</i> time I use FIND is when I want to specify case, which the last time I did that was last … Lessee here &#8230; Yeah, never.</p>
<p>So what we’re going to do is use the SEARCH function to specify the number of characters we need because it returns the position of whatever you ask Excel to find. If it doesn&#8217;t find what you&#8217;ve searched for it returns a nasty #N/A error, which we&#8217;ll actually USE in the next example. However, for the task at hand, what we need is the position of the first forward slash after the domain.</p>
<p><em>Buuut,</em> there’s a problem.</p>
<p>See those two forward slashes before the domain (http:<b>//</b>)? Yeah, those are going to trip us up. But no worries. The SEARCH function has an optional argument for the starting number (start_num), which we&#8217;ll use to our benefit.</p>
<p><strong>The Playas</strong></p>
<p>So for our formula we’re going to combine two functions: <a href="http://office.microsoft.com/en-us/excel-help/left-leftb-functions-HP010342648.aspx?CTT=5&amp;origin=HA010342655" target="_blank">LEFT</a> and <a href="http://office.microsoft.com/en-us/excel-help/search-searchb-functions-HP010342873.aspx?CTT=5&amp;origin=HA010342655" target="_blank">SEARCH</a>. Here’s the syntax for each:</p>
<pre>LEFT(text, [num_chars])</pre>
<pre>SEARCH(find_text,within_text,[start_num])</pre>
<p>Okay, so let’s get poppin here …</p>
<p><strong>The Strategy</strong></p>
<p>So, the secret sauce is we’re going to split the formula into two steps. Then when we’re finished, we’re going to combine them into one formula.</p>
<p>Excel helps you each step of the way by highlighting the argument you’re working on at the time. Here are what we’re going to use for each:</p>
<p><span style="color: #ff0000;">find_text: “/”</span>
This says we’re looking for a forward slash.</p>
<p><span style="color: #ff0000;">within_text: B3</span>
This is the first cell we’re going to extract the domain from. When we finish, we’ll hover over the bottom-right corner of the cell to drag the formula down the column.</p>
<p><span style="color: #ff0000;">start_num: 9</span>
We need to just choose a number that’s after the last / before the domain. We could have used 8 here, but if any of the URLs are secure, you would need one more character. Check it out for yourself.</p>
<p>https://* &lt;&#8211; The * is in the 9<sup>th</sup> position, which is where we want to start looking for the / that comes after the domain.</p>
<p>So, the final formula looks like this:</p>
<p><div id="attachment_146646" class="wp-caption aligncenter" style="width: 584px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/01/search-function.png"><img class=" wp-image-146646 " alt="SEARCH function in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/01/search-function.png" width="574" height="160" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p>This tells us what position each of the forward slashes directly following the domain is in. And we’ll use that to provide the number of characters to extract in the LEFT function.</p>
<p>Here are the arguments we’ll use for the LEFT function:</p>
<p><span style="color: #ff0000;">text: B3</span></p>
<p><span style="color: #ff0000;">[num_chars]: C3</span></p>
<p>So, the final formula looks like this:</p>
<p><div id="attachment_146647" class="wp-caption aligncenter" style="width: 575px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/01/left-function.png"><img class=" wp-image-146647 " alt="LEFT function in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/01/left-function.png" width="565" height="103" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>Now, all we need to do is combine the two so that instead of referencing cell C3, we’re embedding the SEARCH function into the final formula. To do that, just hit the Esc key to exit out of the cell you’re in, then copy the SEARCH function to your clipboard (not the = sign, though).</p>
<p>Next, hit the Esc key again to back out of that cell, and go back to the cell that houses your final formula and replace the C3 reference with the formula you just copied from C3. Your formula should now look like this:</p>
<p><div id="attachment_146648" class="wp-caption aligncenter" style="width: 574px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/01/final-left-formula.png"><img class=" wp-image-146648  " alt="LEFT function in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/01/final-left-formula.png" width="564" height="103" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<h2>Task 2: Compare Two Datasets</h2>
<p>In my <a href="http://bit.ly/audit-checklist" target="_blank">audit Google Doc,</a> one of the tasks I include is a check for orphan pages on the site (on the Links tab). One way to check for those is to compare your site’s sitemap against a site crawl, which can be performed with a tool like <a href="http://www.screamingfrog.co.uk/seo-spider/" target="_blank">Screaming Frog</a>. (Disclosure: I’m <em>not</em> affiliated with Screaming Frog in any way.)</p>
<p>If you find that there are URLs in your sitemap that weren’t found in the Screaming Frog crawl (or whatever tool you use), there’s a good chance that these are orphaned or blocked pages. Either way, they warrant investigation and probably shouldn&#8217;t be in your sitemap.</p>
<p><strong>Playas</strong></p>
<p>For the formula, we’ll use the following functions:</p>
<p style="padding-left: 30px;"><a href="http://office.microsoft.com/en-us/excel-help/if-function-HP010342586.aspx?CTT=5&amp;origin=HA010342655" target="_blank">IF</a>: IF(logical_test, [value_if_true], [value_if_false])</p>
<p style="padding-left: 30px;"><a href="http://office.microsoft.com/en-us/excel-help/is-functions-HP010342632.aspx?CTT=5&amp;origin=HA010342655">ISNA</a>: ISNA(value)</p>
<p style="padding-left: 30px;"><a href="http://office.microsoft.com/en-us/excel-help/match-function-HP010342679.aspx?CTT=5&amp;origin=HA010342655">MATCH</a>: MATCH(lookup_value, lookup_array, [match_type])</p>
<p>For the sake of time, I won’t go into all the details about what these mean. Each of the links takes you to the page on the Microsoft site that explains all about that particular function.</p>
<p>Since this formula requires a couple more steps, I&#8217;ll break them out into steps.</p>
<p><b>Step 1: </b>Look to see if the URL in C2 is anywhere in Column B.</p>
<p>The MATCH function is just another lookup function Excel offers, and it’s especially versatile. But, what it returns is the row number of whatever you’re looking up.  If it can’t find it, it returns an #N/A error (which we&#8217;ll use).</p>
<p><div id="attachment_146649" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/01/task2-match.png"><img class="size-full wp-image-146649" alt="MATCH function in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/01/task2-match.png" width="600" height="166" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p><b>Step 2: </b>ISNA simply returns a Boolean value that just lets you know if the value in the cell you’re referencing is an #N/A error.</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/01/task2-na-function.png"><img class="size-full wp-image-146650 aligncenter" alt="ISNA function in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/01/task2-na-function.png" width="287" height="211" /></a></p>
<p><b>Step 3: </b>Write an IF statement that assigns the value “Orphan” if the URL isn’t in the Screaming Frog column (in other words, is returning an #N/A error) and “Found” if it is found.</p>
<p><a href="http://searchengineland.com/figz/wp-content/seloads/2013/01/task2-if-functions.png"><img class="aligncenter size-full wp-image-146652" alt="IF function in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/01/task2-if-functions.png" width="395" height="230" /></a></p>
<p><b>Step 4: </b>Replace every helper cell reference with the formula inside that cell (everything but the =). If you spread your helper cells from left to right across your spreadsheet, like I do, start to the far-left and work your way to the right.</p>
<p>If you spread them out vertically, start at the top and work your way down to the last formula you wrote. That way, you won&#8217;t accidentally miss any helper cells.</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2013/01/task2-final.png"><img class=" wp-image-146653 aligncenter" alt="complex formula in Excel" src="http://searchengineland.com/figz/wp-content/seloads/2013/01/task2-final.png" width="599" height="114" /></a></p>
<h2>Resources</h2>
<p>The definitive guide to Excel for marketers is Distilled&#8217;s <a href="http://www.distilled.net/excel-for-seo/" target="_blank">Microsoft Excel for SEOs</a> guide. It&#8217;s a great jumping-off point if you want to start your journey by focusing on functions marketers use most.</p>
<p>If you really want to go hardcore, I highly recommend <a href="http://www.youtube.com/user/bjele123" target="_blank">Bill Jelen&#8217;s YouTube channel</a>. His <a href="http://www.youtube.com/user/bjele123/videos?view=1&amp;flow=grid" target="_blank">playlists</a> are especially helpful if you&#8217;re looking to concentrate on a particular, weak area. Another podcast I really like is Mike Girvin&#8217;s <a href="http://www.youtube.com/user/ExcelIsFun" target="_blank">ExcelIsFun YouTube channel</a>.</p>
<p>I also regularly publish <a href="http://www.annielytics.com/category/excel-tips/" target="_blank">Excel video tutorials</a> on my blog.</p>
<h2>Final Thoughts</h2>
<p>If you didn’t understand all of the nuances of the two formulas we worked with, don’t worry about it. Just grasp the principle of using helper cells to test your functions along the way and to break your process down into easily, digestible steps. I used to try to jam everything into one cell and would find myself all tangled up in the formula, even with the tool tips.</p>
<p>Now, I&#8217;m much more comfortable with navigating my way through somewhat complex formulas, but when they get too tortuous, I start parsing pieces into their own cells.</p>
]]></content:encoded>
			<wfw:commentRss>http://searchengineland.com/a-foolproof-approach-to-writing-complex-excel-formulas-146641/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Advanced Filters: Excel&#8217;s Amazing Alternative To Regex</title>
		<link>http://searchengineland.com/advanced-filters-excels-amazing-alternative-to-regex-143680</link>
		<comments>http://searchengineland.com/advanced-filters-excels-amazing-alternative-to-regex-143680#comments</comments>
		<pubDate>Fri, 04 Jan 2013 17:38:33 +0000</pubDate>
		<dc:creator>Annie Cushing</dc:creator>
				<category><![CDATA[Channel: Analytics]]></category>
		<category><![CDATA[Search & Analytics]]></category>
		<category><![CDATA[advanced Excel users]]></category>
		<category><![CDATA[advanced filters]]></category>
		<category><![CDATA[dataset filters]]></category>
		<category><![CDATA[datasets]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[filtering datasets]]></category>
		<category><![CDATA[headings]]></category>
		<category><![CDATA[key players]]></category>
		<category><![CDATA[keywords filter]]></category>
		<category><![CDATA[keywords formula]]></category>
		<category><![CDATA[Microsoft Excel]]></category>
		<category><![CDATA[multiple criteria]]></category>
		<category><![CDATA[Regex]]></category>
		<category><![CDATA[search anaytics]]></category>
		<category><![CDATA[SEMRush]]></category>
		<category><![CDATA[SEOTools plugin for Excel]]></category>

		<guid isPermaLink="false">http://searchengineland.com/?p=143680</guid>
		<description><![CDATA[One thing I&#8217;ve never understood about Excel is why it doesn&#8217;t support regular expressions (which the cool kids call regex). Regex allows you to do advanced sorting and filtering. The SeoTools plugin for Excel supports regex, but it — like most cool resources for Excel — is PC-swim only. For those of us red-headed stepchildren Mac [...]]]></description>
				<content:encoded><![CDATA[<p>One thing I&#8217;ve never understood about Excel is why it doesn&#8217;t support regular expressions (which the cool kids call regex). Regex allows you to do advanced sorting and filtering. The <a href="http://nielsbosma.se/projects/seotools/" target="_blank">SeoTools plugin for Excel</a> supports regex, but it — like most cool resources for Excel — is PC-swim only. For those of us <del>red-headed stepchildren</del> Mac users, that blows.</p>
<p>(Disclaimer: I&#8217;m not affiliated with the SeoTools plugin in any way.)</p>
<p>However, as it turns out, Excel offers an alternative to regex that gives you all the same functionality — and is available on all operating systems. They&#8217;re called advanced filters. And, they&#8217;re actually <em>more</em> flexible than regex and much easier to learn. (If you do want to learn how to leverage regex as a marketer, though, I wrote <a href="http://www.blueglass.com/blog/regular-expressions-dont-use-ga-without-them/" target="_blank">this post on regex for n00bs</a> last year that makes regex achievable for even the most developer-challenged marketer.)</p>
<h2>Some Groundwork</h2>
<p>Okay, let&#8217;s cover some basics, so we can get to the cool stuff.</p>
<p>First of all, if you&#8217;re <a title="A Marketer’s Guide To Table Formatting In Excel" href="http://searchengineland.com/a-marketers-guide-to-table-formatting-in-excel-124944">formatting your data as a table</a>, you&#8217;ll already have access to quite a few filters. However, sometimes those filters fall short, especially because Excel doesn&#8217;t make the filters sensitive to regex. You have two wildcards to work with:</p>
<ul>
<li>*: 0 or more characters (equivalent to .* in regex)</li>
<li>?: any one character (equivalent to . in regex)</li>
<li>?*: 1 or more characters (equivalent to .+ in regex)</li>
</ul>
<p>Another benefit to advanced filters over a table (as much as I love tables) is that you can easily copy your filtered data to another location, which can be really handy. If you apply a filter of any kind to a formatted table, you can&#8217;t put data on either side of it, or you&#8217;ll find some of your rows of data disappearing on you. It would be embarrassing to admit how many times I&#8217;ve done that. So we just won&#8217;t go there, okay? :)</p>
<p>To illustrate the awesomeness of advanced filters, I downloaded an SEMRush organic keyword report for Hipmunk.com. I&#8217;m not affiliated with either of these sites, though I love both of them. I just needed a good dataset to work with. You can <a href="https://www.dropbox.com/s/8w7g1tifyh3gryg/advanced-filters-sel-cushing.xlsx" target="_blank">download the Excel workbook I use</a> to follow along.</p>
<h2>Getting All Set Up</h2>
<p>All you need is a dataset that you need filtered. I still format it as a table, but it&#8217;s more for aesthetic purposes since applying an advanced filter will strip out your table filters. (You can always reapply them when you&#8217;re finished spawning new datasets if you want.)</p>
<p>You&#8217;ll find the Advanced Filter option under Data &gt; Sort &amp; Filter &gt; Advanced on a PC, and Data &gt; Filter &gt; Advanced Filter on a Mac. Mac users can also right-click on their table and choose Filter &gt; Advanced Filter from the contextual menu. PC users don&#8217;t have that option for some reason.</p>
<p><div id="attachment_143724" class="wp-caption aligncenter" style="width: 609px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/12/advanced-filter-pc-mac.png"><img class=" wp-image-143724" src="http://searchengineland.com/figz/wp-content/seloads/2012/12/advanced-filter-pc-mac.png" alt="Excel advanced filters" width="599" height="274" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>Your dataset needs to have headings to use advanced filters, as mine does.</p>
<p><div id="attachment_143726" class="wp-caption aligncenter" style="width: 604px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/12/semrush-report.png"><img class=" wp-image-143726" src="http://searchengineland.com/figz/wp-content/seloads/2012/12/semrush-report.png" alt="Excel dataset from SEMRush" width="594" height="299" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<h2>A Few Tips</h2>
<p>More information about filters is provided below under the headings of key players, headings and multiple criteria.<strong></strong></p>
<p><strong>Key Players</strong></p>
<p>In addition to the wildcards mentioned above, there are a handful of notations you will need to use for your filters:</p>
<ul>
<li>=: equality, meaning you want to match whatever comes after it, e.g., <em>=*hipmunk*</em> [include all keywords that contain hipmunk]</li>
<li>&lt;&gt;: inequality, meaning you want whatever comes after it to be filtered out, e.g., &lt;&gt;http://blog.* [don't include landing pages from the blog]</li>
<li>&#8216;: converts formulas to text when you put it in front of an = sign, e.g., &#8216;=flight search</li>
<li>&gt;: greater than, e.g., &gt;500</li>
<li>&gt;=: greater or equal to, e.g., B4-C4&gt;=3</li>
<li>&lt;: less than, e.g., C6&lt;D6</li>
<li>&lt;=: less than or equal to, e.g., &lt;=3</li>
</ul>
<p><strong> Headings</strong></p>
<p><strong></strong>The way advanced filters work is you copy the headings for the columns you want to filter somewhere outside your dataset. Typically, you&#8217;re only going to just need one instance of each heading; but there are times, as you&#8217;ll see, where you&#8217;ll need to use more than one. You&#8217;ll align your heading(s) along the top row, with the criteria immediately below. Don&#8217;t worry — I&#8217;ll provide you with tons of real-world examples.<strong>
</strong></p>
<p><strong>Multiple Criteria</strong></p>
<p>There are three basic constructs for multiple criteria:</p>
<p><em><strong>Or:</strong> </em>If you have multiple criteria you need to apply, and either of the criteria could be true, you align these vertically. You can see an example of such a filter from our example dataset below.</p>
<p><a href="http://searchengineland.com/figz/wp-content/seloads/2012/12/or-criteria.png"><img class="aligncenter size-full wp-image-143728" src="http://searchengineland.com/figz/wp-content/seloads/2012/12/or-criteria.png" alt="Excel advanced filters or criteria" width="165" height="58" /></a></p>
<p>This filter will grab keywords that either rank between 1 and 3 OR have a monthly search volume of greater than 1,000 searches. You could also have multiple &#8220;OR&#8221; criteria in the same column. If you do, they would all be listed under that column heading.</p>
<p><em><strong>And</strong>: </em>If you have multiple criteria you need to apply and all conditions must be met, you align those horizontally.</p>
<p><a href="http://searchengineland.com/figz/wp-content/seloads/2012/12/and-criteria.png"><img class="aligncenter  wp-image-143729" src="http://searchengineland.com/figz/wp-content/seloads/2012/12/and-criteria.png" alt="Excel advanced filters - and criteria" width="351" height="44" /></a></p>
<p>This construct will filter out all non-branded keywords. Remember: those asterisks mean that there may or may not be characters in those locations. The ones between <em>hip</em> and <em>munk</em> (and also<em> monk </em>because people can&#8217;t spell) are there to catch all the spellings with spaces that the site ranks for. I could have actually just used *hip* for this site, but marketers will rarely get that lucky in filtering out branded keywords; so, I wanted to demonstrate more the norm. And, if the site ever ranked for something like <em>ship</em>, it would be filtered out.</p>
<p><em><strong>Both:</strong> </em>You can go all fancy pants and have both <em>And</em> and <em>Or</em> conditions.</p>
<p><a href="http://searchengineland.com/figz/wp-content/seloads/2012/12/both-and-or.png"><img class="aligncenter size-full wp-image-143730" src="http://searchengineland.com/figz/wp-content/seloads/2012/12/both-and-or.png" alt="Excel advanced filter criteria" width="232" height="72" /></a></p>
<p>Okay, things are heating up a bit. But this filter simply means I want keywords that include <em>flight</em>, <em>hotel</em>, and <em>travel</em> but don&#8217;t contain any branded keywords <em>and</em> have a search volume of at least 500 searches/month.</p>
<p><strong>Note:<em> </em></strong>All I did to get the =*flight,* =*hotel,* and =*travel* to show up as text instead of a formula was put an apostrophe in front of the = sign. <em>Don&#8217;t</em> follow the <a href="http://office.microsoft.com/en-us/excel-help/filter-by-using-advanced-criteria-HP005200178.aspx" target="_blank">instructions on the Microsoft site</a>. They make it unnecessarily complicated, and I could never get it straight. They say to enter =&#8221;=*flight*.&#8221; Crazy.</p>
<p>Just this week, as I was preparing this post, I tested using just the apostrophe, and it worked perfectly. If there&#8217;s a more convoluted way to do something, Microsoft will find it.</p>
<p><em><strong>Range:</strong> </em>If you want to only see a dataset that falls between a particular range, you would indicate that this way:</p>
<p><a href="http://searchengineland.com/figz/wp-content/seloads/2012/12/range-criteria.png"><img class="aligncenter size-full wp-image-143732" src="http://searchengineland.com/figz/wp-content/seloads/2012/12/range-criteria.png" alt="Excel advanced filter range" width="191" height="52" /></a></p>
<p>This filter captures just keywords that garner between 2,000 and 10,000 searches/month.</p>
<p><strong><em>Formula:</em></strong> This is what won me about advanced filters. You can actually filter using a formula!</p>
<p><a href="http://searchengineland.com/figz/wp-content/seloads/2012/12/filter-formula.png"><img class="aligncenter size-full wp-image-143734" src="http://searchengineland.com/figz/wp-content/seloads/2012/12/filter-formula.png" alt="Excel advanced filters with formula" width="87" height="44" /></a></p>
<p>This formula grabs just the keywords that didn&#8217;t move in ranking.</p>
<p>A couple other important notes about using a formula:</p>
<ul>
<li>The formula has to resolve to True or False. It can&#8217;t return a value</li>
<li>Don&#8217;t include a heading with a formula; just select an empty cell above your formula</li>
<li>Reference the first cell in your dataset (just below your heading)</li>
<li>Only use relative cell references, e.g., c4 as opposed to $C$4, which locks your reference</li>
</ul>
<h2>Putting It All Together</h2>
<p>Here are the steps you&#8217;ll take to filter your data:</p>
<p><strong>Step 1: </strong>As mentioned earlier, click any cell inside your dataset, then go to Data &gt; Sort &amp; Filter &gt; Advanced (Mac: Data &gt; Filter &gt; Advanced Filter). This will open the Advanced Filter menu. I&#8217;ll use a screenshot from my Mac copy, but all of the options are identical in the PC version. Shockerz.</p>
<p><a href="http://searchengineland.com/figz/wp-content/seloads/2012/12/advanced-filter-menu.png"><img class="aligncenter size-full wp-image-143735" src="http://searchengineland.com/figz/wp-content/seloads/2012/12/advanced-filter-menu.png" alt="Advanced Filter menu in Excel" width="260" height="295" /></a>
<strong></strong></p>
<p><strong>Step 2: </strong>Decide if you want to filter the data in place or copy to another location. I usually copy to a new location to keep my original dataset unsullied, but to each his own.</p>
<p><strong>Step 3: </strong>For the List Range, by default, Excel selects the entire dataset. You can change that and just select the columns you want. Alternatively, you can type just the headings you want below your criteria and select those cells in the Copy To field, and Excel will only return those columns. I include an example in the Excel workbook you can download, with a green text box with a full explanation.</p>
<p><strong>Step 4: </strong>For the Criteria Range, simply click inside the field and select the cells with your criteria. If you want to collapse the menu, just click on range selector to the right of the field and select the cells you want. But you don&#8217;t have to collapse the menu to select the cells you need.</p>
<p><strong>Step 5: </strong>If you&#8217;ve selected Copy to another location at the top of the menu, you can use this field to determine where you want to paste your filtered dataset. You can either choose a single cell, which will become the top-left cell in your dataset, or select pre-typed headings to restrict which columns are copied over.</p>
<p><strong>Step 6: </strong>Decide if you just want unique records. Sadly, this is all most people use this amazing filter for — myself included — up until a couple months ago!</p>
<p><strong>Step 7: </strong>Click OK, and go retrieve your data.</p>
<p><strong>Step 8: </strong>If you filtered your data in place, you can clear your filter, but only if you&#8217;re on a PC. It&#8217;s due north of the Advanced option. Mac offers this option, but it&#8217;s broken &#8230; which is another good reason to copy to a new location. If you want to clear the filter, you need to press Command-Z to undo or click a heading cell and choose Filter.</p>
<h2>Tons Of Examples</h2>
<p>Below are snapshots of the examples I include in the download.</p>
<table width="610" border="0" cellspacing="6" cellpadding="10">
<tbody>
<tr valign="top">
<td><strong>CRITERIA</strong></td>
<td><strong>SCREENSHOT</strong></td>
<td><strong>EXPLANATION</strong></td>
</tr>
<tr valign="top">
<td>non-branded keywords</td>
<td><a href="http://www.screencast.com/t/51y6GcYad" target="_blank">link</a></td>
<td> &lt;&gt; means does not contain</td>
</tr>
<tr valign="top">
<td>keywords ranking on the first page of Google</td>
<td><a href="http://www.screencast.com/t/1HAYqfZFoUA" target="_blank">link</a></td>
<td>Keyword and Position headings were typed ahead of time to restrict the columns that got copied over</td>
</tr>
<tr valign="top">
<td>keywords with search volumes between 2,000 and 10,000</td>
<td><a href="http://www.screencast.com/t/0W37e5LE" target="_blank">link</a></td>
<td>to get a range, just copy the heading twice and put your lower and upper range in each cell below</td>
</tr>
<tr valign="top">
<td>keywords that garner at least 500 searches/month and contain <em>flight</em>, <em>hotel</em>, or <em>travel</em> but exclude branded keywords</td>
<td><a href="http://www.screencast.com/t/fsG4eJu0FaIy" target="_blank">link</a></td>
<td>if you look inside one of the flight, hotel, or travel cells you&#8217;ll see a hyphen in front of the =</td>
</tr>
<tr valign="top">
<td>keywords that get at least 500 searches/month and point to the hipmunk.com blog</td>
<td><a href="http://www.screencast.com/t/4Mb0bTFY" target="_blank">link</a></td>
<td>just like the example directly above, an apostrophe was added to convert the formula to text (shown in screenshot)</td>
</tr>
<tr valign="top">
<td>keywords that are in the top three positions OR get more than 1,000 searches/month</td>
<td><a href="http://www.screencast.com/t/SZ8NrBqGOPuJ" target="_blank">link</a></td>
<td>it&#8217;s okay to have blank cells in the Criteria Range if it&#8217;s an OR criteria</td>
</tr>
<tr valign="top">
<td>keywords that contain at least one character before the keyword <em>search</em></td>
<td><a href="http://www.screencast.com/t/0AzMscEIzW" target="_blank">link</a></td>
<td>the combination of ?* requires at least one character but could contain more (equivalent to .+ in regex)</td>
</tr>
<tr valign="top">
<td>keywords that didn&#8217;t move in ranking</td>
<td><a href="http://www.screencast.com/t/z5Gpp32TOC" target="_blank">link</a></td>
<td>you must leave the heading cell above the formula blank AND select it in the Criteria Range</td>
</tr>
<tr valign="top">
<td>keywords that moved up in ranking</td>
<td><a href="http://www.screencast.com/t/IGZnLV2xM1T" target="_blank">link</a></td>
<td>self-explanatory</td>
</tr>
<tr valign="top">
<td>keywords that dropped 3 or more rankings</td>
<td><a href="http://www.screencast.com/t/CSg7zuKe" target="_blank">link</a></td>
<td>when I created the filter I was getting a lot of false positives because SEMRush assigns non-ranking keywords a 0, so I added a condition that the previous rank couldn&#8217;t = 0 and joined the two conditions with an AND function</td>
</tr>
<tr valign="top">
<td>get the top 10 keywords by search volume</td>
<td><a href="http://www.screencast.com/t/zYEpik9TdW8" target="_blank">link</a></td>
<td>this says, &#8220;give me the top 10 most searched keywords&#8221; &#8211; as indicated by the LARGE function</td>
</tr>
</tbody>
</table>
<h2>Final Tips</h2>
<p>There are a few gotchas with advanced filters. As long as you&#8217;re aware of them, you should avoid unpleasant surprises.</p>
<ul>
<li>If you accidentally include blank cells at the bottom of your criteria range, you will cancel out your criteria because Excel treats blank cells as wildcards that include everything.</li>
<li>If you want to copy your range to a new worksheet, you need to start the process on the new sheet and just reference the original dataset. Excel won&#8217;t let you start on the sheet where your dataset is and select a new worksheet for the Copy To range.</li>
<li>If you filter your data in place, you can&#8217;t have more than one table on a worksheet with advanced filters applied. When you apply filters to the second one, you&#8217;ll lose the filters on your original table.</li>
<li>As mentioned in the post, Clear is broken in Excel 2011 for Mac — at least for me. Let me know in the comments if it works for you! You&#8217;ll have to use Command-Z to clear the filter or select the heading and choose Filter. Ironically, this causes Excel to short circuit, and it drops your advanced filter.</li>
<li>If you have a list of values you need to filter out of your dataset (like I did just last week), I recommend first concatenating your list with &lt;&gt; (<a href="http://www.mrexcel.com/articles/join-excel-cell-values.php" target="_blank">learn how</a>), then using Copy &gt; Paste Special &gt; Transpose to get your list running horizontally across your sheet.</li>
</ul>
<h2>Idea For Advanced Excel Users</h2>
<p>If you wanted a dynamic filter, you could create drop-down menus with data validation (learn how for <a href="http://office.microsoft.com/en-us/excel-help/apply-data-validation-to-cells-HP010342173.aspx" target="_blank">2010</a> and <a href="http://office.microsoft.com/en-us/mac-excel-help/apply-data-validation-to-cells-HA102927464.aspx?CTT=1" target="_blank">2011</a>), and use those values to generate your filters. You&#8217;ll still have to run the filter; it won&#8217;t run automatically when you select a new option.</p>
<p>However, you could create a simple macro to run the filter (<a href="http://office.microsoft.com/en-us/excel-help/save-time-by-creating-and-running-macros-in-excel-2010-RZ102337714.aspx?CTT=1" target="_blank">2010</a>/<a href="http://office.microsoft.com/en-us/mac-excel-help/create-run-edit-or-delete-a-macro-HA102927318.aspx?CTT=1#BMxl" target="_blank">2011</a>) and assign it to a keyboard shortcut or image (<a href="http://office.microsoft.com/en-us/excel-help/run-a-macro-HP010342865.aspx?CTT=1#BMrunmacrohotspot" target="_blank">2010</a>/<a href="http://office.microsoft.com/en-us/mac-excel-help/add-a-button-and-assign-a-macro-to-it-HA102927446.aspx?CTT=1" target="_blank">2011</a>). Personally, I&#8217;d go with the image. I&#8217;m not a graphic designer, but here&#8217;s one you can use, if you&#8217;d like.</p>
<p><a href="http://searchengineland.com/figz/wp-content/seloads/2012/12/filter-macro.png"><img class="aligncenter size-full wp-image-143741" src="http://searchengineland.com/figz/wp-content/seloads/2012/12/filter-macro.png" alt="button for filter macro" width="100" height="50" /></a></p>
<p>If you take the time to play with advanced filters, I think you&#8217;ll fall in love with them the way I did because of their simplicity yet unparalleled power.</p>
]]></content:encoded>
			<wfw:commentRss>http://searchengineland.com/advanced-filters-excels-amazing-alternative-to-regex-143680/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How To Make Google Analytics Talk To Excel, In Plain English</title>
		<link>http://searchengineland.com/how-to-use-the-google-analytics-api-in-plain-english-and-a-free-plugin-139867</link>
		<comments>http://searchengineland.com/how-to-use-the-google-analytics-api-in-plain-english-and-a-free-plugin-139867#comments</comments>
		<pubDate>Fri, 30 Nov 2012 16:45:16 +0000</pubDate>
		<dc:creator>Annie Cushing</dc:creator>
				<category><![CDATA[Channel: Analytics]]></category>
		<category><![CDATA[Search & Analytics]]></category>
		<category><![CDATA[Google Analytics API]]></category>
		<category><![CDATA[Microsoft Excel]]></category>

		<guid isPermaLink="false">http://searchengineland.com/?p=139867</guid>
		<description><![CDATA[I&#8217;m spoiled now. I rarely go into the Google Analytics (GA) interface anymore. You know why? There are cool Excel plugins that will pull your data right into Excel. Of course, most of them are PC-swim only. Sorry, Mac users. I&#8217;m going to be testing out the only one I know of for Mac, but [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://searchengineland.com/figz/wp-content/seloads/2011/10/google-analytics-square-logo.gif"><img class="alignright size-full wp-image-98767" style="margin: 10px;" title="google-analytics-square-logo" src="http://searchengineland.com/figz/wp-content/seloads/2011/10/google-analytics-square-logo.gif" alt="" width="180" height="131" /></a>I&#8217;m spoiled now. I rarely go into the Google Analytics (GA) interface anymore. You know why? There are cool Excel plugins that will pull your data right into Excel. Of course, most of them are PC-swim only. Sorry, Mac users. I&#8217;m going to be testing out <a href="http://www.automateanalytics.com/2011/03/google-analytics-adwords-tool-for-mac.html" target="_blank">the only one I know of for Mac</a>, but I can&#8217;t verify how good it is.</p>
<p>(Disclaimer: I&#8217;m not in any way associated with any of the GA plugins for Excel or their manufacturers.)</p>
<p>Before jumping in, let&#8217;s talk about some basics that you will need to understand to navigate the API.</p>
<h2>Learning The Language Of The API</h2>
<p>The trickiest part about using the GA API is wrapping your brain around all the geek speak. Instead of using the same labels the interface uses (which are intuitive to non-bots), the API switches everything up. But here are some spy-grade deciphering tips that will help you avoid some of the traps that threw me when I was an API fledgling:</p>
<ul>
<li><strong>Path:</strong> You&#8217;ll see path this and path that all through the page dimensions. Just think of path = URI (which is the URL minus the domain, or hostname in analyticsesse). So, the referral source + referral path together make up the page that sent you traffic, e.g., yourfanboy.com/landing-page-that-links-to-you/.</li>
<li><strong>Visit Bounce Rate vs. Entrance Bounce Rate: </strong>This has to be the dumbest thing I&#8217;ve seen in the API. I think two developers must have flipped for which metric they&#8217;d go with, and the quarter landed on its edge. The two metrics are nearly identical, but after some testing I discovered the Web interface uses Visit Bounce Rate.</li>
<li><strong>Duplication Between Traffic Sources And Campaigns: </strong>Under Dimensions (more on that in a minute), you&#8217;ll see a number of different categories, two of which are Traffic Sources and Campaigns. They contain the same options: referral path, campaign, source, medium, keyword, and ad content. I totally over-thought this one the first couple times I used it, but then realized that when you choose from one group, the identical metric in the other will also be selected. Just smile and wave.</li>
<li><strong>Revenue: </strong>In the API,  revenue is referred to as Transaction Revenue. <strong> </strong></li>
</ul>
<h2>Excellent Analytics</h2>
<p>You can access the API using a pretty impressive free tool called <a href="http://excellentanalytics.com/" target="_blank">Excellent Analytics</a>. It&#8217;s an easy install. Just click the obnoxious purple Download button in the upper-right corner of the page and follow the prompts.</p>
<p>Once it&#8217;s installed, you&#8217;ll see an Excellent Analytics tab. With that you&#8217;re ready to dive in and start playing with the API. By the time you finish this post, there&#8217;s a good chance you won&#8217;t want to use the interface very much, especially if you&#8217;re responsible for more than one site.</p>
<p><strong>Step 1: </strong>Click the Account button and log in to GA.</p>
<p><strong>Step 2: </strong>Click the New Query button to get things going. You&#8217;ll see this window open:</p>
<p><div id="attachment_139878" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/11/excellent-analytics-welcome.png"><img class=" wp-image-139878" src="http://searchengineland.com/figz/wp-content/seloads/2012/11/excellent-analytics-welcome.png" alt="Excellent Analytics" width="600" height="481" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p><strong>Step 3: </strong>Set time span. The Time Span tab in the upper-left corner gives you plenty of preset time spans. For monthly reports I just leave it set to Last Month.<strong> </strong></p>
<p><strong>Step 4: </strong>Choose your dimension(s). The ones I use most are Landing Page (under Page Tracking) and the Time dimensions, like Month, Year, and Date. Dimensions populate the rows in reports, and metrics are the values. A tip I learned from <a href="http://www.marketmotive.com/about" target="_blank">John Marshall of MarketMotive</a> is if it can be measured with a number, it&#8217;s a metric. Here&#8217;s where they both appear in the UI:</p>
<p><div id="attachment_139881" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/11/dimensions-metrics.png"><img class=" wp-image-139881" src="http://searchengineland.com/figz/wp-content/seloads/2012/11/dimensions-metrics.png" alt="dimensions and metrics in Google Analytics" width="600" height="567" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p><em>Warning:</em> With v. 5 of Google Analytics released last year, the date format was seriously jacked up. But you can use <a href="http://www.annielytics.com/how-to-convert-gas-date-format-in-excel" target="_blank">this formula in Excel to convert them to a standard date format</a>.</p>
<p><strong>Step 5: </strong>Choose your metrics. My personal faves are Visits, Visit Bounce Rate, Goal Completions (individual goals and Completions All), and Transaction Revenue (for e-commerce sites).<strong></strong></p>
<p><div id="attachment_139891" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/11/metrics.png"><img class=" wp-image-139891" src="http://searchengineland.com/figz/wp-content/seloads/2012/11/metrics.png" alt="Metrics in Excellent Analytics for Google Analytics" width="600" height="481" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p><strong>Step 6 </strong>(Optional)<strong>: </strong>Apply filter(s). The most common filter I apply as an SEO is medium [Exact match] organic.<strong> </strong>Just as in the interface, you can use regular expressions (regex) for the operator. If regex scares the bejeezies out of you, I wrote a <a href="http://www.blueglass.com/blog/regular-expressions-dont-use-ga-without-them/" target="_blank">post that breaks regex down in the simplest, non-technical terms</a>. Every marketer should at least know how to use the pipe character, dot, plus, asterisk, caret, and backslash.</p>
<p><div id="attachment_139892" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/11/filters.png"><img class=" wp-image-139892" src="http://searchengineland.com/figz/wp-content/seloads/2012/11/filters.png" alt="filters in the Google Analytics API" width="600" height="481" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p>Other filters I&#8217;ve used recently are:</p>
<ul>
<li>Country [contains a match for the regular expression]** China because of <a href="http://searchengineland.com/china-blocks-google-search-gmail-google-maps-more-139339">China&#8217;s antic with blocking Google Analytics</a>,</li>
<li>Operating System [contains a match for the regular expression] ios <em>and</em> Operating System Version [contains a match for the regular expression] ^6\.+ <em>and</em> Browser [contains a match for the regular expression] safari because of <a href="http://searchengineland.com/ios-6-removes-all-google-search-referer-data-134560">Safari shifting to secure search in iOS 6</a>.</li>
<li>Visits [greater than] 5,000 to only show the top mediums in a client&#8217;s monthly report.</li>
</ul>
<p>** I&#8217;ve run into a bug in Excellent Analytics several times now, where exact match won&#8217;t catch something it should definitely match. But if I change it to regex match, it works. Hey, it&#8217;s free.</p>
<p><em>Very important:<strong> </strong></em>After you set up your filter, remember to hit the Add button. I can&#8217;t tell you how many times I&#8217;ve forgotten to hit this and have had to redo my filters. The filter will show up in the box below the Add and Remove buttons.</p>
<p><strong>Step 7 </strong>(Optional)<strong>: </strong>Apply an advanced segment. You can use any of the built-in segments GA offers or any you&#8217;ve created.</p>
<p><em>Pro Tip: </em>Advanced segments cause <a href="http://searchengineland.com/google-analytics-now-data-sampling-what%E2%80%99s-the-catch-113486">data sampling</a>, which is the bane of every marketer and analyst&#8217;s existence, only to be eclipsed by <a href="http://searchengineland.com/google-to-begin-encrypting-searches-outbound-clicks-by-default-97435">not provided</a>. I use filters over segments in the API to keep sampling to a minimum.</p>
<p><strong>Step 8</strong> (Optional)<strong>:</strong> Set the sort. You can use any of the metrics and dimensions you&#8217;ve set up to sort your data by. Then just click the Ascending button to toggle back and forth between ascending and descending. Just like you did with the filters, remember to click the Add button to add your sort.</p>
<p><em>Pro Tip: </em>This is preference on my part, but I always include Visits, even if I&#8217;m not emphasizing visits in my charts, because it helps me prioritize the most important mediums, landing pages, PPC keywords, etc.<strong></strong></p>
<p><strong>Step 9:</strong> Choose the profile(s) you want to run this report for. This is especially nice for agencies and in-house marketers who are responsible for multiple sites. If you choose more than one profile, Excellent Analytics will drop them into your spreadsheet side-by-side with an empty column in between them.</p>
<p><em>Pro Tip: </em>If I create reports for multiple clients all at once, I will copy and paste the data sets into different worksheets to keep client data separate.</p>
<p><strong>Step 10:</strong> Click the Execute button to run the query (worst name for a button).</p>
<p><strong>Step 11:</strong> If you want to go back and update a query later on, just select the the header the plugin creates and click the Update Query button.</p>
<p><div id="attachment_139894" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/11/update-query.png"><img class=" wp-image-139894" src="http://searchengineland.com/figz/wp-content/seloads/2012/11/update-query.png" alt="update query in Excellent Analytics" width="600" height="449" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<h2>Bugs</h2>
<p>There are a number of bugs with the plugin and the API I&#8217;ve run into consistently. Hopefully, this head&#8217;s up will save you some of the head banging I&#8217;ve experienced.</p>
<ul>
<li>The Dimension box (for lack of a better term) is super buggy. In a perfect world, you should be able to update any query in a spreadsheet at any time. In reality, I&#8217;ve had no problem updating metrics, filters, or sort; but, dimension is the quintessential drama queen. I don&#8217;t think it&#8217;s ever updated properly, but that could just be the bitterness talking. The telltale sign Excellent Analytics is having a rip-roaring temper tantrum is: if, after updating your dimensions, you go to click the down-facing arrow to the left of the Dimension button and it changes to an up-facing arrow but the box doesn&#8217;t collapse. It should, instead, look like the screen capture in Step 2, only with dimensions in the text box. If this happens, your only option is to click Cancel and create a new query.</li>
</ul>
<p><div id="attachment_139896" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/11/kiss-of-death.png"><img class=" wp-image-139896" src="http://searchengineland.com/figz/wp-content/seloads/2012/11/kiss-of-death.png" alt="freaking Excellent Analytics!" width="600" height="481" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<ul>
<li>If you add a new profile after setting up Excellent Analytics, it won&#8217;t show up in your list of profiles. I don&#8217;t know if there&#8217;s a fix for this. I&#8217;ve cheated and used another Google Analytics login to access it.</li>
<li>Both Dimension and Metrics have up- and down-facing arrows that allow you to reorder your dimensions and metrics. (You can see a screenshot under Step 2.) Sometimes the up arrows don&#8217;t work for me. They&#8217;ll look like they do, but then they export in their original order in the spreadsheet. Oddly enough, when that happens, I use the down arrow instead, and Excellent Analytics has always given me a pass. Go figure.</li>
<li>If you have multiple profiles in your account, whichever one is first alphabetically will always be added under Profiles. You will have to remove it, using the Remove button every time, if you&#8217;re not running a report for it. And there&#8217;s no way to set a more appropriate default account.</li>
<li>As mentioned in Step 6, sometimes the exact match operator under Filter doesn&#8217;t work properly. One time, it didn&#8217;t match <em>China</em> for country, and another time it didn&#8217;t match <em>safari</em>. I checked the Web interface both times to make sure I wasn&#8217;t fat-fingering them, and they were correct. However, when I changed the operator from exact match to regex match, it worked. So there ya go. YMMV.</li>
<li>The GA API screws up the formatting for percentages like bounce rate, exit rate, and conversion rate. They come in as whole numbers instead of fractions, so when you apply percentage formatting (under the Home tab), 48.12 will show up as 4812%. This isn&#8217;t an Excellent Analytics; but, it&#8217;s a bug in the GA API. The blame falls squarely on a Google engineer&#8217;s shoulders. Excel lets you fix that in its Paste Special dialog. Just enter the number 100 in a cell, copy it, select the affected cells, right-click, choose Paste Special, choose Divide, then click OK. You can <a href="http://www.annielytics.com/do-math-on-the-fly-in-paste-options/" target="_blank">see math on the fly in action here</a>.</li>
</ul>
<h2>Tips</h2>
<p>Having used this plugin for a while, I thought I&#8217;d also share some tips that will [hopefully] make your ramp-up time more efficient than mine was.</p>
<ul>
<li>The data is exported into Excel in a range with headers that&#8217;s perfect for <a href="http://searchengineland.com/how-to-manage-big-data-with-pivot-tables-126972">pivot tables</a> and charts. (Excel 2011 for Mac <em>still</em> doesn&#8217;t support pivot charts. Too much lame, too little time.) You can also create regular, static charts from the data, too, if you&#8217;re on a Mac, but it&#8217;s better to create even static charts from a pivot table because you can easily change the headings in pivot tables.</li>
<li>If you&#8217;re using Excellent Analytics for monthly reports, once you hit the first of the new month, you can update each data set by just clicking on the header, choosing Update Query, and clicking Execute. If you&#8217;ve built pivot tables and/or charts, you can choose Refresh All (under Data &gt; Connections), and all of your tables and charts should update to match the new month&#8217;s data. It&#8217;s pretty slick.</li>
<li>With the exception of dividing all rate values by 100, I don&#8217;t touch any of the raw data that&#8217;s exported from the API because when you pull in a new month&#8217;s data, all of your formatting will get wiped out. I wait to format the data in the pivot tables and/or charts. #voiceofexperience</li>
<li>When I&#8217;m finished with all my charts and tables, before sending a report upstream, I hide the ugly Raw Data tab. You can do this by right-clicking the tab at the bottom of the worksheet and choosing Hide from the contextual menu. I only want the sexy data to show.</li>
<li>If you are torn between learning to use the API with a plugin or Google Docs, I would highly recommend using a plugin. I learned to use the API in Google Docs, and it was <em>much</em> harder. The reason is that you can&#8217;t easily browse dimensions and segments. And, learning to use the nomenclature for applying filters and segments was not intuitive. Because you can&#8217;t merely choose options from a drop-down, you have to constantly refer to the developer help files, which were definitely not written for non-developers. Plus, you then have to copy and paste or export into Excel each time, barring a script that will automate the process for you.</li>
</ul>
<p>If you have any questions about how Excellent Analytics works, you can <a href="http://ampliofy.com/follow/">connect with Ampliofy</a> (the company that generously donates its time to maintain the plugin), <a href="http://twitter.com/anniecushing" target="_blank">hollah at me on Twitter</a>, or leave a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://searchengineland.com/how-to-use-the-google-analytics-api-in-plain-english-and-a-free-plugin-139867/feed</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>How To Use Macros You Find Online In 6 Easy Steps</title>
		<link>http://searchengineland.com/how-to-use-macros-you-find-online-in-6-easy-steps-137786</link>
		<comments>http://searchengineland.com/how-to-use-macros-you-find-online-in-6-easy-steps-137786#comments</comments>
		<pubDate>Fri, 02 Nov 2012 18:31:19 +0000</pubDate>
		<dc:creator>Annie Cushing</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Channel: Analytics]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[How To: Analytics]]></category>
		<category><![CDATA[Search & Analytics]]></category>
		<category><![CDATA[Microsoft Excel]]></category>

		<guid isPermaLink="false">http://searchengineland.com/?p=137786</guid>
		<description><![CDATA[Have you ever done a search to find out how to do something in Excel, just to find the search results littered with macro options? I used to avoid those results like the plague because I found macros (at least those beyond what I could create with the Macros Recorder) really intimidating. And I’m writing [...]]]></description>
				<content:encoded><![CDATA[<p>Have you ever done a search to find out how to do something in Excel, just to find the search results littered with macro options? I used to avoid those results like the plague because I found macros (at least those beyond what I could create with the <a href="http://office.microsoft.com/en-us/excel-help/create-or-delete-a-macro-HP010342374.aspx#BMrecordmacro" target="_blank">Macros Recorder</a>) really intimidating. And I’m writing this post because I&#8217;m assuming that I’m not the only one who has done that.<em> Amiright?</em></p>
<p>So I’m going to show you how to take a macro you find online or get from a trusted source and add it to your workbook and run it — on both a PC and Mac.</p>
<p>If you want to follow along, you can <a href="https://www.dropbox.com/s/8gudd1kp08u50vh/links.xlsx" target="_blank">download the Excel</a> file I’ll be using in the demo.</p>
<h2>Step 1: Enable Developer Tab</h2>
<p>To work with macros, you’ll need to enable the Developer tab, which is hidden from the Ribbon by default.</p>
<p style="padding-left: 30px;">To enable it on a PC, go to File &gt; Options, then choose Customize Ribbon &gt; Select Developer under Customize the Ribbon, and press OK.</p>
<p style="padding-left: 30px;">For Mac, go to Excel &gt; Preferences, then choose Ribbon &gt; Customize, Select Developer, and press OK.</p>
<p><em>Note: </em>To avoid redundancy, unless I state otherwise, we will be using the Developer tab, so I won’t include Developer in every set of instructions.</p>
<h2>Step 2: Open The Visual Basic Editor (VBE)</h2>
<p>Simply press Alt-F11 (Mac: Option-F11). Alternatively, choose Code &gt; Visual Basic for PC and Visual Basic &gt; Editor for Mac.</p>
<p><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/gui.jpg"><img class="aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/10/gui.jpg" alt="VBE interface" width="600" height="511" /></a></p>
<h2>Step 3: Find A Macro</h2>
<p>Find a macro from a trusted source that you want to run on a sheet of data. I’m going to use <a href="http://www.jerryleventer.com/excel-tutorial-how-to-convert-plain-text-links-into-hyperlinks/" target="_blank">this macro that converts URLs to hyperlinks</a>:</p>
<pre style="padding-left: 30px;">Public Sub Convert_To_Hyperlinks()</pre>
<pre style="padding-left: 30px;">    Dim Cell As Range</pre>
<pre style="padding-left: 30px;">    For Each Cell In Intersect(Selection, ActiveSheet.UsedRange)</pre>
<pre style="padding-left: 30px;">        If Cell &lt;&gt; "" Then</pre>
<pre style="padding-left: 30px;">            ActiveSheet.Hyperlinks.Add Cell, Cell.Value</pre>
<pre style="padding-left: 30px;">        End If</pre>
<pre style="padding-left: 30px;">    Next</pre>
<pre style="padding-left: 30px;">End Sub</pre>
<p>&nbsp;</p>
<p>One important thing to note is that the title of the macro is in the first line, after Sub, and is what you’ll look for when you go to run it. In this case the title is Convert_To_Hyperlinks.</p>
<h2>Step 4: Decide The Scope For Your Macro</h2>
<p>We’re just going to apply this macro to our workbook, but you could also make your macro global, if you wanted to always have it at your disposal, regardless of what workbook you’re working in. (This will make it global to whatever computer you&#8217;re working on, e.g., your laptop or your desktop.)</p>
<h2>Step 5: Insert The Macro</h2>
<p>To apply the macro to <a href="https://www.dropbox.com/s/8gudd1kp08u50vh/links.xlsx" target="_blank">the sample workbook</a>, right-click on VBAProject (links.xlsx), then choose Insert &gt; Module. Shockingly, this process is the same for both PC and Mac. Then paste the macro into the module and press Alt-F11 (Mac: Opt-F11) again to close out of the editor and get back to your workbook.</p>
<p><div id="attachment_137790" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/vba-process.jpg"><img class=" wp-image-137790" src="http://searchengineland.com/figz/wp-content/seloads/2012/10/vba-process.jpg" alt="Add a macro to a workbook" width="600" height="427" /></a><p class="wp-caption-text">Click for a larger image</p></div></p>
<p>&nbsp;</p>
<h2>Step 6: Run The Macro</h2>
<p>To run the macro, in this example, select the URLs you want to convert into hyperlinks, and select Macros under the Developer tab. You should see the name of the macro. Select it, then click the Run button. <em>Bada bing, bada bang, bada bada, boom!</em></p>
<h2>Side Notes</h2>
<p><em>Making the Macro Global: </em>If you want to have the macro available to any future workbooks you open from the machine you’re working on, right-click VBAProject (Personal Macro Workbook) instead of the links.xlsx file. Your macro will then be available for any workbook you want to create active hyperlinks in (without having to use the HYPERLINK formula). You can read more about this <a href="http://msdn.microsoft.com/en-us/library/office/gg597509.aspx" target="_blank">from the Microsoft site</a>.</p>
<p><strong>Caveat:</strong> For some strange reason, in Excel 2010 the PERSONAL.XLSB file doesn&#8217;t show up automatically like it used to in 2007. If you don&#8217;t see it when you open the VBE, the easiest way to create it is to create a macro with the <a href="http://office.microsoft.com/en-us/excel-help/create-or-delete-a-macro-HP010342374.aspx#BMrecordmacro" target="_blank">Macro Recorder</a> and choose to store it in Personal Macro Workbook . (I literally just selected a few cells for my lame sandwich macro.)</p>
<p>Then press Alt-F11 to reopen the VBE. You should see it appear under whatever workbooks you have open. Then you can right-click and choose Insert &gt; Module, as shown below.</p>
<p><a href="http://searchengineland.com/figz/wp-content/seloads/2012/11/personal.xlsb1.png"><img class="aligncenter size-full wp-image-138565" src="http://searchengineland.com/figz/wp-content/seloads/2012/11/personal.xlsb1.png" alt="creating personal.xlsb file in Excel" width="529" height="507" /></a></p>
<p>&nbsp;</p>
<p><em><strong>Deleting Macros:</strong> </em>If you want to delete a macro, click on Macros under the Developer tab, select the macro, and choose Delete. Alternatively, you can delete them by opening the VBE and deleting it from the Modules folder wherever you created the macro. (Excel creates this Modules folder automatically when the macro is created).</p>
<p>To delete it, right-click on it and choose Remove Module. Microsoft will give you the option to export it. If I’m deleting a macro, I don’t ever export it, but a case could be made for doing that, I suppose.</p>
<p><em><strong>Assigning Macros:</strong> </em>If you want to use the macro again and again, one alternative to clicking on Macros every time is to assign a macro to a shape or image. This turns the image into a clickable object that will run whatever macro you assign to it. And it couldn&#8217;t be easier to assign a macro. Just right-click on the image and choose Assign Macros. I did this once with a project management spreadsheet I created. When I&#8217;d click the refresh graphic I copied into the worksheet, the macro I created would run and move completed tasks to the bottom of the sheet.</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/assign-macro-to-image.jpg"><img class="aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/10/assign-macro-to-image.jpg" alt="assign a macro to an image in Excel" width="456" height="337" /></a></p>
<p><strong><em>Making a Macro Persistent:</em> </strong>In the example I&#8217;ve been working from in this post, once you run the macro, you really don’t need it anymore. It&#8217;s your classic one-and-you&#8217;re -done kind of macro. You can save the file with the active links as a .xlsx file as normal.</p>
<p>However, if you want to use the macro whenever the workbook is open (let’s say you attach it to a graphic), you won’t be able to save it as a .xlsx file. Instead, choose File &gt; Save As and select Excel Macro-Enabled Workbook (.xlsm) from the Format drop-down. When you open the file later though you&#8217;ll have to explicitly enable the macro or save your workbook to a <a href="http://sharepointmike.wordpress.com/2012/02/11/programming-in-microsoft-excel-macros-part-3/" target="_blank">safe folder</a>.</p>
<p>Hopefully these tips will empower you to start using macros you find. They can reduce laborious tasks to seconds. Just make sure you trust the source you find the macro from because people with nefarious intentions also create macros that do horrible things to your computer.</p>
<p>As always, if you have any questions, feel free to ask them in the comments below or reach out to me <a href="http://twitter.com/anniecushing" target="_blank">on Twitter</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://searchengineland.com/how-to-use-macros-you-find-online-in-6-easy-steps-137786/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>10 Simple Tips To Make Your Excel Charts Sexier</title>
		<link>http://searchengineland.com/10-tips-to-make-your-excel-charts-sexier-135407</link>
		<comments>http://searchengineland.com/10-tips-to-make-your-excel-charts-sexier-135407#comments</comments>
		<pubDate>Fri, 12 Oct 2012 16:38:49 +0000</pubDate>
		<dc:creator>Annie Cushing</dc:creator>
				<category><![CDATA[Channel: Analytics]]></category>
		<category><![CDATA[Search & Analytics]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Microsoft Excel]]></category>

		<guid isPermaLink="false">http://searchengineland.com/?p=135407</guid>
		<description><![CDATA[Having covered all the basics of how to make tabular data tell a story using custom cell formatting and conditional formatting for both static tables and pivot tables, we&#8217;re now going to jump into the really fun stuff: charting data out in Excel. I’m not going to cover the basics of creating charts in this [...]]]></description>
				<content:encoded><![CDATA[<p>Having covered all the basics of how to make tabular data tell a story using <a href="http://searchengineland.com/easy-to-advanced-uses-of-cell-formatting-in-excel-130203">custom cell formatting</a> and <a href="http://searchengineland.com/how-to-go-picasso-on-your-data-with-conditional-formatting-132627">conditional formatting</a> for both <a href="http://searchengineland.com/a-marketers-guide-to-table-formatting-in-excel-124944">static tables</a> and <a href="http://searchengineland.com/how-to-manage-big-data-with-pivot-tables-126972">pivot tables,</a> we&#8217;re now going to jump into the really fun stuff: charting data out in Excel.</p>
<p>I’m not going to cover the basics of creating charts in this post. If you want a primer, you can find <a href="http://mac2.microsoft.com/help/office/14/en-us/excel/item/895bae98-48d3-4646-8d52-4b2f73eefdf7" target="_blank">this resource from Microsoft for the PC</a> and <a href="http://office.microsoft.com/en-us/excel-help/create-a-chart-from-start-to-finish-HP010342356.aspx" target="_blank">this one for the Mac</a>.</p>
<h2>1.  Remove Noise From Your Chart’s Background</h2>
<p>When you’re presenting data, it&#8217;s very important to reduce the noise and hone in on actionable signals. If you have read just about anything I’ve written about Excel, you’ll know I loathe gridlines in tables. And yet, until I viewed <a href="http://www.slideshare.net/wrttnwrd/data-that-persuades-ses-sf-2012" target="_blank">this presentation by Ian Lurie</a>, I was blissfully oblivious to gridlines in charts. But then, they cause my eye to stumble, too. And that&#8217;s the problem with noise: it distracts you from the essential stuff.</p>
<p>Gridlines are super easy to get rid of. First, remember the formatting trick I mention in all of my posts: if you want to format anything in Excel (in a chart or table) just select it and press Ctrl-1 (Mac: Command-1) to open the formatting dialog specific to that item.</p>
<p>In this case, you’ll just want to select one of the gridlines in your chart (anyone but the top one, which selects the entire plot area) and then open the formatting options. Finally, select Line Color &gt; No line (Mac: Line &gt; Solid &gt; Color: No Line).</p>
<p><div id="attachment_135561" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/gridlines.png"><img class="wp-image-135561 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/gridlines.png" alt="gridlines in Excel charts" width="600" height="503" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<h2>2.  Move The Legend</h2>
<p>I don’t know why Excel positions the legend to the right of a chart by default. In most cases, it’s terribly awkward. I prefer to move the legend to the top or bottom of a chart. I tend to put the legend above more than below, but I&#8217;ll put it below if there&#8217;s too much going on at the top, or sometimes, with a pie chart.</p>
<p>To move it, just pull up the formatting option (you should know how by now!) and choose the position from Legend Options category, which is called Placement on a Mac.</p>
<p>With the legend still selected, I usually bump the font up to 12 as well. You don’t have to select the text, just the box. You be the judge which looks better&#8230;</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/legend-placement-comparison.jpg"><img class="size-full wp-image-135593 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/10/legend-placement-comparison.jpg" alt="legend placdement in Excel charts" width="470" height="837" /></a></p>
<h2>3.  Delete Legends With One Data Series</h2>
<p>If you’re only showing one metric on a chart, there’s no reason to keep the legend that Excel throws in there. Just make sure you include the metric you’re showing in the chart title.</p>
<p><div id="attachment_135562" class="wp-caption aligncenter" style="width: 601px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/legend21.png"><img class="size-full wp-image-135562 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/legend21.png" alt="legends in Excel charts" width="591" height="331" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<h2>4.  Add A Descriptive Title</h2>
<p>A common mistake I see with marketers’ charts is they’re oftentimes missing a title. When you’re the one pulling together the data, everything you’re trying to communicate is perfectly clear. But for others who have to try to figure out what you’re trying to communicate, it’s not always so apparent.</p>
<p>So, in the case of the chart below, it would be insufficient to just use &#8220;Impressions&#8221; as the chart title:</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/title.png"><img class="wp-image-135416 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/10/title.png" alt="Excel titles" width="599" height="225" /></a></p>
<p>To add a chart title, with your chart selected, choose Chart Tools &gt; Layout &gt; Labels &gt; Chart Title. On the Mac, you&#8217;ll choose Charts &gt; Chart Layout &gt; Labels &gt; Chart Title. I always choose Above Chart (Mac: Chart at Top).</p>
<h2>5.  Sort Your Data Before Charting</h2>
<p>This one is actually a big deal to me. Charts that are spawned from unsorted data are, in my opinion, much more difficult to read and interpret.</p>
<p>If you&#8217;re showing something sequential, like visits per day over a period of a month or revenue per month over a period of a year, then ordering your data chronologically makes the most sense. In the absence of a dominant sort pattern like that, I&#8217;m of the opinion that data should be ordered and presented in descending order to put the most significant data first.</p>
<p>If you look at the data in the chart immediately below, I think you&#8217;ll agree that your eyes have to dart back and forth to sort the channels by revenue.</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/sort-unordered.jpg"><img class="size-full wp-image-135612 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/10/sort-unordered.jpg" alt="data sorted " width="538" height="334" /></a></p>
<p>&nbsp;</p>
<p>However, in the chart below, which is sorted in descending order, it&#8217;s easy to sort and interpret because it&#8217;s basically done for you.</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/sort-ordered.jpg"><img class="size-full wp-image-135613 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/10/sort-ordered.jpg" alt="sorted data in Excel" width="536" height="334" /></a></p>
<p>This is another benefit to formatting your data as a table before charting it out — the ability to sort is built into the filters baked into every table heading. And if you already created the chart from the table, all is not lost. Once you sort your data in the table, your chart will update automatically.</p>
<h2>6.  Don’t Make People Head Tilt</h2>
<p>Have you ever seen a chart that does this?</p>
<p><div id="attachment_135427" class="wp-caption aligncenter" style="width: 609px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/tilt01.png"><img class="wp-image-135427 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/tilt01.png" alt="axis labels in Excel" width="599" height="368" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p>Or <em>worse</em>&#8230; this?</p>
<p><div id="attachment_135434" class="wp-caption aligncenter" style="width: 609px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/tilt02.png"><img class="wp-image-135434 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/tilt02.png" alt="axis titles in Excel" width="599" height="364" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p>This can make data interpretation laborious and vulnerable to misinterpretation. If you have longer labels, it’s better to expand your chart enough to make room for the axis labels to be displayed horizontally or (even better) use a bar chart instead of a column chart, like so:</p>
<p><div id="attachment_135419" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/tilt03.png"><img class="wp-image-135419 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/tilt03.png" alt="axis formatting in Excel" width="600" height="368" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p><strong><em>Tip:</em></strong> With bar charts, if you want the larger values to be at the top of the chart, like you see in the chart above, you need to arrange the table data for that column (in this case, the Impressions column from my Google Webmaster Tools export) in <em>ascending order</em> instead of descending order.</p>
<p>It&#8217;s counter-intuitive, in my opinion, but if you don&#8217;t, you&#8217;re going to have the most insignificant data at the top of your chart. And people naturally read charts from top to bottom, so I want to put the most important data at the top.</p>
<h2>7.  Clean Up Your Axes</h2>
<p>This chart below is a royal train wreck and has everything I hate most in chart axes.</p>
<p><div id="attachment_135442" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/chart-tips-01.png"><img class="wp-image-135442 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/chart-tips-01.png" alt="vertical axis" width="600" height="250" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p>Before doing anything to the axes, I’m going to remove the gridlines and the legend. I&#8217;ll focus on five common problematic formatting issues I see in chart axes.</p>
<p><strong>Missing Thousands Separators</strong></p>
<p>If you have data points that are greater than 999, you should include thousands separators. The best way to do this is to format the data in the table. If you do that, the chart will update automatically. Otherwise, you need to unlink it from the source in the Format Axis dialog.</p>
<p>To add thousands separators, select the entire column and click the button with what looks like a comma in the Home tab in the Number category. Excel always adds two decimal places, which you have to get rid of by clicking the Decrease Decimal icon, which is two spots to the right of the thousands separator.</p>
<p>Alternatively, you could get into the formatting dialog and modify the number formatting there.</p>
<p><strong>Cluttered Axes</strong></p>
<p>The vertical axis in the chart above is also cluttered and overkill. To rectify this, select the axis and open the formatting dialog. Under Axis Options (Mac: Scale) you can change the Major Unit setting. In the screenshot below, I changed the major unit from 20000 to 40000.</p>
<p>By all means, if you need more granular detail, adjust your settings appropriately.</p>
<p><div id="attachment_135420" class="wp-caption aligncenter" style="width: 609px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/chart-tips-02.png"><img class="wp-image-135420 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/chart-tips-02.png" alt="cleaning up axes in Excel" width="599" height="248" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<h2></h2>
<p><strong>Unnecessary Decimals</strong></p>
<p>Never include decimals in an axis, unless your maximum value is 1 (in other words, you’re only dealing with fractions). I see this most commonly done with currency, where you&#8217;ll see labels like $10,000.oo, $20,000.00, $30,000.00, etc. It&#8217;s extraneous and noisy.</p>
<p><strong>Decimals Instead Of Percentages</strong></p>
<p>If you’re trying to show percentages in the vertical axis, format them as a percent; don’t format the data as decimals. The less time people have to spend interpreting your data, the more compelling it will be. But, again, even with percentages, drop the decimals. In other words, don&#8217;t have labels like 10.00%, 20.00%, etc. Just use 10%, 20%, etc.</p>
<p><strong>Weird Zero Formatting</strong></p>
<p>One final nuisance is the presentation of the 0 at the bottom of the vertical axis as a hyphen. This is very common. You can read my post on <a href="http://searchengineland.com/easy-to-advanced-uses-of-cell-formatting-in-excel-130203" target="_blank">custom number formatting</a> to learn about how custom number formatting works. You might find some very surprising options, like the ability to add text to the formatting while still keeping the value of a number.</p>
<p>In this case, we just need to change the way 0 is formatted. To do this, select the column in the table where the data comes from, open the formatting dialog as usual, and select Number &gt; Category: Custom, find the hyphen, and replace it with a 0.</p>
<p><div id="attachment_135421" class="wp-caption aligncenter" style="width: 609px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/chart-tips-03.png"><img class="wp-image-135421 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/chart-tips-03.png" alt="cleaning up axes in Excel" width="599" height="369" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p>As a finishing touch, I gave the chart a better title, and here’s the final result:</p>
<p><div id="attachment_135422" class="wp-caption aligncenter" style="width: 609px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/chart-tips-04.png"><img class="wp-image-135422 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/chart-tips-04.png" alt="cleaning up axes in Excel" width="599" height="247" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<h2>8.  Explore Other Themes</h2>
<p>Excel’s chart formatting options are pretty impressive, but most people never leave Excel’s default &#8220;Office&#8221; theme.</p>
<p>There are 53 themes offered in the 2010 version for PC and 57 themes in the 2011 version for the Mac. And each theme comes with its own unique set of chart formats — 48 in all. That’s 2,544 built-in chart formatting options for 2010 and 2,736 for 2011. (Whooooahhhh. Double rainbowww&#8230;)</p>
<p>You can switch themes by going to Page Layout &gt; Themes &gt; Themes (Mac: Home &gt; Themes) and choose from the drop-down menu.</p>
<p>Some of them get a little cra-cra, like the Habitat theme (Mac only) that gives your charts a texture.</p>
<div>
<p><div id="attachment_135568" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/themes01.png"><img class="wp-image-135568 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/themes01.png" alt="templates in Excel" width="600" height="257" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
</div>
<p>But you should explore the different themes and try branching out.</p>
<h2>9.  Create Branded Charts</h2>
<p>You’re not limited to the 2,500+ themes Excel provides. If you want your data to be aligned with your brand, you could create a chart with your branded colors, then save that off as a template.</p>
<p>So, let’s say you doing marketing for Toys R Us (which I’m not affiliated with in any way), and you want to use a pie chart in a presentation with your branded colors. Excel 2010 (PC) will allow you to use RGB or HSL values, whereas Excel 2011 (Mac) will let you use RGB, CMYK, or HSB values.</p>
<p>(Since I wasn&#8217;t privy to those values, I used the Color Picker tool in the Web Developer Toolbar to identify the colors from the Toys R Us logo and then used a hex-to-RGB conversion tool to get the RGB values.)</p>
<p>Once you have the values you need, create a chart with whatever data you want to visualize.</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/templates01.png"><img class="aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/10/templates01.png" alt="charting in Excel" width="600" height="273" /></a></p>
<p>&nbsp;</p>
<p>Next, select a piece of the pie chart by clicking on the pie chart once and then on the individual piece. Then reformat it by using the paint bucket under Home &gt; Font — or pull up the formatting dialog.</p>
<p>Assuming you have RGB values, click the drop-down menu on the paint bucket, choose More Colors &gt; Custom &gt; Color Model: RGB (Mac: More Colors &gt; Color Sliders &gt; RGB Sliders). And do that for each piece of the pie.</p>
<p>Your chart may look something like this:</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/templates02.png"><img class="aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/10/templates02.png" alt="charting in Excel" width="600" height="358" /></a></p>
<p><strong>PC: </strong></p>
<p>To save it as a template on a PC, select the chart and navigate to Chart Tools &gt; Design &gt; Type &gt; Save as Template.</p>
<p>To create a new pie chart based on this template on a PC, simply click inside the data you want to chart (or select the data if it’s a partial data set), then choose Insert &gt; Charts &gt; Other Charts &gt; All Chart Types &gt; Templates (Mac: Charts &gt; Insert Chart &gt; Other &gt; Templates) and select the template you want to use.</p>
<p><strong>Mac:</strong></p>
<p>On a Mac, right-click anywhere on the chart and choose Save as Template. This will save your chart as a .crtx file in a chart templates folder.</p>
<h2>10.  Make Your Chart Title Dynamic</h2>
<p>Did you know you can make your chart title update by linking it to a cell in your workbook? It’s a bit of a hack, but it’s a cool option that will make you look like a genius to your boss/client/mom.</p>
<p>Dynamic titles are best suited for data that update on a regular basis, like daily numbers entered manually or pulled into Excel from a database.</p>
<p>What I’m going to demonstrate is a PPC revenue report that updates daily. The title will show the running total for the month up to that day. Here are the steps you’ll need to take:</p>
<p><strong>Step 1: </strong></p>
<p><strong></strong>Make sure your data uses proper number formatting and that it&#8217;s formatted as a table, which is Excel&#8217;s version of a simple database. The reason you want to format as a table is if you build a chart from a table, your chart will update automatically as you add new rows to the table.</p>
<p>The table also automatically expands to absorb any new data you add to the table when you just enter something in a cell immediately below or to the right of a formatted table.</p>
<p><strong>Step 2: </strong></p>
<p><strong></strong>In a cell just south of row 31 (to accommodate a full month) enter a SUM formula that captures all 31 rows — even though some will be blank if you’re only partway through the month.</p>
<p><div id="attachment_135444" class="wp-caption aligncenter" style="width: 358px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/step02.png"><img class="size-full wp-image-135444 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/step02.png" alt="charting in Excel" width="348" height="539" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p><strong>Step 3:</strong></p>
<p><strong></strong>If we were using both columns of our table as a data series, we could just click any cell inside the table and choose Insert &gt; Charts &gt; Column (Mac: Charts &gt; Column).</p>
<p>But in the table below, we would just select the header and cells that contain revenue data. This is because we don’t want the days of the week to become a data series. You have lots of formatting options under Chart Tools &gt; Design &gt; Chart Styles (Mac: Charts &gt; Chart Styles).</p>
<p><div id="attachment_135565" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/step03.jpg"><img class="wp-image-135565 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/step03.jpg" alt="charting in Excel" width="600" height="538" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p><strong>Step 4: </strong></p>
<p><strong></strong>Add a title to your chart that indicates you have a running total. I used: &#8220;PPC Revenue for Oct:&#8221; for my title. See tip #4 above for directions.</p>
<p><strong>Step 5: </strong></p>
<p><strong></strong>Since the default fill for the chart area is white and the chart is generally displayed on a white sheet (which I recommend preserving), we’re going to change the Fill to No Fill without anyone being the wiser.</p>
<p>To do this, select the chart and press Ctrl/Command-1, then choose Fill: No Fill (Mac: Fill &gt; Solid &gt; Color &gt; No Fill). You will definitely need to turn off gridlines to pull this off, but you should do that anyway. You can find this toggle under View &gt; Show (Mac: Layout &gt; View).</p>
<p><strong>Step 6: </strong></p>
<p><strong></strong>Select a cell above the chart just to the right of the title and reference the cell with the total. You reference a cell by simply putting an = sign in the cell and then typing in the cell reference or selecting it with your mouse. Excel will highlight the cell you&#8217;re referencing with a light blue as a visual aid. Then, format the cell with whatever formatting you used for your title.</p>
<p><div id="attachment_135451" class="wp-caption aligncenter" style="width: 609px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/step06.png"><img class="wp-image-135451 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/step06.png" alt="charting in Excel" width="599" height="371" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p><strong>Step 7: </strong></p>
<p><strong></strong>Now, all you have to do is move the chart up and align it with the title. It took some finagling to get everything lined up just right. But then, I just removed the legend since I just have one data series, and voilà! A dynamic title.</p>
<p><div id="attachment_135490" class="wp-caption aligncenter" style="width: 596px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/step07.png"><img class="size-full wp-image-135490 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/step07.png" alt="charting in Excel" width="586" height="328" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p><strong>Step 8: </strong></p>
<p><strong></strong>Now, when you add a new row to the table, the chart and title update dynamically. Slick, right?</p>
<p><div id="attachment_135569" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/10/step08.png"><img class="wp-image-135569 " src="http://searchengineland.com/figz/wp-content/seloads/2012/10/step08.png" alt="create a custom chart in Excel" width="600" height="340" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>Clearly, charts provide dimension that&#8217;s much harder to get with a table. The good news is you can use any combination of these techniques to make your data sexier and more actionable in just a few minutes, once you get the hang of it.</p>
<p>If you have any questions about Excel or topic requests, feel free to reach out to me using the comments or contact form below or on Twitter: <a href="https://twitter.com/anniecushing" target="_blank">@AnnieCushing</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://searchengineland.com/10-tips-to-make-your-excel-charts-sexier-135407/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>How To Go Picasso On Your Data With Conditional Formatting</title>
		<link>http://searchengineland.com/how-to-go-picasso-on-your-data-with-conditional-formatting-132627</link>
		<comments>http://searchengineland.com/how-to-go-picasso-on-your-data-with-conditional-formatting-132627#comments</comments>
		<pubDate>Fri, 14 Sep 2012 16:53:23 +0000</pubDate>
		<dc:creator>Annie Cushing</dc:creator>
				<category><![CDATA[Channel: Analytics]]></category>
		<category><![CDATA[Search & Analytics]]></category>
		<category><![CDATA[Microsoft Excel]]></category>

		<guid isPermaLink="false">http://searchengineland.com/?p=132627</guid>
		<description><![CDATA[Anyone who knows me knows I’m not a fan of tabular data (data in tables). If you want your data to be persuasive, it needs to be visual. However, when you’re dealing with large data sets that’s not always feasible. For example, when I’m dealing with data from webmaster tools or Screaming Frog, there’s just [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://searchengineland.com/figz/wp-content/seloads/2012/09/young-painters.jpg"><img class="size-full wp-image-132676 alignright" style="margin: 10px;" src="http://searchengineland.com/figz/wp-content/seloads/2012/09/young-painters.jpg" alt="conditional formatting in Excel" width="250" height="182" /></a>Anyone who knows me knows I’m not a fan of tabular data (data in tables). If you want your data to be persuasive, it needs to be visual.</p>
<p>However, when you’re dealing with large data sets that’s not always feasible. For example, when I’m dealing with data from webmaster tools or Screaming Frog, there’s just too much data to analyze with charts.</p>
<p>That’s where conditional formatting comes in handy. Unlike <a href="http://searchengineland.com/easy-to-advanced-uses-of-cell-formatting-in-excel-130203">custom cell formatting</a>, which is static, conditional formatting is based on — you guessed it — conditions that you set.</p>
<p>You can find the Conditional Formatting options on the Home Tab under the Styles group (Mac: Home &gt; Format). I can’t possibly cover all the great uses of conditional formatting, but I hope to at least whet your appetite and make you aware of what they can do. Then you can take these tips and run with them.</p>
<p>That said, let’s jump in.</p>
<h2>Data Bars</h2>
<p>The easiest way to get started with conditional formatting is with data bars. You can find them under Conditional Formatting &gt; Data Bars.</p>
<p>To activate them, just click the column you want to apply them to, then choose the data bar color you want from the flyout menu.</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/09/data-bars.png"><img class="size-full wp-image-132629 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/09/data-bars.png" alt="data bars in Excel" width="504" height="500" /></a></p>
<p>&nbsp;</p>
<p>Excel allows you to customize your data bars by clicking More Rules&#8230; at the bottom of the flyout menu.</p>
<p>For example, if you have outliers in your data that are throwing the data bars off, you can throw them out by adjusting the Minimum and Maximum values.</p>
<p>You can also opt to only show data bars, toggle between solid bars and gradient fills, change the color, format how you want negative numbers to look, set the border style, and change the bar direction from the New Formatting Rule dialog, as seen below.</p>
<p><div id="attachment_132631" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/09/data-bar-menu.png"><img class="wp-image-132631 " src="http://searchengineland.com/figz/wp-content/seloads/2012/09/data-bar-menu.png" alt="data bar menu in Excel" width="600" height="413" /></a><p class="wp-caption-text">Click for larger image</p></div></p>
<p>&nbsp;</p>
<h2>Icon Sets</h2>
<p>Another popular conditional formatting option is icon sets (Conditional Formatting &gt; Icon Sets). Their default options are pretty lame, but I like to customize them to show things like keywords that are ranking on page 1, page 2, and page 3 and beyond.</p>
<p>In the example below, I used the 3 Traffic Lights (Rimmed). But since I know Excel is going to break my data up by top 1/3, middle 1/3, and lower 1/3 — instead of by 1-10, 11-20, and 21+ — we&#8217;ll choose More Rules at the bottom of the flyout menu instead of clicking on the traffic lights.</p>
<p>Here are the steps to setting up the formatting options:</p>
<p style="padding-left: 30px;"><strong>Step 1:</strong> Change the Icon Style to the traffic lights.</p>
<p style="padding-left: 30px;"><strong>Step 2:</strong> Click the Reverse Icon Order option (since in the case of rankings lower numbers are preferable and should be visualized with green).</p>
<p style="padding-left: 30px;"><strong>Step 3:</strong> Change Type to Number for both green and yellow. (It&#8217;s easy to forget to the do this, which is why I do it before touching the values. If you forget you&#8217;ll just have to take a couple extra steps later.)</p>
<p style="padding-left: 30px;"><strong>Step 4:</strong> Set the red icon&#8217;s Value to &gt;= 21 (or &gt; 20) since this marks the top of page 3.</p>
<p style="padding-left: 30px;"><strong>Step 5:</strong> Set the yellow icon&#8217;s Value to &gt;=11 (or &gt; 10).</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/09/icon-set-setup.png"><img class="size-full wp-image-132646 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/09/icon-set-setup.png" alt="icon sets in Excel" width="577" height="877" /></a></p>
<p>&nbsp;</p>
<p>Here&#8217;s how it looks in your data:</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/09/icon-sets-ex1.png"><img class="size-full wp-image-132639 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/09/icon-sets-ex1.png" alt="icon set example in Excel" width="433" height="532" /></a></p>
<p>&nbsp;</p>
<p>If you&#8217;ve used <a title="A Marketer’s Guide To Table Formatting In Excel" href="http://searchengineland.com/a-marketers-guide-to-table-formatting-in-excel-124944">table formatting</a> you can sort your data by the conditional formatting using the filter drop-down. Just click the down-facing arrow in the column heading you want to sort your table by and then choose Sort by Color &gt; Custom Sort (Mac: Sort &gt; By Color &gt; Cell Icon &gt; Custom Sort).</p>
<p>Here&#8217;s how you would set up a sort that puts all of Google&#8217;s page 1 keywords on top, followed by page 2, then page 3 and beyond.</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/09/icon-set-sort.png"><img class="wp-image-132640 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/09/icon-set-sort.png" alt="ordering data by icon sets" width="600" height="674" /></a></p>
<p>&nbsp;</p>
<p><strong>Pro Tip: </strong>You&#8217;re not limited to the icon set combinations that come baked into Excel. For example, let&#8217;s say you want a green arrow for values greater than 1% and a red arrow for values less than -1%, but you don&#8217;t want the yellow arrow for values between -1% and 1%.</p>
<p>You can choose the icon set you want — in this case, the Three Arrows (Colored) option — but then choose No Cell Icon from the drop-down menu in lieu of the yellow arrow.</p>
<p>The Icon Style menu will update to say Custom instead of showing the three arrows. Theoretically, you could mix and match icons, but I wouldn&#8217;t recommend getting too off the chain with mixing icon types. It&#8217;s the data equivalent of littering your front lawn with garden gnomes.</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/09/custom-icons.png"><img class="size-full wp-image-133149 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/09/custom-icons.png" alt="custom icon sets in Excel" width="548" height="569" /></a></p>
<p>&nbsp;</p>
<h2>Highlight Cell Rules</h2>
<p>Excel gives you a number of options to format your data based on the contents of the cells in a data set — either a single column or row or an entire table. You have seven built-in options under Conditional Formatting &gt; Highlight Cell Rules:</p>
<ul>
<li>Greater Than</li>
<li>Less Than</li>
<li>Between</li>
<li>Equal To</li>
<li>Text That Contains</li>
<li>A Date Occurring</li>
<li>Duplicate Values</li>
</ul>
<p>I use the greater than and less than options a lot in reports that show values over time, like rank reports, month-over-month revenue, year-over-year visits, etc. I format values that move in a negative direction with red font and those that move in a positive direction with green font. I find that to be less distracting for larger data sets than having a bunch of red, yellow, and green arrows (which are an option under icon sets if you&#8217;re so inclined).</p>
<p>The text option is particularly useful for tasks like highlighting keywords that contain a certain word, landing pages from a particular directory, 404 status codes from Screaming Frog, etc.</p>
<p>I also use the duplicate values a lot when I download a Screaming Frog report to highlight duplicate content. Just apply this conditional formatting option to the Hash column. Then you can sort by that cell formatting, followed by an alphabetical sort (using the same custom sort options available to you from the table filter for that column). This puts all the duplicates at the top of the column and groups the pages with the same hash value together.</p>
<h2>Top/Bottom Rules</h2>
<p>Excel gives you six built-in rules:</p>
<ul>
<li>Top 10 Items</li>
<li>Top 10%</li>
<li>Bottom 10 Items</li>
<li>Bottom 10%</li>
<li>Above Average</li>
<li>Below Average</li>
</ul>
<p>Of course, you&#8217;re not limited to these rules. If you select More Rules, you can set your own thresholds.</p>
<h2>Color Scales</h2>
<p>The color scales work exactly like the data bars. Personally, I don&#8217;t prefer them because I find that the distinctions get a little difficult to read and interpret, especially with larger data sets. But if you like them, knock yourself out.</p>
<h2>Using Formulas</h2>
<p>As you get more comfortable with conditional formatting, using the formula option will save you some time. You&#8217;ll also need to use the formula option if you want to format the cells in one column based on the values in another.</p>
<p>For example, if you want to apply yellow highlighting to all landing page cells if they generated at least $5,000 in revenue, according to your analytics data, you&#8217;d use a formula because you&#8217;re not formatting the same cell you&#8217;ve selected.</p>
<p>Another example would be if you&#8217;re using a spreadsheet to keep track of your link building and want to highlight an entire row green if the link has been published and red if it hasn&#8217;t (using a Published column that has either Yes or No as the cell value), you would use a formula to get the job done.</p>
<p>Don&#8217;t let working with formulas intimidate you. If you&#8217;ve used formulas elsewhere in Excel, they&#8217;re very easy to apply in conditional formatting. The trick to using them is if the formula evaluated to a true condition, the cell(s) will be formatted; if it evaluates to false, they won&#8217;t.</p>
<p>For example, let&#8217;s say you have revenue data in column E (starting in row 4), and you want to highlight landing pages that have generated at least $5,000 in revenue. Your formula would read <em>=E4&gt;=5000</em>. (Don&#8217;t let that initial = throw you. It doesn&#8217;t mean equal in this context; it just means you&#8217;re entering a formula.)</p>
<p>Also, you&#8217;re not limited to just one condition. Let&#8217;s say you have an organic landing page report with analytics data, and you had your data broken up like this:</p>
<ul>
<li><strong>Column B: </strong>Visits</li>
<li><strong>Column C:</strong> Revenue</li>
<li><strong>Column D: </strong>Bounce Rate</li>
</ul>
<p>Now, if you wanted to highlight your strongest landing pages, you could decide the thresholds for each metric and apply those against your data.</p>
<p>For example, let&#8217;s say you want to highlight landing pages that meet these criteria:</p>
<ul>
<li>Received at least 100 visits</li>
<li>Generated at least $5,000</li>
<li>Had a bounce rate under 30%</li>
</ul>
<p>Here are the steps you would take:</p>
<p style="padding-left: 30px;"><strong>Step 1: </strong> Select the cell with the first landing page.</p>
<p style="padding-left: 30px;"><strong>Step 2: </strong>Go to Conditional Formatting &gt;New Rule.</p>
<p style="padding-left: 30px;"><strong>Step 3: </strong>Under Select a Rule Type, choose Use a formula to determine which cells to format (Mac: Choose Classic from the Style drop-down menu, then use a formula to determine which cells to format from the [unlabeled] drop-down menu below it).</p>
<p style="padding-left: 30px;"><strong>Step 4:</strong> Assuming your data begins in the Row 4, you would enter this formula in the formula field: <em>=AND(B4&gt;=100, C4&gt;=5000, D4&lt;30%) </em><em>Tip:</em> You could also use .3 for bounce rate. The AND function just allows you to concatenate (or join together) more than one condition. You could even use OR to format a cell based on one condition or another.</p>
<p style="padding-left: 30px;"><strong>Step 5: </strong>Choose the formatting option(s) you want by clicking on the Format button.</p>
<p style="padding-left: 30px;"><strong>Step 6: </strong>Take the fill handle in the bottom-right corner of the cell and drag it down (or double-click on it if you&#8217;re using a formatted table) to apply it to the entire column. Then choose Fill Formatting Only from the Auto Fill Options menu that pops up.</p>
<p style="padding-left: 30px;">Alternatively, you could select the first cell, click the Format Painter under Home &gt; Clipboard and click-and-drag over the rest of the cells in the column to apply the format. If all of the landing pages have identical formatting, make sure you&#8217;re not using absolute references in your formula, e.g., =AND($B$4&gt;=100, $C$4&gt;=5000, $D$4&lt;30%) because your formula will only reference the first record (or row) in your data set.</p>
<p style="padding-left: 30px;">However, you could lock just the letters, if you wanted to be precise (e.g., $B4), but it&#8217;s not necessary in this case. To learn more about absolute and relative referencing, check out <a href="http://office.microsoft.com/en-us/excel-help/switch-between-relative-absolute-and-mixed-references-HP010342940.aspx" target="_blank">this article from the Microsoft website</a>.</p>
<h2>Modifying Your Conditional Formatting</h2>
<p>If you ever need to modify your conditional formatting, all  you have to do is go to Conditional Formatting &gt; Manage Rules, then just double-click on the rule you want to edit or click the Edit Rule button.</p>
<p>Since your conditional formatting is applied in the order of the rules listed in Rules Manager dialog, you can also move the rules up or down using the arrow buttons. Furthermore, you can tell Excel to stop if a particular rule evaluates to true. To learn more about rule precedence, check out <a href="http://office.microsoft.com/en-us/excel-help/manage-conditional-formatting-rule-precedence-HA010074373.aspx" target="_blank">this article from the Microsoft website</a>.</p>
<h2>Learn More</h2>
<p>If you want to develop advanced conditional formatting skills, you&#8217;re not going to do that from one blog post. However, I read an ebook a couple years ago that made the more advanced conditional formatting options click for me. I don&#8217;t usually promote resources that aren&#8217;t free and I don&#8217;t benefit in any way from sales, but my $20 investment has paid off in spades by giving me the skills to wield the full power of Excel&#8217;s conditional formatting. You can check out the ebook <a href="http://store.tips.net/T010216_Excel_2010_Conditional_Formatting_Table_of_Contents.html" target="_blank">here</a>.</p>
<p>If you have any questions or get stuck on anything, feel free to <a href="https://twitter.com/anniecushing" target="_blank">reach out to me on Twitter</a>. I help a lot of people in the industry with their spreadsheet woes. :)</p>
<h6><a href="http://www.flickr.com/photos/bk/36183806/" target="_blank">Photo</a> from <a href="http://www.flickr.com/photos/bk/" target="_blank">keaggy.com</a>. Used under Creative Commons license.</h6>
]]></content:encoded>
			<wfw:commentRss>http://searchengineland.com/how-to-go-picasso-on-your-data-with-conditional-formatting-132627/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Easy To Advanced Uses Of Cell Formatting In Excel</title>
		<link>http://searchengineland.com/easy-to-advanced-uses-of-cell-formatting-in-excel-130203</link>
		<comments>http://searchengineland.com/easy-to-advanced-uses-of-cell-formatting-in-excel-130203#comments</comments>
		<pubDate>Fri, 17 Aug 2012 13:40:02 +0000</pubDate>
		<dc:creator>Annie Cushing</dc:creator>
				<category><![CDATA[Channel: Analytics]]></category>
		<category><![CDATA[Search & Analytics]]></category>
		<category><![CDATA[Microsoft Excel]]></category>

		<guid isPermaLink="false">http://searchengineland.com/?p=130203</guid>
		<description><![CDATA[In my post on table formatting, I demonstrated how to transform your static data into a simple yet sexy database in a matter of seconds. If you don&#8217;t know how to use table formatting, go read that post and then come back. Otherwise, your data will look like one of those housewives who goes to [...]]]></description>
				<content:encoded><![CDATA[<p>In <a title="A Marketer’s Guide To Table Formatting In Excel" href="http://searchengineland.com/a-marketers-guide-to-table-formatting-in-excel-124944">my post on table formatting</a>, I demonstrated how to transform your static data into a simple yet sexy database in a matter of seconds. If you don&#8217;t know how to use table formatting, go read that post and then come back. Otherwise, your data will look like one of those housewives who goes to grocery store with curlers and a moo moo sporting red lipstick.</p>
<p>Enough chatter. Let&#8217;s jump in. If you want to follow along, you can <a href="https://www.dropbox.com/s/vrlm4gphujskqhy/sample-spreadsheet.xlsx" target="_blank">download the Excel file</a>. (Just click the Download button in the upper-right corner of your browser window. Don&#8217;t ask me why Dropbox sticks it up there. Developers &#8230;)</p>
<h2>Standard Number Formatting</h2>
<p>You would think everyone would use number formatting; it&#8217;s so rudimentary. But I can&#8217;t tell you how many times I see decimals in charts that should be formatted as percentages or no thousandths separators (a pet peeve of mine) or two decimal places filled with 0&#8242;s because the number didn&#8217;t need decimals.</p>
<p>These newbie mistakes are uncalled for because Excel placed several number formatting options front and center in the Number section of the Home tab:</p>
<p>&nbsp;</p>
<p><div id="attachment_130205" class="wp-caption aligncenter" style="width: 609px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/08/number-formatting-both.png"><img class="size-full wp-image-130205 " src="http://searchengineland.com/figz/wp-content/seloads/2012/08/number-formatting-both.png" alt="Standard normal formatting for Excel" width="599" height="238" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p>For the neophytes, here are what those icons mean, from left to right:</p>
<p><strong>Currency</strong></p>
<p><strong></strong>Convert to currency. This option will left-align the dollar symbol and right-align the number. Technically, this is referred to as Accounting formatting. (If you want the currency symbol to be flushed up against the number, don&#8217;t use this icon; use the Currency option in the drop-down menu above this row of icons.)</p>
<p>You can also choose different currencies from the drop-down menu to the right of the currency icon.</p>
<p><strong>%</strong></p>
<p><strong></strong>Convert decimals to a percentage.</p>
<p><strong>, </strong></p>
<p><strong></strong>This is not a comma; it&#8217;s a thousandths separator. And if you have a number greater than 9999 you should use it. (I usually use it for numbers greater than 999.) One weird quirk with this button is it adds two decimal places whenever you apply it. Most of the time they&#8217;re unwarranted.</p>
<p>If you don&#8217;t have decimals, you should ditch the decimals because they just add noise. But that&#8217;s what the next icons are for.</p>
<p><strong>Increase Decimal</strong></p>
<p><strong></strong>Add decimals. Since I&#8217;m not [overly] neurotic or a scientist, I very rarely use this option.</p>
<p><strong>Decrease Decimal</strong></p>
<p><strong></strong>Lob off unwanted decimals. I use this all the time. PSA: Please — for the love of all that is holy and measurable — get rid of decimals in chart axes.</p>
<p>Select the axis, press Ctrl-1 (Mac: Command-1) to bring up the formatting options, and adjust it in the Number section. Please.</p>
<p><div id="attachment_130209" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/08/axis-formatting-bad2.png"><img class="size-full wp-image-130209 " src="http://searchengineland.com/figz/wp-content/seloads/2012/08/axis-formatting-bad2.png" alt="Excel bad axis formatting" width="600" height="269" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p><div id="attachment_130206" class="wp-caption aligncenter" style="width: 609px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/08/axis-formatting-bad.png"><img class="size-full wp-image-130206 " src="http://searchengineland.com/figz/wp-content/seloads/2012/08/axis-formatting-bad.png" alt="Excel axis formatting" width="599" height="267" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<h2>More Ribbon Options</h2>
<p>Both PC and Mac offer more number formatting options from the ribbon. All you have to do is click the drop-down menu above the icons we just looked at.</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/08/more-numbers-both.png"><img class="size-full wp-image-130211 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/08/more-numbers-both.png" alt="Excel more number formatting options" width="396" height="576" /></a></p>
<p>(Yeah, guess who Microsoft loves more.)</p>
<p>These options are pretty lame. The only one I use on occasion is Fraction. When you see the flexibility you have with the custom number formatting, you&#8217;ll snub your nose at these bourgeois offerings.</p>
<h2>Custom Number Formatting Options</h2>
<p>Okay, this is where it starts to get fun. At the risk of sounding cliche, your options are nearly endless once you learn how to rock the Custom option.</p>
<p><em>Pro Tip: </em>To open formatting options, just select the cell(s) you want to format and press Ctrl-1 (Mac: Command-1). This actually works for anything in Excel: charts elements, images, etc.</p>
<p><strong>Date Formatting</strong></p>
<p><strong></strong>Excel gives you quite a few options to choose from under Number &gt; Date in the Format Cells dialog (which, again, you get to by pressing Ctrl-1 or Command-1 on the Mac). But I&#8217;m fond of the format that looks like Aug 13 (no year), which Excel doesn&#8217;t offer. No worries. Following a few simple principles, you can construct your own formatting options.</p>
<p>We&#8217;ll use August 3, 2012 in our examples below:</p>
<p style="padding-left: 30px;"><em></em>m: 8</p>
<p style="padding-left: 30px;">mm: 08</p>
<p style="padding-left: 30px;">mmm: Aug</p>
<p style="padding-left: 30px;">mmmm: August</p>
<p style="padding-left: 30px;">d: 3</p>
<p style="padding-left: 30px;">dd: 03</p>
<p style="padding-left: 30px;">ddd: Fri (because it fell on a Friday)</p>
<p style="padding-left: 30px;">dddd: Friday</p>
<p style="padding-left: 30px;">yy: 12</p>
<p style="padding-left: 30px;">yyyy: 2012</p>
<p>So here are some examples of how you can show Aug 3, 2012:</p>
<p style="padding-left: 30px;">Aug 3, 2012: mmm d, eye</p>
<p style="padding-left: 30px;">Friday, August 3, 2012: dddd, mmmm d, yyyy</p>
<p style="padding-left: 30px;">Fri. 08.03.12: ddd. mm.dd.yy</p>
<h2>Formatting Positive &amp; Negative Numbers</h2>
<p>I&#8217;m always looking for new ways to make data pop when I have to use tables (like if there&#8217;s too much data to shoehorn into a chart). A great example of this is webmaster tools data.</p>
<p>If you run a report like the Search Queries report from Google Webmaster Tools (GWT) — by navigating to Traffic &gt; Search Queries — and click the &#8220;With Change&#8221; option, as shown below, you&#8217;ll have a sea of positive and negative numbers in your export.</p>
<p><div id="attachment_130214" class="wp-caption aligncenter" style="width: 609px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/08/search-queries-report.png"><img class="size-full wp-image-130214 " src="http://searchengineland.com/figz/wp-content/seloads/2012/08/search-queries-report.png" alt="Google Webmaster Tools Search Queries report" width="599" height="359" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>&nbsp;</p>
<p>Sure, in the GWT interface they&#8217;re all colorful, but once you get them into Excel, they transform into the ugly duckling of data, and nothing stands out. But Excel gives you the option to dictate formatting for positive, negative numbers, and even 0.</p>
<p>To format these numbers, you just need to remember to follow this format: formatting for positive number; formatting for negative number; formatting for 0.</p>
<p>To use colors, Excel has a handful built in:</p>
<p style="padding-left: 30px;">[BLACK]</p>
<p style="padding-left: 30px;">[GREEN]</p>
<p style="padding-left: 30px;">[RED]</p>
<p style="padding-left: 30px;">[BLUE]</p>
<p style="padding-left: 30px;">[CYAN]</p>
<p style="padding-left: 30px;">[MAGENTA]</p>
<p style="padding-left: 30px;">[WHITE]</p>
<p style="padding-left: 30px;">[YELLOW]</p>
<p><em>Note:</em> These aren&#8217;t case sensitive.</p>
<p>If you&#8217;re a diva and those options are too constricting, Excel offers 56 colors in the form of [color X]. I actually find the [green] option too light, so I use [color 10] instead. You can find the <a href="http://dmcritchie.mvps.org/excel/colors.htm#chart" target="_blank">full spectrum of colors</a> in the helpful chart on this site.</p>
<p>We&#8217;ll experiment with a GWT Search Queries report from the <a href="http://www.seerinteractive.com/" target="_blank">SEER Interactive site</a> (the agency I work for). Here&#8217;s a sample of a column that has positive and negative numbers:</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/08/seer-example.png"><img class="size-full wp-image-130215 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/08/seer-example.png" alt="Formatting positive and negative numbers in Excel" width="481" height="785" /></a></p>
<p>To format these, the steps are simple:</p>
<p><em>Step 1: </em>Select the column you want to format.</p>
<p><em>Step 2: </em>Pull up the Format Cells dialog and navigate to Number &gt; Custom.</p>
<p><em>Step 3: </em>In the Type field enter the following formula (of sorts):</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/08/custom-numbers.png"><img class="size-full wp-image-130217 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/08/custom-numbers.png" alt="Custom numbers in Excel" width="524" height="471" /></a></p>
<p>This just tells Excel, in addition to the colors, make the numbers percentages with no decimals. If you want one decimal place, just add it to the number, e.g., 0.0%. Two decimals, make it two, e.g., 0.00%. If you didn&#8217;t want percent, drop the % sign, e.g., 0.0 would translate to something like 4.7. You can also add things like currency symbols.</p>
<p>Here&#8217;s a screenshot of what your spreadsheet will look like after applying custom formatting to a Search Queries report:</p>
<p><div id="attachment_130222" class="wp-caption aligncenter" style="width: 610px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/08/pretty-data.png"><img class="size-full wp-image-130222 " src="http://searchengineland.com/figz/wp-content/seloads/2012/08/pretty-data.png" alt="Fully formatted data" width="600" height="247" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>One more thing I&#8217;ll say about formatting numbers with color is you can use conditional formatting to format positive and negative numbers, but you shouldn&#8217;t. Conditional formatting is ultra cool, and I&#8217;ll be covering it in my next post. <em>But </em>it&#8217;s a processor hog.</p>
<p>So the litmus test I follow — to keep my spreadsheets as light and agile as possible — is if it&#8217;s a static number, I use number formatting. However, if it&#8217;s formatting is conditional on another factor, I use conditional formatting.</p>
<p>Okay, let&#8217;s try that again in plain English &#8230;</p>
<p>Let&#8217;s say you run a rank report from your fave tool, and you want the current rank to be red if the keyword has fallen in rankings and green if it&#8217;s moved up.</p>
<p>Since the color of the current rank is conditional on the rank of the previous day, week, or month (most importantly, a value from another column), you would need to use conditional formatting. In the case of the webmaster data, all of the values are static, so we were able to use custom number formatting.</p>
<h2>Adding Text To Number Formatting (Yes, It&#8217;s Still actually A Number)</h2>
<p><strong></strong> Let&#8217;s say you don&#8217;t want negative signs, parentheses, or colors. Instead, you want positive numbers to append &#8220;Profit&#8221; to a currency value, &#8220;Loss&#8221; to a negative currency value, and &#8220;Break Even&#8221; (with no number) if it&#8217;s 0.</p>
<p>Your formula would look like this:</p>
<p style="padding-left: 30px;">$0&#8243; Profit&#8221;;$0&#8243; Loss&#8221;;&#8221;Break Even&#8221;</p>
<p><strong><em>Note:</em></strong> You have to include a space inside the quotes, or it&#8217;ll look like $4583Loss. No grinding on the dance floor please.</p>
<p>If you look at the formula bar, you can see Excel sees it as a number value, not text. Another clue that it&#8217;s a number is it&#8217;s right-aligned. Text is always left-aligned in Excel.</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/08/negative-number.png"><img class="size-full wp-image-130224 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/08/negative-number.png" alt="More number formatting in Excel" width="207" height="104" /></a></p>
<p>&nbsp;</p>
<h2>Condition-Based Formatting</h2>
<p>Square brackets aren&#8217;t just useful for formatting positive and negative numbers; they can also be used to format conditions. We&#8217;re also going to use another handy function Excel offers. You can use leaders, just like you can do in Microsoft Word, by setting a character to repeat. It&#8217;s easier to see it in action and then explain it.</p>
<p>So let&#8217;s say we want to write a formula that specifies that for numbers less than 1000, we want the word &#8220;Low&#8221; to be left-aligned, with the number right-aligned; for numbers greater than 2000, we want the word &#8220;High&#8221; to be left-aligned, with the number right-aligned; and numbers in between to say &#8220;Medium&#8221; with the number right-aligned.</p>
<p>Here&#8217;s what the formula would look like:</p>
<p><div id="attachment_130230" class="wp-caption aligncenter" style="width: 540px"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/08/conditions.png"><img class="size-full wp-image-130230 " src="http://searchengineland.com/figz/wp-content/seloads/2012/08/conditions.png" alt="Custom formatting in Excel with conditions" width="530" height="471" /></a><p class="wp-caption-text">Click for larger image.</p></div></p>
<p>The last condition basically says, &#8220;And for everything else, left-align the word &#8216;Middle&#8217;, por favor.&#8221;</p>
<p>And here&#8217;s what it would look like when you&#8217;re finished:</p>
<p style="text-align: center;"><a href="http://searchengineland.com/figz/wp-content/seloads/2012/08/more-custom-numbers.png"><img class="size-full wp-image-130232 aligncenter" src="http://searchengineland.com/figz/wp-content/seloads/2012/08/more-custom-numbers.png" alt="More custom number formatting" width="145" height="251" /></a></p>
<p>And how did we get those extra spaces? Easy. Just throw an asterisk into your formula; then whatever character you put after it (in this case a space) will be repeated to fill up the cell. If we had put a period after it, it would have filled the space with periods.</p>
<p>~~~</p>
<p>Even though I&#8217;m not a big fan of tabular data, there are quite a few things you can do to give your data a makeover and make it actionable, even within the confines of a table. Keep in mind (<a title="A Marketer’s Guide To Table Formatting In Excel" href="http://searchengineland.com/a-marketers-guide-to-table-formatting-in-excel-124944">as you learned in the table formatting post</a>) you can sort and filter by color once you apply any kind of color formatting to your data.</p>
<p>So if you wanted to see all query terms that moved up in rankings in your GWT Search Queries report before those that fell, you can sort by putting the green numbers at the top, then the red, then the black.</p>
<p>To learn even more advanced uses of custom number formatting, check out this <a href="http://office.microsoft.com/en-gb/excel-help/create-or-delete-a-custom-number-format-HP005199500.aspx" target="_blank">custom number formatting guide on the Microsoft site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://searchengineland.com/easy-to-advanced-uses-of-cell-formatting-in-excel-130203/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
