{"id":1237,"date":"2021-02-26T16:11:08","date_gmt":"2021-02-26T08:11:08","guid":{"rendered":"https:\/\/www.yohz.com\/blogs\/?p=1237"},"modified":"2021-02-26T16:11:08","modified_gmt":"2021-02-26T08:11:08","slug":"why-do-you-need-to-define-a-period-for-the-irr-mirr-and-npv-financial-functions-in-easy-excel-analysis-and-sql-data-analysis","status":"publish","type":"post","link":"https:\/\/www.yohz.com\/blogs\/2021\/02\/26\/why-do-you-need-to-define-a-period-for-the-irr-mirr-and-npv-financial-functions-in-easy-excel-analysis-and-sql-data-analysis\/","title":{"rendered":"Why do you need to define a period for the IRR, MIRR and NPV financial functions in Easy Excel Analysis and SQL Data Analysis"},"content":{"rendered":"<p><a href=\"https:\/\/www.yohz.com\/ya_eea_overview.htm\">Easy Excel Analysis<\/a> and <a href=\"https:\/\/www.yohz.com\/sda_details.htm\">SQL Data Analysis<\/a> added support for financial functions in version 2.\u00a0 One quirk you may have noticed is that for the IRR, MIRR, and NPV functions, you need to enter the column containing a period.\u00a0 Excel doesn&#8217;t require this, so why is it required here?<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1238\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/stats03.png\" alt=\"\" width=\"715\" height=\"284\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/stats03.png 715w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/stats03-300x119.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/stats03-624x248.png 624w\" sizes=\"(max-width: 715px) 100vw, 715px\" \/><\/p>\n<p>Let&#8217;s take a step back and use a simple example in Excel to explain this requirement.\u00a0 Say we have a single investment we want to calculate the NPV for.\u00a0 We would list the net cash flow in chronological order and calculate the NPV accordingly.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1239\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv01.png\" alt=\"\" width=\"577\" height=\"228\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv01.png 577w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv01-300x119.png 300w\" sizes=\"(max-width: 577px) 100vw, 577px\" \/><\/p>\n<p>The point to note is that the order of the net cash flow needs to be sorted by period to be accurate.\u00a0 If the values were not sorted, we would not get the correct value e.g.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1240\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv02.png\" alt=\"\" width=\"572\" height=\"225\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv02.png 572w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv02-300x118.png 300w\" sizes=\"(max-width: 572px) 100vw, 572px\" \/><\/p>\n<p>Now say we have to deal with multiple &#8216;groups&#8217; of investments.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1241\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv03.png\" alt=\"\" width=\"798\" height=\"478\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv03.png 798w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv03-300x180.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv03-768x460.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv03-624x374.png 624w\" sizes=\"(max-width: 798px) 100vw, 798px\" \/><\/p>\n<p>In the example above, we are calculating the NPV for each investment.\u00a0 In <a href=\"https:\/\/www.yohz.com\/ya_eea_overview.htm\">Easy Excel Analysis<\/a> \/\u00a0<a href=\"https:\/\/www.yohz.com\/sda_details.htm\">SQL Data Analysis<\/a>, we get the same values when we group our data by the <strong>Investment<\/strong> column.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1242\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv04.png\" alt=\"\" width=\"567\" height=\"505\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv04.png 567w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv04-300x267.png 300w\" sizes=\"(max-width: 567px) 100vw, 567px\" \/><\/p>\n<p>Now say we want to compute the NPV of each category of investment.\u00a0 In Excel, we can&#8217;t just sort by the <strong>Category<\/strong> column to compute the NPV.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1245\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv07.png\" alt=\"\" width=\"800\" height=\"464\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv07.png 800w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv07-300x174.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv07-768x445.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv07-624x362.png 624w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>neither can we just sort by both the <strong>Category<\/strong> and <strong>Period<\/strong> columns this way:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1244\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv06.png\" alt=\"\" width=\"782\" height=\"471\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv06.png 782w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv06-300x181.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv06-768x463.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv06-624x376.png 624w\" sizes=\"(max-width: 782px) 100vw, 782px\" \/><\/p>\n<p>The correct way is to sum the <strong>Net cash flow<\/strong> values for each period by category i.e.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1246\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv08.png\" alt=\"\" width=\"780\" height=\"369\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv08.png 780w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv08-300x142.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv08-768x363.png 768w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv08-624x295.png 624w\" sizes=\"(max-width: 780px) 100vw, 780px\" \/><\/p>\n<p>To perform the same computation In <a href=\"https:\/\/www.yohz.com\/ya_eea_overview.htm\">Easy Excel Analysis<\/a> and <a href=\"https:\/\/www.yohz.com\/sda_details.htm\">SQL Data Analysis<\/a>, we just drag the <strong>Category<\/strong> column to the grouping area like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1249\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv11.png\" alt=\"\" width=\"452\" height=\"497\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv11.png 452w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv11-273x300.png 273w\" sizes=\"(max-width: 452px) 100vw, 452px\" \/><\/p>\n<p>That is the reason why <a href=\"https:\/\/www.yohz.com\/ya_eea_overview.htm\">Easy Excel Analysis<\/a> and <a href=\"https:\/\/www.yohz.com\/sda_details.htm\">SQL Data Analysis<\/a> requires a <strong>period<\/strong> value when calculating NPV, IRR and XIRR.\u00a0 It uses the values in that column to determine how to group the cash flow values when grouping rows together.<\/p>\n<p>To see the NPV value by individual investments,\u00a0 we just drag the <strong>Investment<\/strong> column to the grouping area.\u00a0 Now we can easily see the NPV per category and per investment.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1250\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv13.png\" alt=\"\" width=\"413\" height=\"544\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv13.png 413w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2021\/02\/npv13-228x300.png 228w\" sizes=\"(max-width: 413px) 100vw, 413px\" \/><\/p>\n<p>Thus it&#8217;s just a matter of dragging and dropping which columns you want to group by, and <a href=\"https:\/\/www.yohz.com\/ya_eea_overview.htm\">Easy Excel Analysis<\/a> \/\u00a0<a href=\"https:\/\/www.yohz.com\/sda_details.htm\">SQL Data Analysis<\/a>\u00a0will calculate the NPV for you <span style=\"text-decoration: underline;\">at each grouping level<\/span>.\u00a0 It could not be easier.<\/p>\n<p>Download a 14-day trial of <a href=\"https:\/\/www.yohz.com\/ya_eea_overview.htm\">Easy Excel Analysis<\/a> or <a href=\"https:\/\/www.yohz.com\/sda_details.htm\">SQL Data Analysis<\/a>, and start analyzing data in ways you never could in Excel, or would never do because it was too time consuming.<\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/www.yohz.com\/blogs\/2021\/02\/26\/why-do-you-need-to-define-a-period-for-the-irr-mirr-and-npv-financial-functions-in-easy-excel-analysis-and-sql-data-analysis\/\" action=\"like\" colorscheme=\"light\" layout=\"button\"  size=\"small\"><\/fb:like><\/div><div class=\"fb-share-button  \" data-href=\"https:\/\/www.yohz.com\/blogs\/2021\/02\/26\/why-do-you-need-to-define-a-period-for-the-irr-mirr-and-npv-financial-functions-in-easy-excel-analysis-and-sql-data-analysis\/\" data-type=\"button\" data-size=\"small\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Easy Excel Analysis and SQL Data Analysis added support for financial functions in version 2.\u00a0 One quirk you may have noticed is that for the IRR, MIRR, and NPV functions, you need to enter the column containing a period.\u00a0 Excel doesn&#8217;t require this, so why is it required here? Let&#8217;s take a step back and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[82,86],"tags":[83,87],"_links":{"self":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/1237"}],"collection":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/comments?post=1237"}],"version-history":[{"count":2,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/1237\/revisions"}],"predecessor-version":[{"id":1307,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/1237\/revisions\/1307"}],"wp:attachment":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/media?parent=1237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/categories?post=1237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/tags?post=1237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}