{"id":951,"date":"2015-11-19T16:03:02","date_gmt":"2015-11-19T22:03:02","guid":{"rendered":"http:\/\/www.iqaccountingsolutions.com\/blog\/?p=951"},"modified":"2015-11-19T16:03:02","modified_gmt":"2015-11-19T22:03:02","slug":"conditional-formatting-in-excel","status":"publish","type":"post","link":"https:\/\/www.iqaccountingsolutions.com\/blog\/conditional-formatting-in-excel\/","title":{"rendered":"Conditional Formatting in Excel"},"content":{"rendered":"<p>Everyone knows how to apply formatting such as bold, italics, or color to a cell on an Excel worksheet. But did you know you can establish rules so that if certain conditions are met, the cell will automatically receive selected formatting? You can, and it&#8217;s called conditional formatting.<\/p>\n<p>Let&#8217;s look at a few examples. I&#8217;ll be using Excel 2010. The exact steps may vary slightly in other versions.<\/p>\n<table style=\"height: 410px;\" width=\"569\">\n<tbody>\n<tr>\n<td width=\"33\"><\/td>\n<td width=\"191\">\n<p style=\"text-align: center;\">A<\/p>\n<\/td>\n<td width=\"75\">\n<p style=\"text-align: center;\">B<\/p>\n<\/td>\n<td width=\"75\">\n<p style=\"text-align: center;\">C<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center;\">1<\/p>\n<\/td>\n<td><u>CUSTOMER NAME<\/u><\/td>\n<td>\n<p style=\"text-align: center;\"><u>BALANCE<\/u><\/p>\n<\/td>\n<td>\n<p style=\"text-align: center;\"><u>CR LIMIT<\/u><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center;\">2<\/p>\n<\/td>\n<td>Aldred Builders, Inc.<\/td>\n<td>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 11,612<\/td>\n<td>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 15000<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center;\">3<\/p>\n<\/td>\n<td>Archer Scapes and Ponds<\/td>\n<td>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 8,313<\/td>\n<td>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 7000<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center;\">4<\/p>\n<\/td>\n<td>Cannon Healthcare Center<\/td>\n<td>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 12,429<\/td>\n<td>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10000<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center;\">5<\/p>\n<\/td>\n<td>Chapple Law Offices<\/td>\n<td>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 9,065<\/td>\n<td>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10000<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center;\">6<\/p>\n<\/td>\n<td>Everly Property Management<\/td>\n<td>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 12,693<\/td>\n<td>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 13000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To make all balances over $10,000 stand out, select the balances in colun B, or just select the entire column. On the Home tab of the ribbon, click the <em>Conditional Formatting<\/em> button. From the options that drop down, choose H<em>ighlight Cell Rules<\/em>, and then <em>Greater Than<\/em>. Under <em>Format cells that are GREATER THAN: <\/em>enter 10000. Then choose one of the preset formatting options from the list or choose <em>Custom Format<\/em> to specify your own formatting options. Click OK, and cells B2, B4, and B6 will all have the formatting you chose since they are over 10,000. If you change the number in any cell, its formatting will automatically be updated according to the rule you set.<\/p>\n<p>In that example, all of the amounts were compared to the same number. Now let&#8217;s compare each cell to another cell. To make it easy to spot anyone who has exceeded their credit limit, we&#8217;ll apply conditional formatting to column C to highlight anyone whose credit limit is lower than their balance.<\/p>\n<p>Again, start by selected either the entire column C, or the specific cells you want to format. Click the <em>Conditional Formatting<\/em> button, choose<em> Highlight Cell Rules<\/em>, and <em>Less Than<\/em>.<\/p>\n<p>If you selected the entire column, enter <em>=B1<\/em> at <em>Format cells that are LESS THAN:<\/em>. Or if you selected just the cell that have amounts in them, enter <em>=B2<\/em>. You could click on the cell you want instead of typing it. But if you do Excel will enter it as =$B$1 and you&#8217;ll have to remove the dollar signs. If you leave them there, every cell will be compared to B1 instead of to its corresponding cell in column B. Choose the formatting that you want and click OK. Now C3 and C4 should show the conditional format.<\/p>\n<p>What if you wanted to apply a conditional format to the customer name when they exceed their credit limit. In that case the cell you want to format isn&#8217;t the cell you\u00a0 want to evaluate, so you can&#8217;t use the preset rules. But that doesn&#8217;t mean you can&#8217;t do it.<\/p>\n<p>Start by selecting the column A or just the list of names, and go back to <em>Conditional Formatting<\/em> button, and <em>Highlight Cell Rules<\/em>, This time choose <em>More Rules<\/em> from the bottom of the menu. In the window that opens, select <em>Use a formula to determine which cells to format<\/em>. At <em>Format values where this formula is true:<\/em> enter your formula. In this case it would be <em>=B1&gt;<\/em>C1 if you selected the entire column, or =B2&gt;C2 if you selected just the cells in use. Click the <em>Format<\/em> button below that to choose your formatting options. Click <em>OK<\/em> when you&#8217;re done. The formatting will be applied to any cell in column A when the balance on that row (column B) is greater than the credit limit on that row (column C). In this case that would be Archer and Cannon.<\/p>\n<p>To remove conditional formatting, selected the desired cells, click the <em>Conditional Formatting<\/em> button, choose <em>Clear Rules<\/em>, and then <em>Clear Rules from Selected Cells<\/em>.<\/p>\n<p>So take a few minutes and explore the options that are available with conditional formatting. You can easily format cells based on numbers, dates, text, or duplicate content, as well as highlighting high and low numbers in a list or top\/bottom percent of list entries. And the Data Bars option lets you build a bar chart into the sames cells as your data.<\/p>\n<p><iframe loading=\"lazy\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/eHu6Fhg-bJw?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Everyone knows how to apply formatting such as bold, italics, or color to a cell on an Excel worksheet. But did you know you can establish rules so that if certain conditions are met, the cell will automatically receive selected formatting? You can, and it&#8217;s called conditional formatting. Let&#8217;s look at a few examples. I&#8217;ll [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/951"}],"collection":[{"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=951"}],"version-history":[{"count":2,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/951\/revisions"}],"predecessor-version":[{"id":953,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/951\/revisions\/953"}],"wp:attachment":[{"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iqaccountingsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}