<?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>Belajar MS Excel Bersama Adi Surya</title>
	<atom:link href="http://funexcel.adisurya.com/feed" rel="self" type="application/rss+xml" />
	<link>http://funexcel.adisurya.com</link>
	<description>Belajar Cara-Cara Penggunaan MS Excel</description>
	<lastBuildDate>Tue, 27 Oct 2009 08:52:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Apa Kata Anda?</title>
		<link>http://funexcel.adisurya.com/apa-kata-anda.html</link>
		<comments>http://funexcel.adisurya.com/apa-kata-anda.html#comments</comments>
		<pubDate>Tue, 27 Oct 2009 08:52:33 +0000</pubDate>
		<dc:creator>Adi Surya</dc:creator>
				<category><![CDATA[Umum]]></category>

		<guid isPermaLink="false">http://funexcel.adisurya.com/?p=37</guid>
		<description><![CDATA[Bagi menambah baik laman blog ini, saya memerlukan maklum balas dari para pembaca:

Cuba anda kongsikan kepada saya apa yang anda ingin pelajari tentang Ms Excel.
Cara pembelajaran secara eBook atau Video?

Atau apa jua yang anda ingin kongsikan&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Bagi menambah baik laman blog ini, saya memerlukan maklum balas dari para pembaca:</p>
<ol>
<li>Cuba anda kongsikan kepada saya apa yang anda ingin pelajari tentang Ms Excel.</li>
<li>Cara pembelajaran secara eBook atau Video?</li>
</ol>
<p>Atau apa jua yang anda ingin kongsikan&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://funexcel.adisurya.com/apa-kata-anda.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Spreadsheet Skills: Better Scenario Analysis With OFFSET</title>
		<link>http://funexcel.adisurya.com/spreadsheet-skills-better-scenario-analysis-with-offset.html</link>
		<comments>http://funexcel.adisurya.com/spreadsheet-skills-better-scenario-analysis-with-offset.html#comments</comments>
		<pubDate>Sun, 12 Jul 2009 08:51:06 +0000</pubDate>
		<dc:creator>Adi Surya</dc:creator>
				<category><![CDATA[Analysis]]></category>
		<category><![CDATA[Scenario Analysis]]></category>

		<guid isPermaLink="false">http://funexcel.adisurya.com/?p=34</guid>
		<description><![CDATA[This month we examine the use of OFFSET for scenario analysis and other calculations. A spreadsheet chart is attached to the bottom of this page for you to practice your new skills. By Liam Bastick, associate director with BPM Analytical Empowerment.


Question
I am aware of Excel’s Scenario Manager, but I’m looking for something more transparent. I [...]]]></description>
			<content:encoded><![CDATA[<p><strong>This month we examine the use of OFFSET for scenario analysis and other calculations. A spreadsheet chart is attached to the bottom of this page for you to practice your new skills. By Liam Bastick, associate director with BPM Analytical Empowerment.<br />
</strong></p>
<h3>
Question</h3>
<p>I am aware of Excel’s Scenario Manager, but I’m looking for something more transparent. I want to do some scenario analysis in my financial model, where some key assumptions can be changed. I need to keep the alternative scenarios and I may need to add to them. Any suggestions?</p>
<h3>Advice</h3>
<p>Last month, we talked about INDEX and MATCH, functions concerned with position. This month, we look at OFFSET, a function which considers displacement. OFFSET is a function well suited to this scenario (if you will excuse the pun!).</p>
<p>The syntax for OFFSET is:<br />
OFFSET(Reference,Rows,Columns,[Height],[Width]).</p>
<p>The arguments in square brackets (height and width) can be omitted from the formula (they both have a default value of 1, which is explained below).</p>
<p>In its most basic form, OFFSET(Ref,x,y) will select a reference x rows down (-x would be x rows up) and y rows to the right (-y would be y rows to the left) of the reference Ref.</p>
<p>Consider the following grid:</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image-01---Example-Table-%285.jpg" alt="" /></p>
<p><strong>Figure 1: Example table</strong></p>
<p>OFFSET(A1,2,3) would take us two rows down and three columns across to cell D3. Therefore, OFFSET(A1,2,3) = 16.</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image-02---OFFSET-1-%283%29.jpg" alt="" /></p>
<p><strong>Figure 2: OFFSET(A1,2,3)</strong></p>
<p>OFFSET(D4,-1,-2) would take us one row up and two rows to the left to cell B3. That means OFFSET(D4,-1,-2) = 14.<br />
<img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image-03---OFFSET-2-%282%29.jpg" alt="" /></p>
<p><strong>Figure 3: OFFSET(D4,-1,-2)<br />
</strong><br />
We can use these mechanics to answer this month’s query and construct a very simple scenario table:<br />
<img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image-04---Scenario-Illustr.jpg" alt="" /></p>
<p><strong>Figure 4: OFFSET scenario illustration</strong></p>
<p>This example is included in the attached Excel file. Essentially, the assumptions used in the model are linked from cells J14:J20 (in yellow). These values are drawn from the scenario table to the right of the highlighted yellow range (for example, cells L14:L20 constitute Scenario 1, cells M14:M20 constitute Scenario 2).</p>
<p>The Scenario Selector is located in cell J11. Using OFFSET, we can retain all scenarios and select as we see fit. For example, the formula in cell J14 is simply OFFSET(K14,,$J$11) &#8211; that is, start at cell K14 and displace zero rows and the value in J11 columns across. In the illustration above, the formula locates the cell one column to the right, which is Scenario 1.</p>
<p>The advantage of OFFSET over other functions such as INDEX, CHOOSE and LOOKUP is that the range of data can be added to. While the other functions require a specified range, we can keep adding scenarios without changing the formula/making the model inefficient.</p>
<h3>Other uses</h3>
<p>OFFSET has other practical uses in Excel, taking advantage of the height and width arguments.</p>
<p>Consider our OFFSET example above. If we extend the formula to OFFSET(D4,-1,-2,-2,3), it would again take us to cell B3, but then we would select a range based on the height and width parameters. The height would be two rows going up the sheet, with row 14 as the base (that is, rows 13 and 14), and the width would be three columns going from left to right, with column B as the base (that is, columns B,C and D).<br />
Hence OFFSET(D4,-1,-2,-2,3) would select the range B2:D3.</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image-05---OFFSET-3-%282%29.jpg" alt="" /></p>
<p><strong>Figure 5: OFFSET(D4,-1,-2,-2,3)</strong></p>
<p>Note that OFFSET(D4,-1,-2,-2,3) = #VALUE! since Excel cannot display a matrix in one cell, but it does recognise it. However, if after typing in OFFSET(D4,-1,-2,-2,3) we press CTRL + SHIFT + ENTER, we turn the formula into an array formula: {OFFSET(D4,-1,-2,-2,3)} (do not type the braces in, they will appear automatically as part of the Excel syntax). This gives a value of 8, which is the value in the top left hand corner of the matrix, but Excel is storing more than that. This can be seen as follows:</p>
<ul>
<li>SUM(OFFSET(D4,-1,-2,-2,3)) = 72 (that is, SUM(B2:D3))</li>
<li>AVERAGE(OFFSET(D4,-1,-2,-2,3)) = 12 (that is, AVERAGE(B2:D3)).</li>
</ul>
<p>Indeed, we can construct a simple depreciation calculation, transpose references or even build a dynamic chart (one that displays more/less categories of information as required) using OFFSET’s height and width functionalities. <a title="link to Excel workbook " href="http://www1.cimaglobal.com/cps/rde/xchg/SID-0AE7C4D1-701C1F92/live/root.xsl/document_broker.htm?filename=BPM_OFFSET_Examples.xls" target="_new">The attached workbook provides several examples as illustrations</a>.</p>
<h3>Handle with care</h3>
<p>While OFFSET is an extremely useful and flexible function, it is not transparent. The syntax is difficult for the user to grasp, and Excel’s auditing tools have problems too. The reference cell in the OFFSET arguments is the sole component that will be identified – for example, OFFSET(A1,2,3) will trace cell A1 only.</p>
<p>So spreadsheet users do get confused – in particular, regarding the reference. When calculating the rows and columns components, the reference cell is excluded, but it is included in determining the height and width.</p>
]]></content:encoded>
			<wfw:commentRss>http://funexcel.adisurya.com/spreadsheet-skills-better-scenario-analysis-with-offset.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spreadsheet Skills: The Power of Pivot Tables</title>
		<link>http://funexcel.adisurya.com/spreadsheet-skills-the-power-of-pivot-tables.html</link>
		<comments>http://funexcel.adisurya.com/spreadsheet-skills-the-power-of-pivot-tables.html#comments</comments>
		<pubDate>Fri, 10 Jul 2009 08:48:29 +0000</pubDate>
		<dc:creator>Adi Surya</dc:creator>
				<category><![CDATA[Report]]></category>
		<category><![CDATA[Pivot Tables]]></category>

		<guid isPermaLink="false">http://funexcel.adisurya.com/?p=31</guid>
		<description><![CDATA[By popular demand we examine the pivot table, one of Excel’s most useful features. By Liam Bastick, associate director with BPM Analytical Empowerment.
Query
I work with large tables of data which I need to interrogate on a regular basis. A work colleague suggested I set up a pivot table, but I’m not sure how they work. Could [...]]]></description>
			<content:encoded><![CDATA[<p><strong><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/spreadsheetsMay180.jpg" border="0" alt="picture of bar chart" hspace="10" vspace="5" width="180" height="180" align="right" />By popular demand we examine the pivot table, one of Excel’s most useful features. By Liam Bastick, associate director with BPM Analytical Empowerment.</strong></p>
<h3>Query</h3>
<p>I work with large tables of data which I need to interrogate on a regular basis. A work colleague suggested I set up a pivot table, but I’m not sure how they work. Could you give me guidance please?</p>
<h3>Advice</h3>
<p>A pivot table is a semi dynamic, tabular summary of data. It is one of Excel’s most flexible tools and can give results that would take time to reconstruct with sophisticated uses of functions such as SUMIF, SUMPRODUCT, etc.</p>
<p>Excel 2007 has increased pivot table flexibility significantly from earlier incarnations. However, as with many pre-Excel 2007 features, the location of various tools and options needs to be re-learned. This article gives a basic overview for both Excel 2003 (and earlier) users as well as Excel 2007 users.</p>
<p>To describe the basics of a pivot table, I will use the <a title="link to Excel pivot tables examples" href="http://www1.cimaglobal.com/cps/rde/xchg/SID-0AE7C4D1-6F514862/live/root.xsl/document_broker.htm?filename=Pivot_Tables_Example.xls" target="_new">attached Excel examples</a>:</p>
<p>In this illustration, imagine we are a head office analyst reviewing the electrical sales of four stores &#8211; imaginatively called North, South, East and West.</p>
<p>Creating a pivot table on the same worksheet is fairly straightforward, albeit a little different between the Excel versions. If the database is in one block (a ‘contiguous’ range), simply select any cell within the database and then:</p>
<h3>In Excel 2003 and earlier</h3>
<ul>
<li>Load up the Pivot Table Wizard, Data -&gt; PivotTable and PivotChart Report… (ALT + D + P)</li>
<li>In Step 1 of 3 of the Wizard, choose ‘Microsoft Office Excel list or database’ as the data that you want to analyse and also select PivotTable as the report you want to create</li>
<li>In Step 2, confirm that the entire selection of data has been identified</li>
<li>In Step 3, put the report in the ‘Existing Worksheet’ and, say, choose cell L9</li>
<li>The layout can be detailed by selecting the ‘Layout’ button in the wizard, but for this example we will click on ‘Finish’ instead.</li>
</ul>
<h3>In Excel 2007</h3>
<ul>
<li>The Pivot Table Wizard does not appear to exist in Excel 2007, but if you select the keystrokes (ALT + D + P), the dialog box will indeed pop up albeit with restricted functionality</li>
<li>Consequently, it is probably easier to insert a Pivot Table from the Insert tab of the Ribbon, then click on the PivotTable icon, and then select PivotTable</li>
<li>The Create PivotTable dialog box appears. Choose ‘Select a table or range’ and confirm the entire selection of data has been identified</li>
<li>For placement, select ‘Existing Worksheet’ and choose, say, cell L9</li>
<li>Click ‘OK’ (layout cannot be constructed in a dialog box)</li>
</ul>
<p>Notice that cell L9 is not the top left of the pivot table, as you would expect. In fact, L7 (same column, two rows higher) is the first cell for the Page Field insertion (see Figure 1, below). When selecting where to place a pivot table, always remember to select a cell two rows further down than you might otherwise think.</p>
<p><strong><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_01_-_Pivot_Table_Construct.gif" alt="" /></strong></p>
<p><strong>Figure 1: Pivot Table Construct<br />
</strong><br />
The pivot table has four areas where data fields may be placed (a data field is simply any one of the columns of the database &#8211; eg Date, Store, Item in this example):</p>
<ul>
<li>Page: Values in this field appear as page items in the pivot table</li>
<li>Row: Values in this field appear as row items in the pivot table</li>
<li>Column: Values in this field appear as column items in the pivot table</li>
<li>Data: The field to be summarised – if this data is numerical in nature, SUM (how much) will be the default operation, otherwise COUNT (how many) is used. They are easily changed, by double clicking on the dragged field and changing SUM to AVERAGE or COUNT, etc.</li>
</ul>
<p><strong><br />
<img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_02_-_Pivot_Table_Layout.gif" alt="" /></p>
<p>Figure 2: Pivot Table Layout<br />
</strong><br />
More than one field can be placed in any of these locations – the effect is a hierarchical grouping depending upon the order of placement.</p>
<p>In essence, a pivot table is a three-dimensional summary of a database. Consider it as a book: each page has a summary table of a selection of the data (for instance, in our example, each page could show the sales of each electrical item for each store on a particular date, so Page 1 is 1 April, Page 2 is 2 April, etc.).</p>
<p>To populate the layout, it is simply a case of dragging and dropping. How this is done exactly depends on which version of Excel you have:</p>
<h3>In Excel 2003 and earlier</h3>
<ul>
<li>Once the pivot table has been inserted, the PivotTable toolbar should appear (if not, from the dropdown menu, select View -&gt; Toolbars -&gt; PivotTable)</li>
<li>The PivotTable Field List dialog box should also appear (if not, right click on the layout and select ‘Show Field List’ from the shortcut menu)</li>
</ul>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_03_-_Excel_2003_Field_List_Dialog_Box.gif" alt="" /></p>
<ul>
<li>The fields can be dragged on to the layout using the mouse, or simply select a field in the dialog box window and then make a choice from the drop down box and click ‘Add To’</li>
<li>In this example, Date is to be placed in the Page Area</li>
</ul>
<h3>In Excel 2007</h3>
<ul>
<li>Instead of a toolbar, two additional tabs are added to the end of the Ribbon – when the pivot table is selected – Options and Design</li>
<li>The PivotTable Field List window pane should also appear (if not, click on the Field List icon in the Show / Hide section of the PivotTable Tools Options tab)</li>
</ul>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_04_-_Excel_2007_Field_List_Pane.gif" alt="" /></p>
<p>Using the Field List, drag the Date field into the Page Area, the Store field into the Row Area, the Item field into the Column Area and the Amount Invoiced field into the Data Area (Values in Excel 2007), viz.<br />
<strong><br />
<img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_05_-_PivotTable_1.gif" alt="" /></p>
<p>Figure 3: Example Pivot Table (1)<br />
</strong><br />
The power of the pivot table should already be apparent. From the humble origins of a list of data, we can now see which store is leading in sales, enquire why there are no stereo sales in the South and West and so on. Using the drop down arrows in the table (you may need to make them visible in Excel 2007, PivotTable Tools -&gt; Options -&gt; Field Headers icon) or in the Field List pane in Excel 2007, we can filter for certain selections – for example, North’s sales on 2 April:</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_06_-_PivotTable_2.gif" alt="" /></p>
<p><strong>Figure 4: Example Pivot Table (2)<br />
</strong><br />
But let’s not stop there. Resetting the pivot table, one key report would be to determine the amounts outstanding. To do this, we need to construct a calculated field.</p>
<h3>In Excel 2003 and earlier</h3>
<ul>
<li>In the PivotTable toolbar, select PivotTable -&gt; Formulas -&gt; Calculated Field… (ALT + P + M + F)</li>
<li>Type ‘Amount Outstanding’ in the Name Field (note it can be modified later)</li>
<li>Clear the Formula box and type ‘=’ then select ‘Amount Invoiced’ from the Fields window and then click ‘Insert Field’</li>
<li>Type ‘-’ then select ‘Amount Paid’ from the Fields window and then click ‘Insert Field’</li>
</ul>
<h3>In Excel 2007</h3>
<ul>
<li>In the Ribbon, select PivotTable Tools, Options tab, then click on the Formulas icon in the Tools section and click on Calculated Field</li>
<li>Type ‘Amount Outstanding’ in the Name Field (note it can be modified later)</li>
<li>Clear the Formula box and type ‘=’ then select ‘Amount Invoiced’ from the Fields window and then click ‘Insert Field’</li>
<li>Type ‘-’ then select ‘Amount Paid’ from the Fields window and then click ‘Insert Field’</li>
</ul>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_07_-_Insert_Calculated_Field_Excel_03.gif" alt="" /><br />
<strong><br />
Figure 5: Insert Calculated Field Dialog Box</strong></p>
<ul>
<li>Click the ‘Add’ button and then ‘OK’.</li>
</ul>
<p>As a consequence of doing this, Excel may ask whether you want the destination cells to be replaced (the software thinks you want to replace or add to the Data Field). Rather than worry about choosing ‘Yes’ or ‘No’ (obviously, choose one!), simply go to the Field List and de-select the Amount Invoiced field (or drag it off the layout from the top left hand corner) and choose the ‘Amount Outstanding’ calculated field instead:</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_08_-_PivotTable_3.gif" alt="" /></p>
<p><strong>Figure 6: Example Pivot Table (3)<br />
</strong><br />
One more thing we’ll do while we’re here: the business has a North West division and a South East division. To see how these divisions have performed, we need to group the stores:</p>
<ul>
<li>Highlight the North and West rows of the table (hold the CTRL key down to select non-contiguous ranges)</li>
<li>Right click and select ‘Group…’ in Excel 2007 or ‘Group and Show Detail’ -&gt; ‘Group’ in earlier versions</li>
<li>The items have been grouped and we have a new, second data field in the Row Area, ‘Store2’ and a ‘Group 1’ grouping:</li>
</ul>
<p><strong><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_09_-_PivotTable_4.gif" alt="" /></p>
<p>Figure 7: Example Pivot Table (4)</strong></p>
<ul>
<li>Right clicking on ‘Store2’, we can click on ‘Field Settings…’ and change the name in the dialog box to ‘Division’ and click ‘OK’</li>
<li>Left click on the cell containing ‘Group1’</li>
<li>Go to the Formula bar and change the label to ‘North West Division’</li>
<li>Repeat the process for the South East Division</li>
</ul>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_10_-_PivotTable_5.gif" alt="" /><br />
<strong>Figure 8: Example Pivot Table (5)</strong></p>
<ul>
<li>This can be collapsed by double clicking on the cell containing the grouping description in all versions or selecting the ‘+’ or ‘-’ symbol in Excel 2007:</li>
</ul>
<p><strong><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_11_-_PivotTable_6.gif" alt="" /></strong></p>
<p><strong>Figure 9: Example Pivot Table (6)</strong></p>
<h3>Just an introduction…</h3>
<p>This article was intended only as an introduction to pivot tables – there is plenty more you can do with them.</p>
<p>The Pivot Table options are well worth playing with (Excel 2007, on the Ribbon. Earlier versions: from the PivotTable toolbar, choose PivotTable -&gt; Table Options…). It doesn’t take long to spot:</p>
<ul>
<li>how to give the pivot table a name</li>
<li>adding / removing totals</li>
<li>preserving formatting</li>
<li>merge labels</li>
<li>Data can be brought in from more than one source</li>
<li>The idea can be extended to pivot charts</li>
<li>Excel 2007 allows even greater functionality, such as 64 levels of sorting rather than 3, more rows and columns and colouring the pivot table more prettily.</li>
</ul>
<h3>Handle with care</h3>
<p>Earlier I mentioned that pivot tables were semi dynamic. But they do not automatically update. That is, if you change the source data, the data in the pivot table does not automatically recalculate (F9 doesn’t work here). In earlier versions of Excel, if you have more than one pivot table, each pivot table has to be selected and then the refresh icon clicked on the PivotTable toolbar <img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_12_-_Refresh_Icon.gif" alt="" />, or PivotTable -&gt; Refresh Data. This is quite cumbersome. However, in Excel 2007, you can refresh them all (in the Ribbon, on the PivotTable Tools Options tab, select the Refresh icon in the ‘Data’ section and choose ‘Refresh All’).</p>
<p>Pivot Tables can play havoc with underlying worksheet formats (for example, the underlying grey background keeps disappearing)</p>
<p>The Calculated Fields calculations do not always work as intended, especially with ‘*’ and ‘/’: it is a case of suck it and see</p>
<p>Get it right though and a pivot table can provide useful analyses that would take half a day to write as a formula (and about the same time for Excel to calculate…).</p>
<p>Look out for more on pivot tables in future editions.</p>
]]></content:encoded>
			<wfw:commentRss>http://funexcel.adisurya.com/spreadsheet-skills-the-power-of-pivot-tables.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spreadsheet Skills: Working With Multiple Criteria</title>
		<link>http://funexcel.adisurya.com/spreadsheet-skills-working-with-multiple-criteria.html</link>
		<comments>http://funexcel.adisurya.com/spreadsheet-skills-working-with-multiple-criteria.html#comments</comments>
		<pubDate>Wed, 08 Jul 2009 08:44:45 +0000</pubDate>
		<dc:creator>Adi Surya</dc:creator>
				<category><![CDATA[Logical]]></category>
		<category><![CDATA[Criteria]]></category>

		<guid isPermaLink="false">http://funexcel.adisurya.com/spreadsheet-skills-working-with-multiple-criteria.html</guid>
		<description><![CDATA[This month we look at another common modelling problem: summarising data that meets multiple criteria. By Liam Bastick, associate director of BPM Analytical Empowerment.

Query
I want to summarise the sales made by my business that meet various criteria (for example, sales for a particular region for a particular product). SUMIF only works with one criterion. Due [...]]]></description>
			<content:encoded><![CDATA[<p><strong>This month we look at another common modelling problem: summarising data that meets multiple criteria. By Liam Bastick, associate director of BPM Analytical Empowerment.</strong></p>
<h3>
Query</h3>
<p>I want to summarise the sales made by my business that meet various criteria (for example, sales for a particular region for a particular product). SUMIF only works with one criterion. Due to end user requirements, I don’t wish to use pivot tables. Is there any way I can obtain the analysis by using a formula?</p>
<h3>Advice</h3>
<p>This is an example of conditional summing &#8211; where you want to add numerical values provided that they meet certain criteria.</p>
<p>For example &#8211; imagine you were reviewing this data summary:</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_01_-_Example_Dummy_Database.jpg" alt="" /></p>
<p><strong>Example ‘dummy’ database</strong></p>
<p>The function <strong>SUMIF(range,criterion,sum_range)</strong> is ideal for summing data based on one criterion:</p>
<ul>
<li><strong>range</strong> is the array that you wanted evaluated by the criterion (cells F12:F21 in this instance)</li>
<li><strong>criterion</strong> in the form of a number, expression, or text defines which cell(s) will be added, for example, &#8220;X”, 1, G26 or “&lt;&gt;”&amp;G27 (this last one means ‘not equal to the value in cell G27’)</li>
<li><strong>sum_range</strong> are the actual cells to be added if their corresponding cells in <strong>range</strong> match the criterion.</li>
</ul>
<p>So, to find the sales for Business Unit 1 in the above example, we would type <strong>=SUMIF(F12:F21,1,H12:H21)</strong> (which is $1,000). Or to find the total sales of Product X we might type <strong>=SUMIF(G12:G21,”X”,H12:H21)</strong> which is $1,200 (note that the text must be in inverted commas).</p>
<p><strong>This month’s problem: how would you find the total sales of Product Z in Business Unit 1 using a formula? </strong></p>
<p>That’s two criteria and SUMIF will not work with multiple conditions. Fortunately, there are several alternatives.</p>
<p>For once, I am going to stick with Excel 2003 and earlier, because there is a SUMIFS function in Excel 2007 that resolves our query in seconds:<br />
<strong>=SUMIFS(sum_range,criterion_range1,criterion1, criterion_range2,criterion2,…)</strong></p>
<p>But this function is new to Excel 2007, and is not backwards compatible with earlier versions of Excel.</p>
<p>I will consider other options instead.</p>
<h3>Concatenation</h3>
<p>It is often possible to cheat with SUMIF by making a ‘mega-criterion’ out of multiple criteria. This works on joining criteria together usually by using the ampersand (‘&amp;’) operator.</p>
<p>Let’s consider our example, slightly revised, from above.</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_01revised_-_Revised_Dummy_Database.jpg" alt="" /></p>
<p><strong>Revised, dummy database</strong></p>
<p>A new column has been inserted (column H), with a formula combining the contents of columns F and G (for example, the formula in cell H12 is =F12&amp;G12). Provided that all possible combinations are unique (that is, no duplicates can be generated), a simple SUMIF can then be applied – for example:<br />
<strong>=SUMIF(H12:H21,”1Z”,I12:I21)</strong>.</p>
<p>This is by far and away the simplest solution – if it works.</p>
<p>But it can fall down. In another example, the concatenation ”111” might refer to Product 1 in Business Unit 11 or Product 11 in Business Unit 1.</p>
<h3>Conditional Sum Wizard</h3>
<p>This wizard is not part of the default Excel package. It is an add-in &#8211; a supplementary programme that adds custom commands or features to Excel. Unless previously included, this add-in needs to be loaded. ALT+T+I (Tools -&gt; Add-Ins) is the keystroke that works in all versions of Excel.</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_02_-_Add-Ins_Dialog_Box.jpg" alt="" /></p>
<p><strong>Add-ins dialog box</strong></p>
<p>Once loaded, shortcut keys will not work (ALT+T+C gives rise to a conflict with Tools -&gt; Customize and possibly Tools -&gt; COM Add-Ins). In Excel 2003 and earlier versions, it can be located on the Tools dropdown menu, whereas in Excel 2007 it is in the final grouping, ‘Solutions’, of the ‘Formulas’ tab.</p>
<p>When activated, the user is prompted by a straightforward multistep wizard, as follows.</p>
<p><strong><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_03_-_Conditional_Sum_Wizard_Step_1.jpg" alt="" /></p>
<p>Step 1: Identify the database (including the column labels / ‘headers’)<br />
</strong></p>
<p><strong><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_04_-_Conditional_Sum_Wizard_Step_2.jpg" alt="" /></p>
<p>Step 2: Set the conditions<br />
</strong></p>
<p><strong><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_05_-_Conditional_Sum_Wizard_Step_3.jpg" alt="" /></strong></p>
<p><strong>Step 3: Insert the formula</strong></p>
<p>It is recommended that the second option is selected in Step 3, otherwise a formula is constructed containing hard code rather than cell references. This gives rise to a ‘static’ rather than ‘dynamic’ formula. Note that choosing this second option changes the number of steps from four to six.</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_06_-_Conditional_Sum_Wizard_Step_4.jpg" alt="" /></p>
<p><strong>Final step(s): (assumptions and) output location</strong></p>
<p>The final three steps simply require where the inputs/outputs should go.</p>
<p>In the example above, you can expect to get a formula similar to this:<br />
<strong>{=SUM(IF($F$12:$F$21=G26,IF($G$12:$G$21=G27,$H$12:$H$21,0),0))}</strong></p>
<p>The curly brackets at the beginning and the end of the formula cannot be typed in. If the formula had been manually generated, you would not press ENTER once the formula was written, but CTRL+SHIFT+ENTER.</p>
<p>This type of formula is known as an <strong>array formula</strong>. Array formulas perform multiple calculations on one or more sets of values, and then return either a single result (as in this instance) or multiple results across a range of cells.</p>
<p>Array formulae can be memory intensive and slow down a workbook’s calculation time significantly. The formulae are not always easy to follow &#8211; this is often exacerbated by the wizard using ‘nested’ functions (one inside another). In fact, with a little practice, it is often possible to write simpler, more efficient array formulae without the wizard.</p>
<p>But it’s a great place to start!</p>
<h3>Dbase Functions</h3>
<p>Perhaps one of the lesser known families of Excel functions is the Dbase family – for example, DSUM, DMAX, DMIN. Working similarly to their ‘non-D’ counterparts, these functions interrogate a database in a reasonably transparent way.</p>
<p>The key function for our query is <strong>DSUM(range,field,criteria)</strong>:</p>
<ul>
<li><strong>range</strong> is the entire array that you wanted evaluated by the criteria (in our example, cells F12:H21 – that is, the whole table where the first row must be the headings/column labels)</li>
<li><strong>field</strong> is the column heading cell reference, the column heading typed in inverted commas, or a number (without the quotation marks) which represents the position of the column within the array (1 for the first column, 2 for the second column, etc). In this instance <strong>field</strong> could be H11, “Sales” or 3</li>
<li><strong>criteria</strong> is the range of cells that contains the conditions to be specified. This can be highly flexible (the same heading can be used more than once for instance) as long as it includes at least one column label in the top row and at least one cell below each column label in order to specify the condition.</li>
</ul>
<p>From our example above, the following could be a criteria table:</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_07_-_Example_Criteria_Table.jpg" alt="" /></p>
<p><strong>Example criteria table</strong></p>
<p>Our formula in this case would be <strong>DSUM(F11:H21,3,F26:G27) (=$700)</strong>.</p>
<p>More than one row can be used. Criteria put in the same row are ‘AND’ criteria, so in our example above, to be summed, the Business Unit must be 1 AND the Product must be Z.</p>
<p>If more rows were added, each row is read as ‘OR’ criteria. For example:</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_08_-_Example_of_Another_Criteria_Table.gif" alt="" /></p>
<p><strong>Another example criteria table<br />
</strong><br />
Here, all sales are sold which relate to Business Unit 1 OR Product Z (=$2,600).</p>
<p>Dbase calculations are like halfway houses between formulas and pivot tables (that do not refresh automatically if data or assumptions are changed). Once mastered, they are fairly easy to construct and are quite transparent for users and developers alike. Unlike SUMIF and the Conditional Sum Wizard, OR criteria can easily be selected too.</p>
<p>Their main drawback here is if multiple results are required. The criteria tables needed may add significantly to the overall file size and confuse users as to which criteria table relates to which formula.</p>
<h3>Sumproduct</h3>
<p>This is my favourite function in Excel. For those who do not know it, <strong>SUMPRODUCT(array1*array2*&#8230;)</strong> appears quite humble upon first glance. Consider the following sales report:</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_09_-_Sales_Report.jpg" alt="" /></p>
<p><strong>Example sales report</strong></p>
<p>The sales in column H are simply the product of columns F and G, for example, the formula in cell H12 is simply <strong>=F12*G12</strong>. Then, to calculate the entire amount cell H19 sums column H. This could all be performed much quicker using the following formula:<br />
<strong>=SUMPRODUCT(F12:F17*G12:G17)</strong></p>
<p>SUMPRODUCT does exactly what it says on the tin. It sums the individual products.</p>
<p>How does this help the cause? It is all to do with the properties of TRUE and FALSE in Excel, namely:</p>
<ul>
<li>TRUE*number = number (for example, TRUE*7 = 7)</li>
<li>FALSE*number = 0 (for example, FALSE*7=0).</li>
</ul>
<p>In our earlier example (repeated below)<br />
<img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_01_-_Example_Dummy_Database.jpg" alt="" /></p>
<p><strong>Example ‘dummy’ database</strong></p>
<p>we can test columns F and G to check whether they equal our required values. SUMPRODUCT could be used as follows:<br />
<strong>=SUMPRODUCT((F12:F21=1)*(G12:G21=”Z”)*H12:H21)</strong>.</p>
<p>For the purposes of this calculation, (F12:F21=1) replaces the contents of cells F12:F21 with either TRUE or FALSE depending on whether the value contained in each cell equals 1 or not.</p>
<p>Similarly, (G12:G21=”Z”) replaces the contents of cells G12:G21 with either TRUE or FALSE depending on whether the value “Z” is contained in each cell.</p>
<p>The only time cells H12:H21 will be summed is when the corresponding cell in the arrays F12:F21 and G12:G21 are both TRUE. Then you will get TRUE*TRUE*number, which equals the said number.</p>
<p>Notice that SUMPRODUCT is not an array formula (you do not use CTRL+SHIFT+ENTER), but it is an array function, so again it can use a lot of memory making the calculation speed of the file slow down.</p>
<p>Used sparingly, it can be a highly versatile addition to the modeller’s repertoire. It is a sophisticated function, but once you understand how it works, you can start to use SUMPRODUCT for a whole array of problems (pun intended!).</p>
<p>This Excel file shows examples of all of the above solutions and may help you to choose which solution to use in which scenario.</p>
<p><strong><a title="Link to sampe excel file" href="http://www1.cimaglobal.com/cps/rde/xchg/SID-0AE7C4D1-FDC20B83/live/root.xsl/document_broker.htm?filename=BPM_-_Multiple_Criteria_Examples.xls" target="_new">Excel Example File</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://funexcel.adisurya.com/spreadsheet-skills-working-with-multiple-criteria.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spreadsheet Skills: Exorcising Phantom Links</title>
		<link>http://funexcel.adisurya.com/spreadsheet-skills-exorcising-phantom-links.html</link>
		<comments>http://funexcel.adisurya.com/spreadsheet-skills-exorcising-phantom-links.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 03:00:59 +0000</pubDate>
		<dc:creator>Adi Surya</dc:creator>
				<category><![CDATA[formula]]></category>
		<category><![CDATA[link]]></category>

		<guid isPermaLink="false">http://funexcel.adisurya.com/?p=18</guid>
		<description><![CDATA[We look at how to locate and remove unintended links. By Liam Bastick, associate director with BPM Analytical Empowerment.
Query
Whenever I open certain Excel workbooks, I get a message asking if I want to update the links. I’m unsure how to search my workbook to find out what these links are. Please help!

Update Links Prompt (Excel [...]]]></description>
			<content:encoded><![CDATA[<p><strong>We look at how to locate and remove unintended links. By Liam Bastick, associate director with BPM Analytical Empowerment.</strong></p>
<h3>Query</h3>
<p>Whenever I open certain Excel workbooks, I get a message asking if I want to update the links. I’m unsure how to search my workbook to find out what these links are. Please help!</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Fig1.Update-Links-Prompt.jpg" alt="" /></p>
<p><strong>Update Links Prompt (Excel 2003)</strong></p>
<h3>Advice</h3>
<p>In this instance, the user wishes to find the links and decide individually whether they should be retained or removed. (If the intention is merely to remove them, you may wish to consider the free Microsoft add-in, <a title="link to Delete Links Wizard" href="http://support.microsoft.com/kb/188449" target="new">Delete Links Wizard</a>.)</p>
<p>The first step is to ascertain what type of links you have. One way of doing this is to select Edit&#8211;&gt;Links in Excel 2003 or earlier, or use the Connections section of the Data tab (see graphic below) in Excel 2007. Also Alt + E + K, the keyboard shortcut, works in all versions of Excel.</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Edit-Links.fig2.jpg" alt="" /></p>
<p><strong>Location of Edit Links in Excel 2007</strong></p>
<p>However this command will not be available in all instances. If it is, you will probably have Formula Links. If Edit&#8211;&gt;Links is available, a dialog box will appear.</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Dialog-Box.fig3.jpg" alt="" /></p>
<p><strong>Edit Links dialog box (illustration)</strong></p>
<p>There may be more than one file linked. Upon inspection, you may notice that one or more file may simply be an older version of the active workbook. If so, the active workbook can be substituted for each file in turn by clicking on the Change Source button (Alt + N) and following the directions. This will remove these referencing errors.</p>
<p>You may not have access to some files and this may cause errors if the file is inadvertently updated. By selecting the Break Link button, these links can be replaced by their current values. This action cannot be undone so you may wish to save the file beforehand in order to rectify errors.</p>
<h3>Formula links</h3>
<p>If you do have formula links, it is relatively straightforward to search for them:</p>
<ul>
<li>Close all workbooks except the active workbook with the links in.</li>
<li>In Excel 2003 / earlier, on the Edit menu, click Find. In Excel 2007, click on Find &amp; Select on the Editing section of the Home tab – or use Ctrl + F in all versions.</li>
</ul>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Find-and-Select.fig5.jpg" alt="" /></p>
<p><strong>Location of Find &amp; Select in Excel 2007</strong></p>
<ul>
<li>Click Options</li>
<li>In the Find what box, enter [</li>
<li>In the Within box, click Workbook</li>
<li>In the Look In box, click Formulas</li>
<li>Click Find All</li>
<li>In the box at the bottom, look in the Formula column for formulas that contain [</li>
<li>To select the cell with a link, select the row in the box at the bottom.</li>
</ul>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Find-Dialog.fig4.jpg" alt="" /></p>
<p><strong>Find Dialog box (illustration)</strong></p>
<h3>Other ‘phantom’ links</h3>
<p>There are other types of links &#8211; often referred to as ‘phantom’ links as they are harder to locate than formula links. But once you know, it’s easy!</p>
<h3>Name links</h3>
<p>This is probably the most common cause of phantom links: names that reference ranges in other workbooks.</p>
<p>Using Define Name in Excel 2003 or earlier or Name Manager in Excel 2007 (or Ctrl + F3), we can get a list of all the names in the workbook:<br />
<img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Def-Name.fig6.jpg" alt="" /></p>
<p><strong>Define Name (Excel 2003 or earlier) </strong></p>
<p><strong><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/NameManager.fig7.jpg" alt="" /></strong></p>
<p><strong>Name Manager (Excel 2007)</strong></p>
<p>By scrolling through the list of names and examining the ‘Refers to’ section (a little cumbersome prior to Excel 2007, admittedly), names referring to other workbooks or containing erroneous references such as #REF! can be changed or deleted.</p>
<h3>Chart links</h3>
<p>If you have charts in your workbook, there are various places where hidden links could be lurking. Click on each text box or title and examine the formula bar, <img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Formula_Bar.fig8.jpg" alt="" />, for references to other workbooks.</p>
<p>Click on each data series in the chart and examine the SERIES formula for external references. These links can be removed by copying (as values!) the data located into the active workbook.</p>
<h3>Object links</h3>
<p>External references can also be attached to objects. The simplest way of reviewing objects in a workbook is to use the highly underrated Go To&#8211;&gt;Special function (use the F5 function key and then click Special). In the next dialog box, select Objects, then click OK.</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Go-To.fig9.jpg" alt="" /></p>
<p><strong>Go To Dialog Box  Go To Special: Selecting Objects</strong></p>
<p>By pressing the Tab key and examining the formula bar, each object can be reviewed in turn for external references.</p>
<h3>And finally…</h3>
<p>Once you have completed the above process, unless your workbook includes web queries containing parameters (this could be an article in itself), all links should now have been reviewed. If the intention was to remove all such links, simply save and reopen once all deletions have been made.</p>
<p>Source: CIMA Global Website</p>
]]></content:encoded>
			<wfw:commentRss>http://funexcel.adisurya.com/spreadsheet-skills-exorcising-phantom-links.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Spreadsheet skills: INDEX and MATCH make powerful combo</title>
		<link>http://funexcel.adisurya.com/spreadsheet-skills-index-and-match-make-powerful-combo.html</link>
		<comments>http://funexcel.adisurya.com/spreadsheet-skills-index-and-match-make-powerful-combo.html#comments</comments>
		<pubDate>Thu, 05 Mar 2009 02:54:02 +0000</pubDate>
		<dc:creator>Adi Surya</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[match]]></category>

		<guid isPermaLink="false">http://funexcel.adisurya.com/?p=15</guid>
		<description><![CDATA[We look at one of the most powerful combinations of Excel functions for looking up data: INDEX and MATCH. By Liam Bastick, associate director with BPM Analytical Empowerment.

Query
Preparing financial statements in Excel, I want to construct a formula that will tell me if my balance sheet is balancing, and, if not, which is the first [...]]]></description>
			<content:encoded><![CDATA[<p><strong>We look at one of the most powerful combinations of Excel functions for looking up data: INDEX and MATCH. By Liam Bastick, associate director with BPM Analytical Empowerment.</strong></p>
<h3>
Query</h3>
<p>Preparing financial statements in Excel, I want to construct a formula that will tell me if my balance sheet is balancing, and, if not, which is the first period that the misbalance occurs in.<br />
<strong></strong></p>
<p><strong><img src="http://www.cimaglobal.com/cps/files/live/images/Insight2005/fig1.balance-sheet-summary.jpg" alt="" /></p>
<p>Balance Sheet Summary Illustration</strong></p>
<h3>Advice</h3>
<p>This is a common modelling query. The usual suspects, LOOKUP and HLOOKUP / VLOOKUP do not work here:</p>
<ul>
<li>LOOKUP(lookup_value, lookup_vector,[result_vector]) gives the wrong date as the balance checks are not in strict ascending order (that is, ascending alphanumerically with no duplicates)</li>
<li>HLOOKUP(lookup_value,table_array,row_index_num,[range_lookup]) gives #VALUE! since the first row must contain the data to be ‘looked up’, but the Balance Check is in row 28 in our example above, whereas the dates we need to return are in row 6 – hence we get a syntax error.</li>
</ul>
<p>There is a solution, however: INDEX MATCH. They form a highly versatile tag team, but are worth introducing individually.</p>
<h3>Index</h3>
<p>Essentially, INDEX(array, row_num,[column_num]) returns a value or the reference to a value from within a table or range (list). For example, INDEX({7,8,9,10,11,12},3) returns the third item in the list {7,8,9,10,11,12}, that is 9. This could have been a range: INDEX(A1:A10,5) gives the value in cell A5, etc.</p>
<p>INDEX can work in two dimensions as well (hence the column_num reference). Consider the following example:</p>
<p><strong><img src="http://www.cimaglobal.com/cps/files/live/images/Insight2005/fig2Two-Dimensional-INDEX.jpg" alt="" /></p>
<p>Two Dimensional INDEX Example<br />
</strong><br />
INDEX(F11:L21,4,5) returns the value in the fourth row, fifth column of the table array F11:L21 (clearly 26 in the above illustration).</p>
<h3>Match</h3>
<p>MATCH(lookup_value,lookup_array,[match_type]) returns the relative position of an item in an array that (approximately) matches a specified value. It is not case sensitive.</p>
<p>The third argument, match_type, does not have to be entered, but for many situations, I strongly recommend that it is specified. It allows one of three values:</p>
<ul>
<li>match_type 1 [default if omitted]: finds the largest value less than or equal to the lookup_value – but the lookup_array must be in strict ascending order, limiting flexibility</li>
<li>match_type 0: probably the most useful setting, MATCH will find the position of the first value that matches lookup_value exactly. The lookup_array can have data in any order and even allows duplicates</li>
<li>match type -1: finds the smallest value greater than or equal to the lookup_value – but the lookup_array must be in strict descending order, again limiting flexibility.</li>
</ul>
<p>When using MATCH, if there is no (approximate) match, #N/A is returned (this may also occur if data is not correctly sorted depending upon match_type).</p>
<p>MATCH is fairly straightforward to use:<br />
<strong><br />
<img src="http://www.cimaglobal.com/cps/files/live/images/Insight2005/fig3.MATCH-Example.jpg" alt="" /></p>
<p>MATCH Example<br />
</strong><br />
In the figure above, MATCH(“d”,F12:F22,0) gives a value of 6, being the relative position of the first ‘d’ in the range. Note that having match_type 0 here is important. The data contains duplicates and is not sorted alphanumerically. Consequently, match_types 1 and -1 would give the wrong answer: 7 and #N/A respectively.</p>
<h3>Index Match</h3>
<p>While useful functions in their own right, combined they form a highly versatile partnership. Consider our original problem:<br />
<strong><br />
<img src="http://www.cimaglobal.com/cps/files/live/images/Insight2005/fig4.balance-sheet-summary.jpg" alt="" /></p>
<p>Balance Sheet Summary Illustration (Revisited)</strong></p>
<p>MATCH(1,J28:O28,0) equals 5, that is, the first period the balance sheet does not balance in is Period 5. But we can do better than that.</p>
<p>INDEX(J6:O6,5) equals May-09, so combining the two functions:<br />
INDEX(J6:O6,MATCH(1,J28:O28,0)) equals May-09 in one step, and answers our reader’s query.</p>
<p>Note how flexible this combination really is. We do not need to specify an order for the lookup range, we can have duplicates and the value to be returned does not have to be in a row / column below / to the right of the lookup range (indeed, it can be in another workbook never mind another worksheet!).</p>
<p>With a little practice, the above technique can be extended to match items on a case sensitive basis, use multiple criteria and even ‘grade’. <a title="Link to trial excel spreadsheet" href="http://www1.cimaglobal.com/cps/rde/xchg/SID-0AE7C4D1-DC07746A/live/root.xsl/document_broker.htm?filename=Copy_of_INDEX_MATCH_Examples_%283%29.xls" target="_new">The attached workbook provides several examples as illustrations</a>.</p>
<p>Source: CIMA Global Website</p>
]]></content:encoded>
			<wfw:commentRss>http://funexcel.adisurya.com/spreadsheet-skills-index-and-match-make-powerful-combo.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Spreadsheet Doctor: turn on the style</title>
		<link>http://funexcel.adisurya.com/spreadsheet-doctor-turn-on-the-style.html</link>
		<comments>http://funexcel.adisurya.com/spreadsheet-doctor-turn-on-the-style.html#comments</comments>
		<pubDate>Fri, 16 Jan 2009 00:35:51 +0000</pubDate>
		<dc:creator>Adi Surya</dc:creator>
				<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://funexcel.adisurya.com/?p=13</guid>
		<description><![CDATA[How to make your spreadsheets easier to read and more attractive using formats and styles. By Liam Bastick, associate director with BPM Analytical Empowerment.
Query
I’d like to make the data in my Excel spreadsheets more attractive and easier to read when I present it to other people. Do you have any tips?
Advice
Take the illustration below. How [...]]]></description>
			<content:encoded><![CDATA[<p><strong>H</strong><strong>ow to make your spreadsheets easier to read and more attractive using formats and styles. By Liam Bastick, associate director with BPM Analytical Empowerment.</strong></p>
<h3>Query</h3>
<p>I’d like to make the data in my Excel spreadsheets more attractive and easier to read when I present it to other people. Do you have any tips?</p>
<h3>Advice</h3>
<p>Take the illustration below. How easy is it to find the key data, or see which cells should be changed to facilitate updated information? How easy are these things in your own spreadsheets? Have you ever noticed that spreadsheets built by colleagues do not look similar to your own?</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_01_-_Illustration1.jpg" alt="" /></p>
<p>Two key qualities of a good spreadsheet are consistency and transparency.</p>
<p><strong>Examples of consistency:</strong></p>
<ul>
<li>formulae are copied without amendment across rows</li>
<li>cells with a common purpose (for example, inputs that are assumptions, such as inflation rates) are formatted similarly</li>
<li>titles are positioned in the same cells in different worksheets</li>
<li>assumption cells (cells containing data that can be changed by the user to affect model outputs) are unlocked, where all other cells are locked, so that only these cells can be changed.</li>
</ul>
<p><strong>Examples of transparency:</strong></p>
<ul>
<li>assumptions are formatted to be instantly recognisable</li>
<li>key outputs (for example, totals) can be identified immediately, with their derivation made obvious.</li>
</ul>
<p>Excel’s ‘Styles’ features can assist with both transparency and consistency.</p>
<h3>Formats and styles</h3>
<p>These terms are often used interchangeably, but they are not the same thing. To see this, select any cell in Excel and apply the shortcut keystroke ctrl + 1. This shortcut brings up the Format Cells dialog box:</p>
<p><strong>Excel’s Format Cells Dialog Box:</strong></p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_02_-_Format_Cells_Dialog_Box.gif" alt="" hspace="5" vspace="5" width="399" height="385" /></p>
<p>Excel has six format properties: Number, Alignment, Font, Border, Patterns and Protection. A style is simply a pre defined set of these various formats.</p>
<p>With a little forethought, these styles can be set up and applied to a worksheet cell or range very easily.</p>
<p>Creating your own styles is straightforward with Excel’s Style dialog box.</p>
<p>In Excel 2003 (and earlier) go to Format&#8211;&gt; Style (Alt + O + S).</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_03_-_Format_Style_Excel_2003.gif" alt="" hspace="5" vspace="5" width="227" height="211" /></p>
<p>In Excel 2007, go to the Home tab, click the arrow in the bottom right corner and then select ‘New Cell Style…’ (Alt + N):</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_04_-_Format_Style_Excel_2007.gif" alt="" hspace="5" vspace="5" width="581" height="89" /></p>
<p>Either way, the dialog box appears:</p>
<p>Excel’s Style Dialog Box (Excel 2003 illustration)</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_05_-_Style_Dialog_Box_Excel_2003.gif" alt="" hspace="5" vspace="5" width="387" height="255" /></p>
<p><strong></strong></p>
<p><strong>Example<br />
</strong>Let’s create an assumption format for entering data in dollars. First, select a cell or range of cells. Then, call up the above dialog box. The dropdown box (highlighted above) can be edited. We’ll change the name to ‘Dollar Assumptions” and click the ‘Modify button’ (Excel 2003 and earlier) or the ‘Format’ button (Excel 2007).</p>
<p>The Format Cells dialog box reappears:</p>
<ul>
<li>Number: select the Currency category, with zero decimal places and apply the ‘$’ symbol</li>
<li>Alignment: Horizontal – Right (Indent) with zero indent</li>
<li>Patterns: select an ‘easy-on-the-eye’ colour such as pale green</li>
<li>Protection: uncheck the Locked check box (allows the cell to be changed in a protected worksheet)</li>
<li>Click ‘OK’ to return to the Style dialog box.</li>
</ul>
<p>Note that no formats have been ascribed for Font or Border in this example. We don’t want the style to control (that is, overwrite) these properties, so the ‘Style includes’ check boxes for these two format properties should be unchecked:</p>
<p><strong>Dollar Assumptions:</strong></p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_06_-_Dollar_Assumptions_Style.gif" alt="" hspace="5" vspace="5" width="387" height="255" /></p>
<p>By clicking ‘OK’ or ‘Add’, the cell or range has now been formatted with the ‘Dollar Assumptions’ style.<br />
Now that this style has been added, in Excel 2007 you simply select the range and then click on the style in the Styles gallery on the Home tab.</p>
<p>Applying styles in Excel 2003 (and earlier) is just as simple once you have made a customisation.</p>
<p>For pre Excel 2007, you can call up the Style dialog box and then choose the appropriate style and click ‘OK’. This is a little cumbersome. It is easy to incorporate this Style dropdown box onto an existing toolbar and dispense with several of these steps.</p>
<p>By right clicking on any toolbar or using the shortcut (Alt + T + C), call up the Customize dialog box and select the Commands tab, then the Format category.</p>
<p><strong>Customize Dialog Box:</strong></p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_07_-_Customize_Dialog_Box.gif" alt="" hspace="5" vspace="5" width="385" height="366" /></p>
<p>Choose the Style dropdown using the left click on the mouse and drag it onto an existing toolbar of your choice (then close the dialog box).</p>
<p><strong>Style Dropdown Attached to Formatting Toolbar (Example)</strong></p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_08_-_Style_Dropdown_Embedded.gif" alt="" hspace="5" vspace="5" width="376" height="85" /><br />
Easy!</p>
<p><strong>Updating and retaining styles</strong><br />
The difference between Formats and Styles becomes obvious when you realise you want to change (update) a style. Just select one of the cells that the style is attached to and call up the Style dialog box in the usual way, modifying the style as required. Click ‘OK’ when finished. Note that every cell in the open workbook that uses this style has automatically updated. Once you start using styles, you will never look back!</p>
<p>You will only want to set up styles once. When you’re finished, simply save the file as a template using File&#8211;&gt;Save As (you may wish to delete or remove formatted cells first so that you have a blank workbook). Using File&#8211;&gt;New (or Office Menu&#8211;&gt;New&#8211;&gt;My Templates in Excel 2007) will call up your saved styles.</p>
<p><strong>Styles – before and after</strong><br />
Returning to our original query, which do you prefer?</p>
<p>Before Styles:</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_09_-_Before_Styles1.jpg" alt="" /></p>
<p>After Styles:</p>
<p><img src="http://www1.cimaglobal.com/cps/files/live/images/Insight2005/Image_10_-_After_Styles1.jpg" alt="" /></p>
<p>Source: CIMA Global Website</p>
]]></content:encoded>
			<wfw:commentRss>http://funexcel.adisurya.com/spreadsheet-doctor-turn-on-the-style.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>IF Function Memudahkan Anda Melakukan Keputusan</title>
		<link>http://funexcel.adisurya.com/if-function-memudahkan-anda-melakukan-keputusan.html</link>
		<comments>http://funexcel.adisurya.com/if-function-memudahkan-anda-melakukan-keputusan.html#comments</comments>
		<pubDate>Thu, 22 May 2008 05:46:34 +0000</pubDate>
		<dc:creator>Adi Surya</dc:creator>
				<category><![CDATA[Logical]]></category>
		<category><![CDATA[Function]]></category>

		<guid isPermaLink="false">http://funexcel.adisurya.com/?p=6</guid>
		<description><![CDATA[Dalam pekerjaan kita seharian mesti akan melibatkan hal membuat keputusan. Data-data harus dianalisis dan diberikan petunjuk sewajarnya untuk dilaporkan kepada pihak yang berkenaan.
MS Excel telah menyediakan beberapa function logical yang boleh digunakan. Diantaranya adalah IF() function.
Syntax: IF(logical_test,value_if_true,value_if_false)
logical_test melibatkan sebarang penyataan logik BENAR atau SALAH. Sebagai contoh, jika cell A10 sama dengan 100 adalah BENAR. Ia [...]]]></description>
			<content:encoded><![CDATA[<p>Dalam pekerjaan kita seharian mesti akan melibatkan hal membuat keputusan. Data-data harus dianalisis dan diberikan petunjuk sewajarnya untuk dilaporkan kepada pihak yang berkenaan.</p>
<p>MS Excel telah menyediakan beberapa function logical yang boleh digunakan. Diantaranya adalah IF() function.</p>
<p><strong>Syntax: IF(logical_test,value_if_true,value_if_false)</strong></p>
<p><strong>logical_test</strong> melibatkan sebarang penyataan logik BENAR atau SALAH. Sebagai contoh, jika cell A10 sama dengan 100 adalah BENAR. Ia juga boleh melibatkan sebarang pengiraan (+, &#8211; , /, %, *) atau perbandingan (&gt;, &lt;, =&gt;, =&lt;, &lt;&gt;).</p>
<p><strong>value_if_true</strong> keputusan sekiranya logical_test adalah BENAR. Hasil boleh dipersembahkan secara single value/text, sebarang bentuk pengiraan atau function. Sebagai contoh, sekiranya keputusan BENAR untuk logical_test adalah &#8220;Over Budget&#8221;, maka keputusan akan menunjukkan &#8220;Over Budget&#8221;. Sebaliknya, keputusan akan menunjukkan keputusan value_if_false.</p>
<p><strong>value_if_false</strong> keputusan sekiranya logical_test adalah SALAH. Hasil boleh dipersembahkan secara single value/text, sebarang bentuk pengiraan atau function.</p>
<p>Anda boleh melakukan 64 operasi IF() function secara serentak dalam satu formula dan kombinasi mana-mana function yang bersesuaian. =IF(logical_value,IF(logical_value,IF(logical_value,value_if_true,value_if_false),value_if_false),value_if_false)</p>
<p><strong>Contoh:</strong></p>
<p>Anda ingin memaparkan keputusan Grade mengikut Result yang diperolehi seperti dibawah.</p>
<p><a href="http://funexcel.adisurya.com/wp-content/uploads/2008/05/if-before.gif"><img class="alignnone size-full wp-image-7" title="if-before" src="http://funexcel.adisurya.com/wp-content/uploads/2008/05/if-before.gif" alt="" width="402" height="206" /></a></p>
<ol>
<li>Taip di cell B24 formula berikut: =IF(A25=&#8221;D&#8221;,&#8221;Distinction&#8221;,IF(A25=&#8221;P&#8221;,&#8221;Pass&#8221;,IF(A25=&#8221;C&#8221;,&#8221;Credit&#8221;,&#8221;N/A&#8221;)))</li>
<li>Copy &amp; paste formula ke cell yang berikutnya.</li>
</ol>
<p><a href="http://funexcel.adisurya.com/wp-content/uploads/2008/05/if-after1.gif"><img class="alignnone size-full wp-image-9" title="if-after1" src="http://funexcel.adisurya.com/wp-content/uploads/2008/05/if-after1.gif" alt="" width="500" height="140" /></a></p>
<p>Bagaimana jika melibatkan beberapa operasi atau keputusan? Gambar dibawah menunjukkan keputusan laporan jualan mengikut produk. Setiap produk mempunyai discount yang berbeza berdasarkan category. Tax 6% akan dikenakan kepada amount jualan melebihi 2000.</p>
<p><a href="http://funexcel.adisurya.com/wp-content/uploads/2008/05/if-nested.gif"><img class="alignnone size-full wp-image-10" title="if-nested" src="http://funexcel.adisurya.com/wp-content/uploads/2008/05/if-nested.gif" alt="" width="500" height="253" /></a></p>
<ol>
<li>Taip formula berikut di cell E9:<br />
=C9*D9*(1-IF(B9=&#8221;S&#8221;,$J$13,IF(B9=&#8221;P&#8221;,$J$14,0)))<br />
Explanation: =Price x Qty(1-IF(Category=&#8221;S&#8221;,15%,IF(Category=&#8221;P&#8221;,25%,0)))</li>
<li>Taip formula berikut di cell F9:<br />
=IF(E9&gt;2000,E9*6%,0)</li>
<li>Copy &amp; paste formula ke cell berikutnya.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://funexcel.adisurya.com/if-function-memudahkan-anda-melakukan-keputusan.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autofill Menggunakan Mouse</title>
		<link>http://funexcel.adisurya.com/autofill-menggunakan-mouse.html</link>
		<comments>http://funexcel.adisurya.com/autofill-menggunakan-mouse.html#comments</comments>
		<pubDate>Wed, 21 May 2008 05:46:36 +0000</pubDate>
		<dc:creator>Adi Surya</dc:creator>
				<category><![CDATA[Shortcut]]></category>
		<category><![CDATA[autofill]]></category>

		<guid isPermaLink="false">http://funexcel.adisurya.com/?p=11</guid>
		<description><![CDATA[Cara mudah untuk anda copy atau autofill kandungan cell kebawah adalah menggunakan mouse.

Letakkan kedudukan cursor pada cell yang ingin di copy
Gerakkan mouse ke hujung bucu kanan bawah cell sehingga mouse pointer bertukar ke +
Apabila pointer bertukar ke +, double click mouse.


Penting: Ianya akan hanya berfungsi apabila column sebelumnya mempunyai data. Sebagai contoh gambar diatas, column [...]]]></description>
			<content:encoded><![CDATA[<p>Cara mudah untuk anda copy atau autofill kandungan cell kebawah adalah menggunakan mouse.</p>
<ol>
<li>Letakkan kedudukan cursor pada cell yang ingin di copy</li>
<li>Gerakkan mouse ke hujung bucu kanan bawah cell sehingga mouse pointer bertukar ke +</li>
<li>Apabila pointer bertukar ke +, double click mouse.</li>
</ol>
<p><a href="http://funexcel.adisurya.com/wp-content/uploads/2008/05/auto-fill_mouse.gif"><img class="alignnone size-full wp-image-12" title="auto-fill_mouse" src="http://funexcel.adisurya.com/wp-content/uploads/2008/05/auto-fill_mouse.gif" alt="" width="291" height="194" /></a></p>
<p><strong>Penting:</strong> Ianya akan hanya berfungsi apabila column sebelumnya mempunyai data. Sebagai contoh gambar diatas, column A perlu ada data. Apabila mouse di double click, ianya akan autofill sehingga mana column sebelumnya, iaitu cell B31.</p>
<p>Sekiranya anda ingin autofill untuk tarikh, bulan atau tahun juga boleh dilakukan.</p>
]]></content:encoded>
			<wfw:commentRss>http://funexcel.adisurya.com/autofill-menggunakan-mouse.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tukar Text Kepada Huruf Kecil Atau Besar</title>
		<link>http://funexcel.adisurya.com/tukar-text-kepada-huruf-kecil-atau-besar.html</link>
		<comments>http://funexcel.adisurya.com/tukar-text-kepada-huruf-kecil-atau-besar.html#comments</comments>
		<pubDate>Tue, 20 May 2008 08:33:36 +0000</pubDate>
		<dc:creator>Adi Surya</dc:creator>
				<category><![CDATA[Text]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://funexcel.adisurya.com/?p=5</guid>
		<description><![CDATA[Anda pernah mengalami, user key-in data dalam huruf besar atau huruf kecil dan anda terpaksa menukar data-data tersebut ke standard format? Bagaimana anda menukar data-data tersebut? Satu persatu? Teruk!
Ok, sebenarnya ada cara mudah yang anda boleh lakukan iaitu menggunakan function berikut:

UPPER() &#8211; menukar kandungan cell kepada HURUF BESAR
lower() &#8211; menukar kandungan cell kepada huruf kecil
Proper() [...]]]></description>
			<content:encoded><![CDATA[<p>Anda pernah mengalami, user key-in data dalam huruf besar atau huruf kecil dan anda terpaksa menukar data-data tersebut ke standard format? Bagaimana anda menukar data-data tersebut? Satu persatu? Teruk!</p>
<p>Ok, sebenarnya ada cara mudah yang anda boleh lakukan iaitu menggunakan function berikut:</p>
<ul>
<li>UPPER() &#8211; menukar kandungan cell kepada HURUF BESAR</li>
<li>lower() &#8211; menukar kandungan cell kepada huruf kecil</li>
<li>Proper() &#8211; menukar kandungan cell kepada Huruf Besar Pada Awal Perkataan</li>
</ul>
<p>Sebagai contoh, anda ingin tukar kandungan di cell B5 &#8220;sAya suKa MaKaN PisAnG&#8221;. Caranya adalah,</p>
<ul>
<li>pergi ke cell yang anda ingin keluarkan output, cth C6</li>
<li>taip =UPPER(B5) untuk HURUF BESAR, =lower(B5) untuk huruf kecil, =Proper(B5) untuk Huruf Besar Pada Awal Perkataan.</li>
<li>copy formula tersebut kepada cell yang lain</li>
</ul>
<p>Mudah bukan? Selamat mencuba <img src='http://funexcel.adisurya.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://funexcel.adisurya.com/tukar-text-kepada-huruf-kecil-atau-besar.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
