Saturday, November 28, 2020

How to Create a Data Table in Excel

Ernesto Hontoria

A Data Table is a wonderful Excel solution to automate sensitivity analysis, and to help us to understand the influence of one or two variables in the outcome of an Excel model. The tool works auto populating the results of the model in a table, in a similar way one person would manually do changing the value of a variable and taking notes of the results. In other words, you can use a data table to automatically populate the results of different incomes in a table.

Let see how the Data Tables work with an example:

Assume you want to rent a store to sell shoes. The rent is $ 1,000 a month plus $300 by month in utilities. You want to know how many pairs of shoes you need to sell every month just to cover the rent and utilities, before making any deal. The range of selling prices, for the shoes you plan to sell, is between $50 and $100, and you know that the average margin for the industry is around is 30%.

Here are the steps to build the data table:

  1. Create an excel model with variables in independent cells like the picture below. Cell C9 equals C7 + C8, while F9 equals F7 times F8. Units to Cover Fixed cost in cell F12 =  C9/F9
    Figure 1: Creating a model in Excel

  2. Let’s starts creating one variable data table to analyze the price effect. Type the range of prices you want to analyze in cells E13 to E18.
    Figure 2: Creating a One Variable Data Table

  3. Select the range E12:F18, then on the Data tab, in the Forecast group, click What-If Analysis, click Data Table
    Figure 3: Inserting a Data Table

  4. A Data Table menu screen will pop up, asking for row and column input cell. Since the variable we want to analyze is the price, which is in cell F7, and we have populate the values in the column of the table, we link cell F7 to the column input, and click ok.
    Figure 4: Linking the Data Table to a variable in the model

Excel will populate the results in the table, and every time a variable is updated (Rent, Utilities, or Margin %) the Data Table will refresh its numbers automatically. Please, notice that you can also put the price in the rows, instead that in the column, and create an equivalent data table as shown in Figure 5. To do that you follow the same process but instead of linking the variable price (F7) to the column input, you link the variable to the row as shown in Figure 6.
Figure 5: One Variable Data Table - Horizontal

Figure 6: In an Horizontal One Variable Table link the row to the model

Data tables can be used as well to analyze how the combination of two variables impact your results. Say for example that you want to analyze the effect of the selling price combined with the margin. In that case you can build a data table with the values of one variable in the rows and the values of a second variable in the column as shown in Figure 7.

Figure 7: Two variables Data Table

  1. To build a two variable data table, type the values you want one of the variables to take, in the cells beside the formula; and the values you want for the second variable in the cells beneath the formula. For example, if you want to analyze the combination of margin and price in a two variable data table, and the formula is in cell F12.
  2. Type the different margin rates in cells G12 to M12, beside the formula.
  3. Type the prices in cells F13 to F18 beneath F12.
  4. Select the table from F12 (formula) to the last value in the table in both directions M18, then with the table selected, go to the Data tab, and click What-If Analysis in the Forecast group. Then click Data Table
    Figure 8: Inserting a Data Table

  5. The screen menu of the data table will pop up. Click in the 'Row input cell' box and select cell F8, to link the margin % values of your table (row) to the cell F8. Then click in the 'Column input cell' box and select cell F7, to link the prices in the column of you table to the variable F7 of your model. Then click ok.
    Figure 9: Linking the model to a two variables Data Table

Voila! Your table is ready! It is telling you that if you sell the shoes for 50 pesos at 20% margin you will need to sell 130 pairs of shoes to cover your fixed cost. If your price is 60 pesos you will need to sell 108 pairs at the same margin. And so on.

Sunday, November 15, 2020

Why the Carbon Tax?

 Ernesto Hontoria

My decision to support the Carbon Tax is not a political statement, but it heavily influences my voting decision. I support the Carbon Tax because I am convinced that it is an efficient way to include the hard to measure cost of polluting the air. In other words, polluting is not free and should be accounted for. But let me explain my thoughts from an economical perspective.

I used to work for an oil company that extracted heavy crude oil from the Orinoco belt. To extract the oil, the company goes to very pristine areas to drill wells, then extracts oil for many years. When the oil extraction is finalized, or oil wells are no longer profitable, the company closes those wells and restores the land as close as possible to its initial state. Leaving the land as you found it, is simply the right thing to do. Don’t you think so?

Normally, the directors of companies are responsible citizens that want to do the best they can to reduce the environmental damage. Of course, there are some that just look for the immediate return, and do not care for the consequences, but in my experience, in the oil industry, they are not a majority. For that reason, companies have in their books a reserve[1] for those restorations works, that they know, the company will need to do, once they finish their job. Therefore, every time an oil company clears an area to drill a new well, they start to accumulate funds in this reserve called ‘Remediation Cost’, that will hit the company economic results (their P&L) immediately.

This is the way that oil companies proceed with their oil wells, and oil fields as well, because it is visible and measurable. It is not in their best interest that people start sharing pictures of abandoned wells and oil fields, with clear damage done to the environment. It is best to restore the area, plant new trees, and leave as minimal visible disruption as possible. Environmental damages that are not visible, or measurable, are a different story, and for these it is hard to establish a ‘Remediation Cost’.

Air pollution enters into this last category of invisible and hard to measure remediation cost. Indeed, it is more difficult than just that; as it is not easy to discern who bears responsibility for this particular damage: the oil company which extracts the oil, or the consumer that burns that oil and liberates the CO2 in the air?

The carbon tax is finally addressing the issue of putting a cost to air pollution. It is not perfect, but so far, it is the most efficient way to start tackling the problem. Without this cost being considered, the transition to cleaner sources of energy will be more difficult.

Let me give you two examples that embrace the importance of having this cost in the equation. 

In the late 1800s, the supply and transportation cost of coal to drive the industrial revolution was a concern to the French government. So much that the government decided to fund studies to develop other sources of energy. As a result of these investments, in 1869, Augustin Mouchot tested in Paris the largest solar engine built till that moment, and two years later installed and experimental solar generator at the Tours library. He compiled his research and work into a book becoming a prominent figure in the field of solar power. In 1878, Mouchot won a Gold Medal for transforming the solar heat into energy. His solar powered mechanical invention was displayed at the Universal Exhibition in Paris. However, as coal became increasingly cheaper in France, the government resolved that solar energy was uneconomical, and ended Mouchot's research funding.[2]

Of course, at that time French authorities did not know the consequences of the CO2 emissions in the environment. But would they have got to the same conclusion if they had added the ‘Remediation Cost’ of burning coal? One way of getting an idea of the magnitude of this ‘Remediation Cost’ is calculating how much it would have costed to sequestrate all the CO2 that was liberated to the atmosphere from those coal powered factories that flourished in France.

The second example came in 1913, this time in Egypt. An engineer named Frank Shuman built the first solar thermal power station in the world. At the time of its construction, it was a cost competitive source of energy, able to pump 6,000 gallons of water per minute from the Nile River to adjacent cotton fields[3]. The plant was dismantled or destroyed (not sure) during the First World War, and after the war finished, the substitution of the coal for cheaper oil in the 1930s completely discouraged the advancement of solar energy. Oil powered plants replaced the missed solar facility.

This time was ‘cheaper oil’, that not having in its cost structure the ‘Remediation Cost’ of restoring the CO2 levels in our atmosphere, did not allow for an opportunity to develop a cleaner source of energy.

The carbon tax it is not a radical political idea, but an economic concept that helps to deal with a negative externality. Negative externalities occur when an individual or company does not have to pay the full cost their goods are causing to society; when the cost to society is greater than the cost consumer is paying for it. Pollution is a good example of a negative externality, and air pollution it is not different. What probably makes the carbon tax difficult to digest is to discover that we (ourselves) are the polluters. But in my mind is just a way to level the field to those who want to produce cleaner energy.


[1] A reserve in accounting are funds that are set apart (reserved) to deal with a potential cost in the future.

Monday, October 12, 2020

How much will cost you to fuel your new car in Canada?

Versión en castellano: ¿Cómo impacta tu bolsillo el consumo de combustible del carro que eliges?

Thinking on buying a new car? Different car models have different gas consumptions. Depending on your selection you will have a lower or higher environmental footprint, but as well, some additional cost to cover or savings to pocket. The following model will compare the gas consumption of two cars of your preference and will give you an idea of how much it will cost you in one year.


This model is using data provided by Statistics Canada:

Sunday, October 4, 2020

Evolution of the financial analyst

 Ernesto Hontoria

Versión en castellano: Evolución del analista financiero

Maybe I should not write about this because it reveals that I'm getting old, but I can't resist the temptation to tell what I think is a trend in the evolution of the financial analyst’ role. In my current position, I often educate young analysts in data search and interpretation, young people who often ask me how to progress in their careers.

Let's start by saying that in the years that I have been working in finance, I have witnessed how the position of the financial analyst has evolved following the technological changes experienced in the work environment. This evolution implies a change in the attributes that the financial analyst must meet to be able to skillfully carry out their tasks, and which, of course, weigh heavily when looking for jobs.

Allow me to make clear two points: The first one is that Excel is still a mandatory reference for financial analyst. The second is that it is no longer a differentiating factor. If 10 years ago companies were looking for analysts with solid financial knowledge and with moderate experience using spreadsheet, today's job demand assumes that financial analysts must have clear concepts and be able to handle Excel well. It is not conceived today a financial analyst who does not master Excel. They are asked at least to have skills in managing pivot tables, vlookups, hlookups, and in many job applications they are also asked to know how to program macros, something that – in my experience - few analysts master.

Until a couple of years ago my main concern when recruiting a financial analyst was their level of mastery of Excel, even more than his knowledge of financials’ concepts, which I presumed all they had. Recently my perspective has changed, not because Excel is no longer indispensable in the work environment, but because most analysts have become quite skilled with this tool and it is no longer a differentiating factor when recruiting them. Every day there are more graduates of business schools with good knowledge of the tool, and the factor that differentiates them is the use of new data visualization tools, or the ability to understand the management of more complex databases, and to understand statistics.

The situation has changed drastically in the last 15 to 20 years. If before it was difficult to get statistical data to make comparisons, nowadays companies have more data than the human mind can assimilate. A good financial analyst must be able to interpret them. It is no longer enough to say that sales rose 3 or 4 percent in the month of April. The analyst must be able to quickly interpret the mountain of numbers that are available to him in the company's databases, to determine which products, or combination of them, produced the growth in sales in April, what profile the consumers have, what profitability was obtained from the different items.

In fact, the challenge goes much further. In many companies the aim is to achieve real-time analysis, analyze sales (and consumers) at the same moment that the transactions are taking place, understand trends and predict the future.

The amount of data that companies generated and collected exceeds by far the ability of Excel to handle it. Several years ago, my father-in-law sent me an article that predicted the unavoidable death of Excel as the predilected tool of financial analyst, due to the obvious limitations of the tool to manage the exponential growth of available data. The prediction of the article has not come true and far from it, the popularity of Excel has continued growing, as well as its ability to handle data has continued to increase, although not as fast as the available data has done. On several occasions I have taken Excel models to the very limit that the tool allows, and I have had to appeal to the use of other applications.


Picture taken from Internet

Fortunately, new tools have emerged that expand the portfolio of products available to financial analysts, tools designed for massive data management (Big Data). It is the knowledge of these new tools that is becoming the differentiating factor when recruiting financial analysts. After all, the challenge for many companies is how to convert the mountain of data at their disposal into useful information that allows them to make the right decisions.

Today's challenge is to discover patterns, understand trends, and act before a competitor does. It is not an easy task. Large amounts of data require a minimum of statistical knowledge, their processing requires better technology, faster processors, better data visualization tools and handling techniques, and most importantly, analysts prepared to understand what they are doing, to correctly process the data, and verify it. Analyst should prevent their bosses to commit blunders when trying to interpret big amount of data. The situation has changed and with it the profile of the position.


Related post: The Role of the Financial Analyst

Monday, May 18, 2020

Quarantine ravings: A Jobless World

Ernesto Hontoria
(versión en castellano)

Without a doubt, the current pandemic is going to have consequences in the working environment of many people. Companies and workers who have managed to keep daily activities remotely, have demonstrated that the technology is sufficiently developed to allow teleworking; something that was already happening in many companies. Don’t be surprised if after this pandemic there would be even more flexibilization in the work environment to allow more people to work from home, more days a week, than they already had before all this started.

But the ravings of the quarantine that I want to bring you today is more futuristic than that. Economists have been debating for some time now, how society will work in a not too far future, when artificial intelligence begins to massively displace from their jobs those who today depend on a salary.

Uber - Driverless truck
The thing is not that far. Self-driving cars (or driverless cars) are nowadays a technological reality that perhaps in the next decade will eliminate the jobs of countless drivers. A couple of years ago, a driverless truck traveled 200 kilometers to dispatch 2,000 cases of beer[1]. But artificial intelligence goes far beyond vehicle self-piloting and goes faster than we think. How many translators are behind each phrase translated by the Google translator?

The fact is that during this pandemic (most likely with no intention to) some developed countries are unconsciously testing what some economists anticipate could be the solution to the economic problem that the development of artificial intelligence implies. Direct state subsidies to workers who lost their jobs because of the pandemic, reflect the basic idea of ​​a universal minimum wage, in a society where jobs have been hijacked by machines and artificial intelligence. A universal wage to ensure that people, even without jobs, have money to spend and maintain the movement of goods and services. Without that demand of woods and services the system would completely stop. It is in other words, a direct subsidy to keep the blood of our economy running and to avoid revolts and revolutions.



COVID 19 Cases by day in Ontario

This chart has been done in Excel with numbers published by the Provincial government of Ontario. Link:https://data.ontario.ca/dataset/confirmed-positive-cases-of-covid-19-in-ontario/resource/455fd63b-603d-4608-8216-7d8647f43350


The Evolution by day:







Another interesting link:
https://coronavirus.jhu.edu/map.html


Friday, May 15, 2020

COVID 19 in Ontario By City

Please select the city in the yellow cell. 


Data in this file was downloaded from an official site of Government of Ontario. It is based on confirmed positive cases of COVID-19 in public health units of Ontario